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
Zombie_Apocalypse.w3x
Variables
Eye Candy
Stuff
Spell
---------------------------
Infection
---------------------------
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
Infected
group
No
TempAttacked
unit
No
TempAttacker
unit
No
TempOwner
player
No
TempPosition
location
No
TempSummoned
unit
No
Stuff
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Animation - Play Peasant 0011 <gen> 's work animation
Unit - Order Peasant 0026 <gen> to Harvest . Felwood Tree Wall 0075 <gen>
Unit - Order Peasant 0027 <gen> to Harvest . Felwood Tree Wall 0068 <gen>
Unit - Order Peasant 0028 <gen> to Harvest . Felwood Tree Wall 0064 <gen>
Visibility - Disable fog of war
Visibility - Disable black mask
***All of the comments apply to the functions directly below them, until the next comment***
The following global variables are required:
-TempAttacked (unit)
-TempAttacker (unit)
-TempOwner (player)
-TempPosition (point)
-TempSummoned (unit)
Make sure you have...:
-A zombie unit
-A dummy caster
-The infection spell (parasite-based)
-The infection buff
Ways of changing the spell:
-For any numeric or effect changes, modify the "infection" spell.
-You may also wish to create a method of starting the chain reaction with a caster. Just Copy n' Paste the "Infection" spell, or make one based off of "Doom".
Infection
Events
Unit - A unit Is attacked
Conditions
Actions
-------- Determines the attacking/attacked units --------
Set Variable Set TempAttacked = (Attacked unit)
Set Variable Set TempAttacker = (Attacking unit)
-------- If the attacking unit is a Zombie, and the attacked unit is a living uninfected organic unit... --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(TempAttacked is Mechanical) Equal to False
(TempAttacked is Undead) Equal to False
(Unit-type of TempAttacker) Equal to Zombie
(TempAttacked has buff Infection) Equal to False
Then - Actions
-------- Determines the owner of the attacking unit, and the location of the attacked unit, then creates a dummy which casts the parasite-type spell. (the dummy has (-) hp regen, and will die automatically) --------
Set Variable Set TempOwner = (Owner of TempAttacker)
Set Variable Set TempPosition = (Position of TempAttacked)
Unit - Create 1 . InfectionDummy for TempOwner at TempPosition facing Default building facing degrees
Set Variable Set TempSummoned = (Last created unit)
Unit - Order TempSummoned to Neutral - Parasite . TempAttacked
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.