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
Hero Resurrection Spell.w3x
Variables
Resurrection Spell
Paladin Dies
Resurrection Paladin
Mountain King Dies
Resurrection Mountain King
Archmage Dies
Resurrection Archmage
Blood Mage Dies
Resurrection Blood Mage
Stuff
Pub Special Effect Drunk
Pub Animation Attack
Pub Floating Text
Game Message at Start
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
ArchmageGrave
unit
No
BloodmageGrave
unit
No
DiedArchmage
unit
No
DiedBloodMage
unit
No
DiedMountainKing
unit
No
DiedPaladin
unit
No
MountainKingGrave
unit
No
PaladinGrave
unit
No
This trigger checks if the dying unit is the Paladin. If that's true, set the variable DiedPaladin = Dying Unit. Then create a grave (paladin) for owner of diedpaladin at position of diedpaladin facing ### degrees. Then set the grave = PaladinGrave. After that set its life to 25/50.
Paladin Dies
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Paladin
Actions
Set Variable Set DiedPaladin = (Dying unit)
Unit - Create 1 . Grave (Paladin) for (Owner of DiedPaladin) at (Position of DiedPaladin) facing 270.00 degrees
Set Variable Set PaladinGrave = (Last created unit)
Unit - Set life of PaladinGrave to 25.00
When a unit casts Resurrection then checks the life of the grave. If it is 50, then it waits 2 seconds and revives the diedpaladin at position of paladingrave and then it removes the paladingrave.
Resurrection Paladin
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to |cFFFFFFC0Resurrection|r
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer((Life of PaladinGrave))) Equal to 50
Then - Actions
Wait 2 seconds
Else - Actions
Hero - Instantly revive DiedPaladin at (Position of PaladinGrave) , Hide revival graphics
Wait 0.10 seconds
Unit - Remove PaladinGrave from the game
This trigger checks if the dying unit is the Mountain King. If that's true, set the variable DiedMountainKing = Dying Unit. Then create a grave (Mountain King) for owner of diedmountainking at position of diedmountainking facing ### degrees. Then set the grave = MountainKingGrave. After that set its life to 25/50.
Mountain King Dies
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Mountain King
Actions
Set Variable Set DiedMountainKing = (Dying unit)
Unit - Create 1 . Grave (Mountain King) for (Owner of DiedMountainKing) at (Position of DiedMountainKing) facing 270.00 degrees
Set Variable Set MountainKingGrave = (Last created unit)
Unit - Set life of MountainKingGrave to 25.00
When a unit casts Resurrection then checks the life of the grave. If it is 50, then it waits 2 seconds and revives the diedmountainking at position of mountainkinggrave and then it removes the mountainkinggrave.
Resurrection Mountain King
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to |cFFFFFFC0Resurrection|r
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer((Life of MountainKingGrave))) Equal to 50
Then - Actions
Wait 2 seconds
Else - Actions
Hero - Instantly revive DiedMountainKing at (Position of MountainKingGrave) , Hide revival graphics
Wait 0.10 seconds
Unit - Remove MountainKingGrave from the game
This trigger checks if the dying unit is the Archmage. If that's true, set the variable DiedArchmage = Dying Unit. Then create a grave (Archmage) for owner of diedArchmage at position of diedArchmage facing ### degrees. Then set the grave = ArchmageGrave. After that set its life to 25/50.
Archmage Dies
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Archmage
Actions
Set Variable Set DiedArchmage = (Dying unit)
Unit - Create 1 . Grave (Archmage) for (Owner of DiedArchmage) at (Position of DiedArchmage) facing 270.00 degrees
Set Variable Set ArchmageGrave = (Last created unit)
Unit - Set life of ArchmageGrave to 25.00
When a unit casts Resurrection then checks the life of the grave. If it is 50, then it waits 2 seconds and revives the diedarchmage at position of archmageagrave and then it removes the archmagegrave.
Resurrection Archmage
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to |cFFFFFFC0Resurrection|r
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer((Life of ArchmageGrave))) Equal to 50
Then - Actions
Wait 2 seconds
Else - Actions
Hero - Instantly revive DiedArchmage at (Position of ArchmageGrave) , Hide revival graphics
Wait 0.10 seconds
Unit - Remove ArchmageGrave from the game
This trigger checks if the dying unit is the BloodMage. If that's true, set the variable DiedBloodMage = Dying Unit. Then create a grave (BloodMage) for owner of diedBloodMage at position of diedBloodMage facing ### degrees. Then set the grave = BloodMageGrave. After that set its life to 25/50.
Blood Mage Dies
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Blood Mage
Actions
Set Variable Set DiedBloodMage = (Dying unit)
Unit - Create 1 . Grave (Blood Mage) for (Owner of DiedBloodMage) at (Position of DiedBloodMage) facing 270.00 degrees
Set Variable Set BloodmageGrave = (Last created unit)
Unit - Set life of BloodmageGrave to 25.00
When a unit casts Resurrection then checks the life of the grave. If it is 50, then it waits 2 seconds and revives the diedbloodmage at position of bloodmagegrave and then it removes the bloodmagegrave.
Resurrection Blood Mage
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to |cFFFFFFC0Resurrection|r
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer((Life of BloodmageGrave))) Equal to 50
Then - Actions
Wait 2 seconds
Else - Actions
Hero - Instantly revive DiedBloodMage at (Position of BloodmageGrave) , Hide revival graphics
Wait 0.10 seconds
Unit - Remove BloodmageGrave from the game
This trigger creates the Drunk Special Effect of the 2 villagers.
Pub Special Effect Drunk
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of Villager 0004 <gen> using Abilities\Spells\Other\StrongDrink\BrewmasterTarget.mdl
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of Villager 0005 <gen> using Abilities\Spells\Other\StrongDrink\BrewmasterTarget.mdl
This trigger makes the 2 villagers to play the animation: attack.
Pub Animation Attack
Events
Time - Every 2 seconds of game time
Conditions
Actions
Animation - Play Villager 0005 <gen> 's Attack animation
Animation - Play Villager 0004 <gen> 's Attack animation
This trigger creates the floating texts upon the 2 villagers.
Pub Floating Text
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Floating Text - Create floating text that reads You bast...*hic...ard! above Villager 0005 <gen> with Z offset 0 , using font size 7.50 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads Shut your mouth ass...*hic*hole! above Villager 0004 <gen> with Z offset 0 , using font size 7.50 , color ( 100 %, 100 %, 100 %), and 0 % transparency
This is the Game Message which shows up at the beggining of the game.
Game Message at Start
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Game - Display to (All players) the text: |cFFC0C0FFWelcome to my map! Use the Priest to kill the other heroes. After they die, use him again and cast Resurrection to the grave which shows up after the death of a hero. I hope you enjoy! Give credits if you want!|r
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.