- Joined
- Aug 7, 2009
- Messages
- 380
Yah, hello.
How i can add a item to a unit when i press a dialog button ? That's all. I tried :
I really think problem in this DUMMY_ARRAY[(Player number of (Triggering player))]. So, what can fix this?. Thanks and +rep in advance
How i can add a item to a unit when i press a dialog button ? That's all. I tried :
-
Trigger 1
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set DUMMY_ARRAY[(Player number of Player 2 (Blue))] = Dummy 0056 <gen>
-
Set DUMMY_ARRAY[(Player number of Player 3 (Teal))] = Dummy 0058 <gen>
-
Set DUMMY_ARRAY[(Player number of Player 4 (Purple))] = Dummy 0057 <gen>
-
-
Trigger 2
-
Events
-
Time - Elapsed game time is 1.00 seconds
-
-
Conditions
-
Actions
-
Dialog - Change the title of Dialog to Pick One:
-
Dialog - Create a dialog button for Dialog labelled Shadow Orb
-
Set Button_ARRAY[1] = (Last created dialog Button)
-
Trigger - Turn on Trigger 3 <gen>
-
Dialog - Show Dialog for Player 2 (Blue)
-
-
Trigger 3
-
Events
-
Dialog - A dialog button is clicked for Dialog
-
-
Conditions
-
(Clicked dialog button) Equal to Button_ARRAY[1]
-
-
Actions
-
Hero - Create Shadow Orb and give it to DUMMY_ARRAY[(Player number of (Triggering player))]
-
I really think problem in this DUMMY_ARRAY[(Player number of (Triggering player))]. So, what can fix this?. Thanks and +rep in advance
