• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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
 
Level 9
Joined
May 30, 2008
Messages
430
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:
 
Level 5
Joined
Jul 23, 2008
Messages
186
because when i use custom scripts them just donet work
and i have tried the forms and they dont help much
 
Level 5
Joined
Jul 23, 2008
Messages
186
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 ?
 
Level 10
Joined
Aug 15, 2008
Messages
720
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.
Top