| 01-15-2004, 10:00 AM | #1 |
hi, i am a noob in trigger making. I would like to ask about how to make the following 2 triggers. 1. when target building's life = or lower than 300, change ownership of target building to target player. 2. add 1 gold to player 1 every ten seconds for each sheep he control. i spent hours on it but i still cant figured it out... please help me.... |
| 01-15-2004, 10:13 AM | #2 | |
Quote:
well im a noob too :P, but i can give u some clues on number 2 event: every 10th second condition: - action: set variable gold=sheeps owned by player 1 or event: wait 0,01 secs condition: - action: set variable sheep = (how many sheeps owned in start) event: player x get control of unit sheep condition: none action: set variable sheep +1 run trigger gaah gaah event: condition: action: something with store the new variable cant remember it event: every xth second of game condition: action: give player x gold = variable sheep oh, and the other 1 event: player targets a building condition: buildings health equal to or lower than 300 actions: change ownership of building to player hmm, my number 2 post dissappeared event: player targets building action: if buildings HP are equal to or lower than 300 then change ownership of player to player else do nothing |
| 01-15-2004, 08:48 PM | #3 |
why bother with all that ****? EVENT every ten seconds ACTIONS set player 1's gold to player's current gold + the number of sheep owned by player one. DOne, there, thats all you need. |
