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
BuryCorpse.w3x
Variables
Bury
Bury Corpse
Pick Up Corpse
Drop Corpse
For this map
Text
Enter mjjp-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
Gravedigger
unit
Yes
Bury Corpse
Events
Unit - A unit Sells an item (from shop)
Conditions
(Unit-type of (Selling unit)) Equal to Corpse
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to Bury Corpse
Then - Actions
Item - Remove (Sold Item)
Unit - Pause (Buying unit)
Unit - Make (Buying unit) face (Selling unit) over 0.50 seconds
Animation - Play (Buying unit) 's stand channel animation
Wait 2.00 seconds
Unit - Replace (Selling unit) with a Grave using The new unit's default life and mana
Unit - Unpause (Buying unit)
Animation - Play (Buying unit) 's stand animation
Else - Actions
Pick Up Corpse
Events
Unit - A unit Sells an item (from shop)
Conditions
(Unit-type of (Selling unit)) Equal to Corpse
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to Pick Up Corpse
Then - Actions
Unit - Remove (Selling unit) from the game
Item - Remove (Sold Item)
Hero - Create Dead Corpse and give it to (Buying unit)
Else - Actions
Drop Corpse
Events
Unit - A unit Uses an item
Conditions
(Item being manipulated) Equal to (Item carried by (Hero manipulating item) of type Dead Corpse)
Actions
Item - Remove (Item being manipulated)
Unit - Create 1 Corpse for Neutral Passive at (Position of (Hero manipulating item)) facing (Random point in (Playable map area))
Text
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Game - Display to (All players) for 0.00 seconds the text: To pick up\bury a corpse, go near it and click the pick up or bury button.To drop a corpse, click it from your inventory.
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.