How do you use 'Variable'

I see the ‘Variable’ option in the Events Screen but can’t seem to use it. I had hoped it would allow me to create an event like an array where an event leads to one of a number of possible outcomes. How do you use this function?

2 Likes

Hi @Moar, look the this tutorials, they should the help you figure it out:




1 Like

Thank you for your reply. This helps me understand how the Variable option can be used. I had hoped to create an event in which when a button is clicked one of a number of objects appeared, like a button that says CARD and when clicked it a Card chosen randomly from a number of Card Objects appears. I take it the Variable only acts on a single object?

2 Likes

The variable assignments can be assigned to any number of objects. If you want to use random numbers, I recommend doing this using the “Random Number” behavior. Here is a tutorial example:

2 Likes