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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
CreepRespawnSystem.w3x
Variables
Creep Respawn System
Readme
Creep Respawn Initialization
Creep Respawning
Entrez le code script personnalisé spécifique à la carte ci-dessous. Ce texte sera inclus dans le script de la carte après que les variables auront été déclarées et avant tout code de déclencheur.
Name
Type
is_array
initial_value
CreepRespawn_CustomValue
integer
No
CreepRespawn_Hashtable
hashtable
No
CreepRespawn_RespawnDelay
real
No
10.00
This is a simple system that allow you to make creeps respawn.
The variables:
* CreepRespawn_CustomValue : that integer represent the value that allow system to save a custom value on creeps.
* CreepRespawn_Hashtable : that variable represent the hashtable where the system save some initial values of the creeps.
* CreepRespawn_RespawnDelay : that real represent the delay before respawning (default: 10.00, you can change this variable).
This system is free to use, but don't forgot to credit me, even if this is a very simple system.
Enjoy !
Creep Respawn Initialization
Events
Map initialization
Conditions
Actions
Hashtable - Create a hashtable
Set Variable Set CreepRespawn_Hashtable = (Last created hashtable)
Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
Loop - Actions
Set Variable Set CreepRespawn_CustomValue = (CreepRespawn_CustomValue + 1)
Unit - Set the custom value of (Picked unit) to CreepRespawn_CustomValue
Hashtable - Save Handle Of (Position of (Picked unit)) as 1 of CreepRespawn_CustomValue in CreepRespawn_Hashtable .
Hashtable - Save (Facing of (Picked unit)) as 2 of CreepRespawn_CustomValue in CreepRespawn_Hashtable .
Creep Respawning
Events
Unit - A unit Dies
Conditions
(Owner of (Triggering unit)) Equal to Neutral Hostile
Actions
Wait CreepRespawn_RespawnDelay seconds
Unit - Create 1 . (Unit-type of (Triggering unit)) for Neutral Hostile at (Load 1 of (Custom value of (Triggering unit)) in CreepRespawn_Hashtable.) facing (Load 2 of (Custom value of (Triggering unit)) from CreepRespawn_Hashtable.) degrees
Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.