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
Timber Harvesting Area.w3x
Variables
Initialization
Melee Initialization
Revive Creeps
Revive Trees
Revive Hero
Restore Units
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. (This map save with X design Pack)
Name
Type
is_array
initial_value
Creep_Face_Ang
real
Yes
Creep_Loc
location
Yes
Temp_Integer
integer
No
Temp_Point
location
No
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Environment - Set sky to Lordaeron Summer Sky
Visibility - Disable fog of war
Visibility - Disable black mask
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
Loop - Actions
Set Variable Set Temp_Integer = (Temp_Integer + 1)
Set Variable Set Creep_Loc[Temp_Integer] = (Position of (Picked unit))
Set Variable Set Creep_Face_Ang[Temp_Integer] = (Facing of (Picked unit))
Unit - Set the custom value of (Picked unit) to Temp_Integer
Destructible - Pick every destructible in (Entire map) and do (Add to Revive_Trees <gen> the event ((Picked destructible) dies))
Game - Display to (All players) for 45.00 seconds the text: Press 'Esc' to restore all of your units.
Revive Creeps
Events
Unit - A unit Dies
Conditions
((Owner of (Triggering unit)) Equal to Neutral Hostile) and (((Triggering unit) is Summoned) Not equal to True)
Actions
Wait (Random real number between 10.00 and 25.00) seconds
Unit - Create 1 . (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at Creep_Loc[(Custom value of (Triggering unit))] facing Creep_Face_Ang[(Custom value of (Triggering unit))] degrees
Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
Revive Trees
Events
Conditions
Actions
Wait 15.00 seconds
Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and Show birth animation
Revive Hero
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Wait 2 seconds
Set Variable Set Temp_Point = ((Owner of (Triggering unit)) start location)
Hero - Instantly revive (Triggering unit) at Temp_Point , Show revival graphics
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Triggering player)) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to 100 %
Unit - Set mana of (Picked unit) to 100 %
Unit - Reset ability cooldowns for (Picked unit) .
Special Effect - Create a special effect attached to the origin (Unexpected type: 'attachpoint') of (Picked unit) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Destroy (Last created special effect)
Cinematic - Clear the screen of text messages for (All players) .
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.