How to make that you get an attribute if you have appropriate attributes after clicking the dialogue button

How to make that you get an attribute if you have appropriate attributes after clicking the dialogue button.
For example:

If you have 100 levels and you choose a dialogue button, you will get the attribute. but if you don’t have 100 levels, it won’t give you any attributes until you reach the requirements.

Make it so the button you want triggers a script. The script should have an if statement checking if the attribute of the person who most recently closed the dialogue has enough levels, if so give the attribute. If not, you can have it send an error or do nothing, or smth else.

1 Like

Can you share an image of that script

Here I’ll just write it out

Make it so the button you want triggers a script.

The script should have

If attribute name of last place we selecting dialogue button>= required attribute amount
give thing
Else:
Error message

1 Like