• 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.

Maze Lives System Won't Work

Status
Not open for further replies.
Level 1
Joined
Mar 30, 2007
Messages
4
I need help with my Maze Map. The lives system doesn't work. I don't know why. It could be the unit-group, the triggers, the integers. Can someone check my map. To find all the Lives/Group triggers, theres a section in the trigger sections called "LIVES SYSTEM". Also don't forget to check the variable.
Here is the URL to download.
http://www.mediafire.com/download.php?5wzmmxomyff
 
Level 2
Joined
Mar 13, 2008
Messages
24
Ah, I think I found the issue.

You have it set so that if Lives is greater than OR EQUAL TO 0, it will revive. You should change it to be just greater than.

Hope this helps. ^^
 
Level 2
Joined
Mar 13, 2008
Messages
24
Okay, upon closer examination, Krisserz is right. There's no way for the trigger to run. What I would do, is add another trigger that looks like this...

  • Players Alive
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Unit-type of (Dying unit)) Equal to Human Prisoner) or ((Unit-type of (Dying unit)) Equal to Sexy Jutsu?)
        • Then - Actions
          • Set Players_Alive = (Players_Alive - 1)
          • If (Players_Alive Equal to 0) then do (Trigger - Run AllDead <gen> (checking conditions)) else do (Do nothing)
          • Wait 0.02 seconds
          • Set Players_Alive = (Number of players in (All players controlled by a User player))
        • Else - Actions
          • Do nothing
Then change your SETLIVES trigger to look like this...

  • SETLIVES
    • Events
      • Time - Elapsed game time is 0.02 seconds
    • Conditions
    • Actions
      • Set Lives = 3
      • Set Players_Alive = (Number of players in (All players controlled by a User player))
This should run the "AllDead" trigger any time all of the players die.

Hope this helps. ^^

Edit: thanks for pointing out the trigger tags. I'm a bit new, and I was wondering how people were making them look like the real triggers.
 
Last edited:
Status
Not open for further replies.
Top