| 07-31-2003, 09:20 PM | #1 |
Right now I have: If ((Clicked dialog button) Equal to buyres1) then do (Player - Add -6500 to Player 1 (Red) Current gold) else do (Do nothing) I want it to be: If ((Clicked dialog button) Equal to buyres1) then do (Player - Add -6500 to Player 1 (Red) Current gold) AND (Unit - Rescue Tavern 0002 <gen> for Player 1 (Red) and Change color) else do (Do nothing) Wheres the and? :/ |
| 07-31-2003, 09:25 PM | #2 |
there is no "And" action. Just copy the If action and paste right below it. Then change the action. |
| 07-31-2003, 09:25 PM | #3 |
Actually if anyone could just tell me where the hell the condition is that checks a players resources is? |
| 07-31-2003, 09:27 PM | #4 |
...or if you have TFT, just do the one above it that will let you add conditions and actions much faster. |
| 07-31-2003, 09:28 PM | #5 |
Kind of new to this arent you? ... A player's resource is an INTEGER / number with no decimal. So, wouldn't you do an ?!?!?!?! comparison? |
| 07-31-2003, 09:33 PM | #6 |
Yea im really new to triggering. Thanks, i got it all figured out. buyres1 Events Dialog - A dialog button is clicked for buyressquare1 Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Player 1 (Red) Current gold) Equal to (6500 + 1) (Clicked dialog button) Equal to buyres1 Then - Actions Unit - Rescue Tavern 0002 <gen> for Player 1 (Red) and Change color Player - Add -6500 to Player 1 (Red) Current gold Else - Actions Do nothing |
| 07-31-2003, 09:46 PM | #7 |
Yay more problems; Firstly whenever the dialog menu is created, if you cancel and open it again the dialog menu has buy, cancel, buy, and cancel. If you do it AGAIN it becomes buy, cancel, buy, cancel, buy, and cancel. Secondly, when I click the buy button nothing happens. Buy Restaurant Square1 Events Unit - A unit Begins casting an ability Conditions (Ability being cast) Equal to Buy (Restaurant Square 1 <gen> contains (Triggering unit)) Equal to True Actions Dialog - Change the title of buyressquare1 to Buy Square One Rest... Dialog - Create a dialog button for buyressquare1 labelled Cancel Set buyres1 = (Last created dialog Button) Dialog - Create a dialog button for buyressquare1 labelled Buy Dialog - Show buyressquare1 for Player 1 (Red) buyres1 Events Dialog - A dialog button is clicked for buyressquare1 Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Matching player) Current gold) Greater than or equal to 6500 (Clicked dialog button) Equal to buyres1 Then - Actions Unit - Rescue Tavern 0002 <gen> for (Matching player) and Change color Player - Add -6500 to (Matching player) Current gold Else - Actions Do nothing |
| 07-31-2003, 09:54 PM | #8 |
tell it to clear dialog after its finished doing its job. |
| 07-31-2003, 10:11 PM | #9 |
The problem I think is that its not selecting the right player, trigger player, owner of unit, matching player nothing happens but when i set it to player 1 it works... |
| 08-29-2003, 03:16 PM | #10 |
Guest | JUST USE THE TRIGGER "IF THEN DO MULTIPLE ACTIONS! " Good Luck!:D |
