I've been trying to manipulate an array variable through the use of pressing a button but to no avail... This is my current trigger:
Events
Dialog - Any Dialog Item is used by Player (Triggering player) with event type Clicked
Local Variables
Conditions
1x Speed == (Used dialog item)
Actions
Variable - Set Set Speed[(Triggering player)] = 1.0
The variable that I am talking about is "Set Speed". It is a real variable and has an array of [4] for four players. My question is, what am I doing wrong? It doesn't appear to have changed anything when I tested it in-game.
You have to use the preset "Any Player" instead of "Triggering Player" in your event.
The "Any Player" option is not visible on the Preset list, so if you change the value in the field, just delete your current event and insert a new "Dialog Item Is Used".
You want to set different Game Speeds? Game Speed cannot vary from player to player, so why do you need an array for this? Secondly, you can create a Game Speed variable by clicking your variable, select "Type: - Preset" and then "Preset: Game Speed".
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I've been trying to manipulate an array variable through the use of pressing a button but to no avail... This is my current trigger:
Events
Dialog - Any Dialog Item is used by Player (Triggering player) with event type Clicked
Local Variables
Conditions
1x Speed == (Used dialog item)
Actions
Variable - Set Set Speed[(Triggering player)] = 1.0
The variable that I am talking about is "Set Speed". It is a real variable and has an array of [4] for four players. My question is, what am I doing wrong? It doesn't appear to have changed anything when I tested it in-game.
@Nothing5: Go
You have to use the preset "Any Player" instead of "Triggering Player" in your event.
The "Any Player" option is not visible on the Preset list, so if you change the value in the field, just delete your current event and insert a new "Dialog Item Is Used".
damn right. i missed that. also, i'm assuming this is for game speed, not unit speed. right?
@thepumaman1: Go
You want to set different Game Speeds? Game Speed cannot vary from player to player, so why do you need an array for this? Secondly, you can create a Game Speed variable by clicking your variable, select "Type: - Preset" and then "Preset: Game Speed".