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
Revive System 1.1.w3x
Variables
Ini
READ IF U DUNNO
Read
Heal
Summon Units
Revive Units
Revive Hero
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
[VERY IMPORTANT PLEASE READ!!! MY FRIEND]
My code waits five seconds per hero level. To change the time a hero revivs, change the line that says:
-set HEROWAIT = ( GetHeroLevel(OURHERO) * 5 )
-To change the location your hero is revived at, create a new emtpy trigger with just the REVIVE line.
-Then convert the temp trigger to custom text, copy your line, and paste it.
-After pasting, change the first item to OURHERO just like mine has.
-We use CUSTOM TEXT to give us our local variables. That way, multiple creeps can revive without variables overwriting themselves.
Read
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Game - Display to (All players) the text: Revive System 1.1 by PizzAdoXxPress Esc Key To Heal And Reset Cooldown.Press Down Arrow Key To Summon Creeps.
Heal
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red).) and do (Actions)
Loop - Actions
Unit - Set life of (Triggering unit) to 100 %
Unit - Set mana of (Triggering unit) to 100 %
Unit - Reset ability cooldowns for (Triggering unit) .
Summon Units
Events
Player - Player 1 (Red) Presses the Down Arrow key
Conditions
Actions
Unit - Create 3 . Forest Troll for Neutral Hostile at (Random point in (Playable map area)) facing Default building facing degrees
[VERY IMPORTANT PLEASE READ!!! MY FRIEND]
My code waits five seconds per hero level. To change the time a hero revivs, change the line that says:
-set HEROWAIT = ( GetHeroLevel(OURHERO) * 5 )
-To change the location your hero is revived at, create a new emtpy trigger with just the REVIVE line.
-Then convert the temp trigger to custom text, copy your line, and paste it.
-After pasting, change the first item to OURHERO just like mine has.
-We use CUSTOM TEXT to give us our local variables. That way, multiple creeps can revive without variables overwriting themselves.
Revive Hero
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Custom script: local timerdialog WINDOW
Custom script: local integer HEROWAIT
Custom script: local timer OURTIMER
Custom script: local unit OURHERO
Custom script: set OURHERO = GetDyingUnit()
Custom script: set HEROWAIT = ( GetHeroLevel(OURHERO) * 5 )
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.