- Joined
- Sep 26, 2008
- Messages
- 140
Sorry for this post but is very worrying, I make a dialog button that if a player push it and he have more or equal to 100 gold upgrade units and remove gold for upgrade, less to 100 don't upgrade, But don't run, Avator say to me to put in events player protiers but I can't put player variavle for owner of player and owner of triggering unit....
I give +rep who repair my button and run
This is my dialog button
I give +rep who repair my button and run
This is my dialog button
-
actions pulsed pirate
-
Events
- Dialogue - A dialog button is clicked for Mydialog
-
Conditions
- (Clicked dialog button) Same as Dialogbutton [1]
-
Stocks
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player number of (Owner of (Triggering unit))) Greater than or equal to 100
-
Then - Actions
- Player - Set the current level of research Mike Cannon to 1 for Player 8 (Rosa)
- Player - Add (Sign (-100)) to (Owner of (Triggering unit)) Gold used in maintenance
- Match - Display to (All players) for 10.00 seconds the text: Upgrade to cane lv ...
-
Otherwise - Stocks
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Player number of (Owner of (Triggering unit))) Less than 100
-
Then - Actions
- Match - Display to (All players) for 10.00 seconds the text: Hehe, need more goals ...
-
Otherwise - Stocks
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events