View Full Version : Hero Revive
M4xGlitzh
12-30-2004, 1:55 AM
Hi.. I'm new here and new in making maps... i looked everywhere but still cant find a simply answer.. how do i revive a dead hero? mine looks like this
Player: player 1
Conditions: Player 1 has suffered exactly 1 deaths of Jim Raynor (Marine).
Action : Create 1Jim Raynor (Marine) at 'Spawn' for Current player.
Preserve trigger.
When my hero dies.. it keep creating this hero nonstop.. if i dont use preserve trigger.. it only happens once. Help please. thanks.
Sikawtic
12-30-2004, 2:59 AM
because you put a "preserve trigger" in there, and you've suffered a death of raynor, so it will continually use the trigger. Heres one that will work:
Player:
-Player 1
Conditions:
-Player 1 commands at most 0 Jim Raynor (Marine)
Action:
-Create 1 Jim Raynor (Marine) at Spawn for Current Player
-Preserve Trigger
Just respond back if you have anymore troubles, and welcome to WBs, I hope you'll stick around ^_^
Hawthorne
12-30-2004, 4:03 AM
Also if you want the location in which he hero is evived to moove( if the ums is a rpg and not a melee) you might center it on 1 unit that each player has and can't create or you might move it if the step over another location...
M4xGlitzh
12-30-2004, 8:41 AM
oh.. thanks it works.. i have another question.. my current trigger is :
1st Trigger :
Player:
-Player 1
Conditions:
-switch 1 is cleared.
-switch 2 is cleared
-switch 3 is cleared
Action:
-wait 20000 miliseconds.
-Create 3 Marines at location Spawn for player 1.
-Preserve Trigger
2nd Trigger :
Player:
-Player 1
Conditions:
-Elapsed scenario time is at least 20 game seconds.
-switch 4 is cleared.
-switch 5 is cleared
-switch 6 is cleared
Action:
-wait 20000 miliseconds.
-Create 3 Firebats at location Spawn 2 for player 1.
-Preserve Trigger
if i use only the 1st trigger.. it works fine.. creeps spawn every 20 seconds.. but if i use both.. the 1st trigger only happens once.. any idea..?
You must have some other triggers setting the the switches on (set), or the triggers will be repeating undefinetly, since the default state for switches is off (cleared).
The waiting blocks (in both triggers) kinda interact with each other and set the preserve trigger option you added after each wait time has passed.
That's the main problem that I see comin' from it. ;)
I could be wrong to some extent, since I'm not an uber mapper, like some fellas 'round here but that's what could see from your set (of triggers).
M4xGlitzh
12-30-2004, 10:32 AM
well actually im having experiment.. its a new map and only the both triggers on. As far as i know.. there is no other switches on. Like i said.. if i use the 1st trigger, it works fine. But if i use both, the first trigger only happen once. If what Basan said about waiting block is right.. how do i solve it?
Sikawtic
12-30-2004, 2:38 PM
Put it under another player.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.