• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

respawn help!!!

Status
Not open for further replies.
Level 5
Joined
Jul 23, 2008
Messages
186
plz can someone help me i have alot of trouble with a respawn trigger i have tried any that i can find but it just dosent work and please no custom scricpt and no script other then what comes with the orignal warcraft world edit plz
 
Revive systems for units are limited to around 60-100 seconds if u no need more than those values u can find one in the tutorials sections i think, otherwise i have one of my which have unlimited time for reviving units but it's 2 much complicated:thumbs_up:
 
because when i use custom scripts them just donet work
and i have tried the forms and they dont help much
 
i dont know why but its like the world edit dosent work with custom script even simple things dont work soo can someone plz make me one without it plz ?
 
Use hashtables! Right now I am not in home, so I will post trigger later...

EDIT: I am home and here is trigger with hashtables - Most best thing invented for GUI.
  • Respawn SetUp
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Triggering unit)) Equal to Neutral Hostile
    • Actions
      • Set TrigUnit = (Triggering unit)
      • Set TrigUnitHandle = (Triggering unit)
      • -------- Your desired time between respawn enter here. (In place where you see "Save 10... etc") --------
      • Hashtable - Save 10.00 as 0 of (Key TrigUnitHandle) in CRespawnhash
      • Unit Group - Add TrigUnit to RespawnGroup
  • Respawn
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in RespawnGroup and do (Actions)
        • Loop - Actions
          • Set PickUnitHandle = (Picked unit)
          • Set RemainingTimeCRespawn = (Load 0 of (Key PickUnitHandle) from CRespawnhash)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • RemainingTimeCRespawn Greater than 0.00
            • Then - Actions
              • Hashtable - Save (RemainingTimeCRespawn - 1.00) as 0 of (Key PickUnitHandle) in CRespawnhash
            • Else - Actions
              • Set PickUnit = (Picked unit)
              • Unit - Replace PickUnit with a (Unit-type of PickUnit) using The new unit's max life and mana
              • Hashtable - Clear all child hashtables of child (Key PickUnitHandle) in CRespawnhash
 
Last edited:
Status
Not open for further replies.
Back
Top