Could someone make a trigger that is like:
Event
All units have left this region.
Condition
Unit leaving region equal to Hero.
Action
Revive all units owned by Brown (Player 12) at their starting locations.
If someone could make a trigger like that I would really appreiciate it! Thanks!
Respawn Trigger
Moderator: Cheaters
-
- The Flying Cow!
- Posts: 2196
- Joined: November 2nd, 2007, 10:34 pm
- Location: Melbourne
Re: Respawn Trigger
uhm... by 'all' units i assume you mean 'a' unit?
This is just a quick trigger, I wansn't really sure what you meant. And note that you can't revive normal units (i think)... Only heroes.
This is just a quick trigger, I wansn't really sure what you meant. And note that you can't revive normal units (i think)... Only heroes.
Code: Select all
N00b Trigger
Events
Unit - A unit leaves Region 000 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit Group - Pick every unit in (Units owned by Player 12 (Brown) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
Loop - Actions
Hero - Instantly revive (Picked unit) at (Center of (Playable map area)), Hide revival graphics
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
AutoCP3 now available for free!
-
- Junior Member
- Posts: 38
- Joined: December 28th, 2007, 6:15 pm
Re: Respawn Trigger
sorry, i didn't make myself that clear. Ok, so ill try to give an example what would happen,
So this is in a dungeon for an RPG. So the heroes enter the dungeon, and all the units are set up into it already, what i want is that once all heroes finish or die, so that means all of the players in the dungeon have left it (the region). And all the players are equal to heroes in the dungeon.
Next once the players finish or die in the dungeon (region) i would like all the units to be set up again at their starting points when I placed them into the map.
I don't know how you could do this, but ill really appreiciate if someone can, because im really confused and stuck at this part, thanks!
-Nightmare
So this is in a dungeon for an RPG. So the heroes enter the dungeon, and all the units are set up into it already, what i want is that once all heroes finish or die, so that means all of the players in the dungeon have left it (the region). And all the players are equal to heroes in the dungeon.
Next once the players finish or die in the dungeon (region) i would like all the units to be set up again at their starting points when I placed them into the map.
I don't know how you could do this, but ill really appreiciate if someone can, because im really confused and stuck at this part, thanks!
-Nightmare
-
- Old Wrinkly Member
- Posts: 271
- Joined: January 12th, 2008, 4:42 am
- Title: Re-R-Re-Re-Remix
- Location: Canada EH?
Re: Respawn Trigger
Make a region where you want each unit to spawn, then make a simple trigger to get units to spawn there. This will also let you modify the difficulty, by say, adding more units with the spawn command. You would also want some conditions to check for the heroes.
Contact me on WC3 Killing_Spree22, I'm at US west!
To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk
I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.
To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk
I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.
-
- Junior Member
- Posts: 38
- Joined: December 28th, 2007, 6:15 pm
Re: Respawn Trigger
Could you please give me an example of checking if the heroes are in the region ? bc i dont know what to do there, ive got everything else tho
-
- Old Wrinkly Member
- Posts: 271
- Joined: January 12th, 2008, 4:42 am
- Title: Re-R-Re-Re-Remix
- Location: Canada EH?
Re: Respawn Trigger
Well to check the heros you want to pick every unit in the region, then for every one add one to an integer, then check to so see if it's bigger than 0.
Contact me on WC3 Killing_Spree22, I'm at US west!
To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk
I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.
To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk
I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.