1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Choose your ride to damnation in the 5th Special Effect Contest Poll.
    Dismiss Notice
  5. The winners of the 13th Techtree Contest have been announced!
    Dismiss Notice
  6. The 13th Music Contest Poll has begun! Vote for the best tracks in this symphony of frost and flame.
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Catch me if you can #2

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

  1. SHWARZEMAGIE

    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

    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

    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

    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

    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

    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! :D
     
  7. Los_Tacos

    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.