• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Reset trigger?

Status
Not open for further replies.
Level 1
Joined
Mar 23, 2009
Messages
3
Here's the background of what happens:
8 players (allied) start with wisps that choose your hero by entering a region in front of the hero. Your Hero is selected, where at the moment the wisps are removed from the game and you are teleported to a region where all 8 players are now enemies. The heros go at it until 1 is left, or by a strange occurrence none are left (like a double kill). Now i want the option to play again without remaking the map. So...

If someone could help with a trigger where after
all the heros but 1 die or
all the heros die

that the wisps return to their starting position.

So i get the idea that maybe the wisps have to be moved right after selecting the hero. And preferably the wisps are not controllable until they have returned to their starting position. And the wisps preferably are not controllable until

all the heros but 1 die or
all the heros die

Maybe more simply just a trigger that restarts the entire map would be easier or better?

I appreciate any and all help.
Thanks.
 
Level 4
Joined
Oct 29, 2008
Messages
65
I hate to be a jerk and all, but do you own damn work.

Not only do we have no idea whatsoeve of what your intent is, you won't even be able to claim the work was your own! I mean hell, what will happen when you don't even understand how to optimize your own map?
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
I agree with Taishaku at the moment.

This isn't really hard to create, though... just remove all heroes, reset the variables and create a wisp for every player at the hero selection region.
That's all you have to do.

What happened to the "Creat Unit"? You don't have to move the wisps for later use :p
Just use
  • Events
    • Unit - a unit enters a region
  • Conditions
    • Unit Type of (Entering Unit) equal to wisp is true
  • Actions
    • Unit - Create 1 "Hero" for (Owner of Entering Unit) at a region
    • Set Hero(player number of owner of entering unit) is last created unit
    • Your other actions
When you restart it, just do it like this:
  • Actions
    • Player Group - Pick every player in (All Players) and do
      • Unit - Create 1 Wisp for (Picked Plaeyr) at a region
      • Set Hero(player number of owner of entering unit) is no unit
      • Your other actions
I didn't even have to open my world editor for this...
 
Level 15
Joined
Mar 31, 2009
Messages
1,397
Crazy, if you couldn't even come up with a trigger for that then how are you going to trigger that rest.

Give me ze source code so I can pour over it and fix all the leaky triggers.

Im bored....... Need work........
 
Level 1
Joined
Mar 23, 2009
Messages
3
Unless I'm misunderstanding something, some of those triggers do not hit at what I was addressing.

But first, I am actually surprised someone responded; I had it up there for at least a few weeks. It wasn't urgent anyways, and I realize you guys don't live to answer questions...so that kinda worked out.

But since it is a forum, where we are supposed to ask questions...
I do a lot of my own work, I realize I can save a lot of time if I ask though..not to offend anyone but I don't have the time to learn programming code/JASS, and this code needed is touch-up on my current map.

I can post a sample map with the concept...so I will. I don't mind giving out work Blarg, so if I find something else I'll know who to come to..

"This isn't really hard to create, though... just remove all heroes, reset the variables and create a wisp for every player at the hero selection region."
-- yes i know its not that hard but my map (not the sample map posted) has some more quirks. Like there are other heroes on the map, but Players 1-8 heroes and wisps have to be reset only after the certain situation mentioned has occurred, but only if those players are playing...and some other things that if I run across I'll mention.

But yes I am a nub at triggers...I'm working at it as need be.
 

Attachments

  • timer map (rev)(3).w3x
    32.9 KB · Views: 79
Level 28
Joined
Jan 26, 2007
Messages
4,789
I see your triggers aren't really efficient, so I've changed everything :D
You also didn't remove the leaks, which I have done for you.

I've tried to make it as compact as possible, but if you want more triggers, that won't be a problem.
It's just to show you that you don't need 12 triggers to set alliances, but only 1 (to give you an example).
I have converted your 42 triggers into 9 triggers, 1 of those triggers works even better than yours.

If you can send me your original map, I might rework it for you.
I am not going to steal it, if that's what you're scared of... I have reworked KinderGarten TD and another map (still working on it), without stealing it.

This is what changes when game restarts:
- Only the hero, chosen by the player, will be removed
- 1 Wisp will spawn for each playing user (no NPC/open slots).

Is that what you want?

Edit: I've kept your original triggers, in case you wanted to check something.
 

Attachments

  • timer map (reworked).w3x
    33.5 KB · Views: 63
Level 28
Joined
Jan 26, 2007
Messages
4,789
@ap0calypse
T_T

I wonder if this is why we have such terrible map mods out there. So many people running around with no idea how to make their own triggers.

Yeah, well... those people are keeping me busy ^^
+ I get rep for it :cute:

But you're right, though... if you check my map, you'll see it wasn't that hard at all.
(I think I didn't remove player group leaks, because the lag caused by player group leaks is almost nothing).
 
Level 1
Joined
Mar 23, 2009
Messages
3
I never claimed to be an expert at making triggers; I figured about out everything myself. I'll consider your offer ap0calypse, considering it's not hard to hack a map anyways...but I am still concerned with stealing. I would prefer to email it to you. So I will PM my email address. Thanks.
 
Status
Not open for further replies.
Top