# Catch me if you can #2

Discussion in 'Map Development' started by SHWARZEMAGIE, Oct 2, 2005.

1. ### SHWARZEMAGIE

Joined:
Mar 4, 2005
Messages:
7
Resources:
0
Resources:
0
Ok now works, but how can i make, that, if this trigger activated 3 time, than turn off?

2. ### ragingspeedhorn

Joined:
Apr 30, 2005
Messages:
6,521
Resources:
14
Icons:
5
Maps:
7
Tutorials:
2
Resources:
14
Why couldent you just post this in your first thread instead of making a part 2 for it? :roll:

3. ### Los_Tacos

Joined:
Aug 5, 2005
Messages:
219
Resources:
7
Maps:
7
Resources:
7
Make an integer variable with array of however many players there are and value of 3. Add to the player 1 revive trigger:

Set Lives [1] = (Lives [1] - 1)

And the same for the rest of the players, replacing the [1] with the other player numbers. Next, add a condition to the trigger when player 1 hero dies that says:

Lives [1] Greater than 0

And copy that for each player changing only the [1].

4. ### SHWARZEMAGIE

Joined:
Mar 4, 2005
Messages:
7
Resources:
0
Resources:
0
Hmm, so i give a Varible with name: ??? or with Set Lives [1] = (Lives [1] - 1) ?
Than what thype i chooase boolen, or trigger ?

Cant be an other way like this:
If trigger revive1 activated 3 times, than turn off ?

Oh, and i am not using tft... :roll:

5. ### Pyrodactyl

Joined:
Jun 9, 2004
Messages:
212
Resources:
1
Maps:
1
Resources:
1
Hmm a fellow Hungarian

Sajnos nincs olyan action amivel 3 alkalom után lállíthatsz 1 triggert, ezért egy változóval kell számolni, hogy hányszor futott.
Csinálsz 1 akármilyen nevű változót (integer), aminek az értéke alapból 3, és a triggerhez 1 feltételt, hogy csak akkor indulhat el, hogyha ez a változó nagyobb mint 0. A triggerhez hozzáadsz 1 actiont, ami annyi hogy set <változó>=<változó>-1.

A van még vmi akkor dobj meg egy PM-mel.

(Just told him the solution in hungarian)

6. ### SHWARZEMAGIE

Joined:
Mar 4, 2005
Messages:
7
Resources:
0
Resources:
0
Ok, but mean while i added this:
Events:
Time - Every 1.00 seconds of game time
Condition:
(Execution count of Revive 1 <gen>) Equal to 3
Action:
Trigger - Turn off Revive 1 <gen>
Game - Display to (All players) the text: Player 1 is dead! ...
Unit - Explode Circle of Power 0014 <gen>

Works Perfectly!

7. ### Los_Tacos

Joined:
Aug 5, 2005
Messages:
219
Resources:
7
Maps:
7
Resources:
7
That's fine, there are always more than one way to do things.