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
Undergrave.w3x
Variables
Initialization
Time
Destructibles
Cam
Last Door
Close
Trap
Trap2
Dungeon Door1
Dungeon Door1
Dungeon Door2
Dungeon Door2
Dungeon Door3
Dungeon Door3
Return
Returns
Foward
Returns3
Returns4
Returns2
Horde
Hordes
Horde Charge
Atks
Bloodsuckers
Extra
Ritual1
Rit
Ritual1 Possess
Chats
Sucking
RUN
Getin
Heard
Lib
StopThatGuy1
Barkey
Libkey
Dung1
Dung2
Dung3
See
Door1
Bar Tender Key
Patrols
Patrol1
Item
Item stacking Hp
Item stacking Mp
Item stacking drop Hp
Item stacking drop Mp
Door2
Lib Key
Library Gate
Library Gate inside
Lib Monster
GG
Lose
Win
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
Mpcarrying
integer
Yes
MpCarryinginventory
integer
Yes
Mpcharges
integer
Yes
Potioncaryinginventory
integer
Yes
Potionscarrying
integer
Yes
Potionscharges
integer
Yes
Time
Events
Map initialization
Conditions
Actions
Game - Turn the day/night cycle Off
Default melee game initialization for all players
Destructibles
Events
Map initialization
Conditions
Actions
Destructible - Make City Entrance 0000 <gen> Invulnerable
Destructible - Make Dungeon Gate 0454 <gen> Invulnerable
Destructible - Make Dungeon Gate 0064 <gen> Invulnerable
Destructible - Make Dungeon Gate 0007 <gen> Invulnerable
Destructible - Make Support Column 0274 <gen> Invulnerable
Destructible - Make Support Column 0275 <gen> Invulnerable
Destructible - Make Magical Pen 0237 <gen> Invulnerable
Destructible - Make Elven Gate 0240 <gen> Invulnerable
Destructible - Make Elven Gate 0247 <gen> Invulnerable
Destructible - Make Elven Gate 0229 <gen> Invulnerable
Destructible - Make Dungeon Gate 0002 <gen> Invulnerable
Destructible - Make Dungeon Gate 0312 <gen> Invulnerable
Destructible - Open Elven Gate 0091 <gen>
Destructible - Open Dungeon Gate 0064 <gen>
Destructible - Open Dungeon Gate 0007 <gen>
Cam
Events
Map initialization
Conditions
Actions
Camera - Lock camera target for Player 1 (Red) to Survivor Leader 0004 <gen> , offset by ( 0.00 , 0.00 ) using The unit's rotation
Camera - Lock camera target for Player 2 (Blue) to Survivor 0042 <gen> , offset by ( 0.00 , 0.00 ) using The unit's rotation
Camera - Lock camera target for Player 3 (Teal) to Survivor 0043 <gen> , offset by ( 0.00 , 0.00 ) using The unit's rotation
Camera - Lock camera target for Player 4 (Purple) to Survivor 0044 <gen> , offset by ( 0.00 , 0.00 ) using The unit's rotation
Camera - Lock camera target for Player 5 (Yellow) to Survivor 0045 <gen> , offset by ( 0.00 , 0.00 ) using The unit's rotation
Camera - Lock camera target for Player 6 (Orange) to Survivor 0046 <gen> , offset by ( 0.00 , 0.00 ) using The unit's rotation
Close
Events
Destructible - Lever 0018 <gen> dies
Conditions
Actions
Destructible - Close Dungeon Gate 0064 <gen>
Destructible - Close Dungeon Gate 0007 <gen>
Trap
Events
Destructible - Lever 0006 <gen> dies
Conditions
Actions
Quest - Display to (All players) the Hint message: STAND CLEAR THE GATES!!!
Wait 5.00 seconds
Unit - Cause GGbomb 0078 <gen> to damage circular area after 0.10 seconds of radius 550.00 at (Center of Trap <gen>) , dealing 100000000.00 damage of attack type Spells and damage type Normal
Wait 0.10 seconds
Destructible - Destroy Dungeon Gate 0007 <gen>
Destructible - Kill Barrel of Explosives 0012 <gen>
Destructible - Kill Barrel of Explosives 0011 <gen>
Destructible - Kill Barrel of Explosives 0009 <gen>
Destructible - Kill Barrel of Explosives 0008 <gen>
Unit - Kill Detonator 0099 <gen>
Trap2
Events
Destructible - Lever 0006 <gen> dies
Conditions
Actions
Wait 5.00 seconds
Unit - Cause GGbomb 0077 <gen> to damage circular area after 0.10 seconds of radius 550.00 at (Center of Trap2 <gen>) , dealing 100000000.00 damage of attack type Spells and damage type Normal
Wait 0.10 seconds
Destructible - Destroy Dungeon Gate 0064 <gen>
Wait 2 seconds
Quest - Display to (All players) the Hint message: Is it over?
Dungeon Door1
Events
Unit - A unit enters Dungeon_Door <gen>
Conditions
((Entering unit) has an item of type Dungeon Key) Equal to True
Actions
Destructible - Open Dungeon Gate 0312 <gen>
Wait 0.10 seconds
Item - Remove (Item carried by (Entering unit) of type Dungeon Key)
Dungeon Door2
Events
Unit - A unit enters Region_017 <gen>
Conditions
((Entering unit) has an item of type Dungeon Key 2) Equal to True
Actions
Destructible - Open Dungeon Gate 0454 <gen>
Wait 0.10 seconds
Item - Remove (Item carried by (Entering unit) of type Dungeon Key 2)
Dungeon Door3
Events
Unit - A unit enters Unlock_Dungeon3 <gen>
Conditions
((Entering unit) has an item of type Dungeon Key 3) Equal to True
Actions
Destructible - Open Dungeon Gate 0002 <gen>
Wait 0.10 seconds
Item - Remove (Item carried by (Entering unit) of type Dungeon Key 3)
Returns
Events
Unit - A unit enters Return <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit - Move (Triggering unit) instantly to (Center of Home <gen>)
Foward
Events
Unit - A unit enters Return2 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit - Move (Triggering unit) instantly to (Center of Return5 <gen>)
Returns3
Events
Unit - A unit enters Return7 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit - Move (Triggering unit) instantly to (Center of Return6 <gen>)
Returns4
Events
Unit - A unit enters Return4 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit - Move (Triggering unit) instantly to (Center of Home <gen>)
Returns2
Events
Unit - A unit enters Return3 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit - Move (Triggering unit) instantly to (Center of Home <gen>)
Hordes
Events
Unit - A unit enters Horde <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit - Create 15 Mutilated Human for Neutral Hostile at (Center of Gg1 <gen>) facing (Position of (Triggering unit))
Unit - Create 15 Stabbed Corpse for Neutral Hostile at (Center of Gg2 <gen>) facing (Position of (Triggering unit))
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Horde Charge
Events
Unit - A unit enters RUN <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit Group - Order (Units in Gg1 <gen>) to Attack-Move To . (Center of Trap <gen>)
Unit Group - Order (Units in Gg2 <gen>) to Attack-Move To . (Center of Trap2 <gen>)
Bloodsuckers
Events
Unit - A unit enters Sucking <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit - Order Blood Suckers 0018 <gen> to Attack-Move To . (Center of Sucking <gen>)
Unit - Order Blood Suckers 0019 <gen> to Attack-Move To . (Center of Sucking <gen>)
Unit - Order Blood Suckers 0020 <gen> to Attack-Move To . (Center of Sucking <gen>)
Unit - Order Blood Suckers 0021 <gen> to Attack-Move To . (Center of Sucking <gen>)
Unit - Order Blood Suckers 0022 <gen> to Attack-Move To . (Center of Sucking <gen>)
Unit - Order Blood Suckers 0023 <gen> to Attack-Move To . (Center of Sucking <gen>)
Unit - Order Blood Suckers 0024 <gen> to Attack-Move To . (Center of Sucking <gen>)
Unit - Order Blood Suckers 0025 <gen> to Attack-Move To . (Center of Sucking <gen>)
Ritual1
Events
Time - Every 2.00 seconds of game time
Conditions
Actions
Animation - Play Possessed Being 0014 <gen> 's stand work gold animation
Rit
Events
Unit - Possessed Being 0014 <gen> Dies
Conditions
Actions
Trigger - Turn off Ritual1 <gen>
Ritual1 Possess
Events
Time - Elapsed game time is 0.10 seconds
Conditions
Actions
Animation - Play Child 0015 <gen> 's death animation
Sucking
Events
Unit - A unit enters Sucking <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Quest - Display to (All players) the Hint message: Aww man i think i scrapped myself...(Screeches!)What the fuck?
Wait 0.10 seconds
Trigger - Turn off (This trigger)
RUN
Events
Unit - A unit enters RUN <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Quest - Display to (All players) the Hint message: HORDES ARE COMING RUN!!
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Getin
Events
Unit - A unit enters Chat <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Quest - Display to (All players) the Hint message: GET THE FUCK IN HURRY!
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Heard
Events
Unit - A unit enters Heard <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Quest - Display to (All players) the Hint message: I think i heard something...
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Lib
Events
Unit - A unit enters Question1 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Quest - Display to (All players) the Hint message: What was that guy doing near the corpse?
Wait 0.10 seconds
Trigger - Turn off (This trigger)
StopThatGuy1
Events
Unit - A unit enters Stopthatguy1 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Quest - Display to (All players) the Hint message: STOP THAT GUY!
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Barkey
Events
Unit - A unit enters Unlock1 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Quest - Display to (All players) the Hint message: Need the bar tender's key.
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Libkey
Events
Unit - A unit enters Unlock2 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Quest - Display to (All players) the Hint message: Need the librarian's key.
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Dung1
Events
Unit - A unit enters Dungeon_Door <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Quest - Display to (All players) the Hint message: Need the dungeon keeper's key.
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Dung2
Events
Unit - A unit enters Region_017 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Quest - Display to (All players) the Hint message: Need the dungeon keeper's key 2.
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Dung3
Events
Unit - A unit enters Unlock_Dungeon3 <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Quest - Display to (All players) the Hint message: Need the dungeon keeper's key 3.
Wait 0.10 seconds
Trigger - Turn off (This trigger)
See
Events
Unit - A unit enters See <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Quest - Display to (All players) the Hint message: I SEE EXPLOSIVES AND A ROOM!LETS BARRICADE OURSELVES IN THERE AND DETONATE THEM!
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Bar Tender Key
Events
Unit - A unit enters Unlock1 <gen>
Conditions
((Entering unit) has an item of type Bar Tender's Key) Equal to True
Actions
Destructible - Open Elven Gate 0247 <gen>
Wait 0.10 seconds
Item - Remove (Item carried by (Entering unit) of type Bar Tender's Key)
Patrol1
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Order Mutilated Human 0013 <gen> to Move To . (Random point in Patrol1 <gen>)
Unit - Order Mutilated Human 0011 <gen> to Move To . (Random point in Patrol1 <gen>)
Unit - Order Mutilated Human 0012 <gen> to Move To . (Random point in Patrol1 <gen>)
-----------------------------------------------------------
|Made by Darkranger 002 Or Bart666.|
-----------------------------------------------------------
Change the item type you wish to stack so it wil automaticly stack it. You can chooseevery item you wan't to stack up. But the item must contain charges.
Every time you add a item type to stack change the numer 20
Like Potion of healing will be = player number+20
Add another item like infernal stone and that will be = player number +21
this will prevent the system to mix items up and mix the charges from different items.
Item stacking Hp
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to HP Potion
Actions
Set Variable Set Potioncaryinginventory[((Player number of (Owner of (Triggering unit))) + 20)] = (Potioncaryinginventory[((Player number of (Owner of (Triggering unit))) + 20)] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Potioncaryinginventory[((Player number of (Owner of (Triggering unit))) + 20)] Equal to 2
Then - Actions
Set Variable Set Potionscharges[((Player number of (Owner of (Triggering unit))) + 20)] = (Charges remaining in (Item being manipulated))
Item - Remove (Item being manipulated)
Set Variable Set Potionscarrying[((Player number of (Owner of (Triggering unit))) + 20)] = (Charges remaining in (Item carried by (Triggering unit) of type HP Potion))
Item - Remove (Item carried by (Triggering unit) of type HP Potion)
Hero - Create HP Potion and give it to (Triggering unit)
Item - Set charges remaining in (Last created item) to (Potionscarrying[((Player number of (Owner of (Triggering unit))) + 20)] + Potionscharges[((Player number of (Owner of (Triggering unit))) + 20)])
Else - Actions
-----------------------------------------------------------
|Made by Darkranger 002 Or Bart666.|
-----------------------------------------------------------
Change the item type you wish to stack so it wil automaticly stack it. You can chooseevery item you wan't to stack up. But the item must contain charges.
Every time you add a item type to stack change the numer 20
Like Potion of healing will be = player number+20
Add another item like infernal stone and that will be = player number +21
this will prevent the system to mix items up and mix the charges from different items.
Item stacking Mp
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to MP Potion
Actions
Set Variable Set MpCarryinginventory[((Player number of (Owner of (Triggering unit))) + 10)] = (MpCarryinginventory[((Player number of (Owner of (Triggering unit))) + 10)] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MpCarryinginventory[((Player number of (Owner of (Triggering unit))) + 10)] Equal to 2
Then - Actions
Set Variable Set Mpcharges[((Player number of (Owner of (Triggering unit))) + 10)] = (Charges remaining in (Item being manipulated))
Item - Remove (Item being manipulated)
Set Variable Set Mpcarrying[((Player number of (Owner of (Triggering unit))) + 10)] = (Charges remaining in (Item carried by (Triggering unit) of type MP Potion))
Item - Remove (Item carried by (Triggering unit) of type MP Potion)
Hero - Create MP Potion and give it to (Triggering unit)
Item - Set charges remaining in (Last created item) to (Mpcarrying[((Player number of (Owner of (Triggering unit))) + 10)] + Mpcharges[((Player number of (Owner of (Triggering unit))) + 10)])
Else - Actions
This is needed or the stacking wil count the items up to 4 charges or more (depends on the charges when picked up or buyed and stops combining them after you have 2 in your inventory separated.
Item stacking drop Hp
Events
Unit - A unit Loses an item
Conditions
(Item-type of (Item being manipulated)) Equal to HP Potion
Actions
Set Variable Set Potioncaryinginventory[((Player number of (Owner of (Triggering unit))) + 20)] = (Potioncaryinginventory[((Player number of (Owner of (Triggering unit))) + 20)] - 1)
This is needed or the stacking wil count the items up to 4 charges or more (depends on the charges when picked up or buyed and stops combining them after you have 2 in your inventory separated.
Item stacking drop Mp
Events
Unit - A unit Loses an item
Conditions
(Item-type of (Item being manipulated)) Equal to MP Potion
Actions
Set Variable Set MpCarryinginventory[((Player number of (Owner of (Triggering unit))) + 10)] = (MpCarryinginventory[((Player number of (Owner of (Triggering unit))) + 10)] - 1)
Lib Key
Events
Unit - A unit enters Unlock2 <gen>
Conditions
((Entering unit) has an item of type Library Key) Equal to True
Actions
Destructible - Open Elven Gate 0240 <gen>
Wait 0.10 seconds
Item - Remove (Item carried by (Entering unit) of type Library Key)
Library Gate
Events
Destructible - Lever 0234 <gen> dies
Conditions
Actions
Destructible - Open Elven Gate 0229 <gen>
Wait 5.00 seconds
Destructible - Resurrect Lever 0234 <gen> with (Max life of (Last created destructible)) life and Show birth animation
Destructible - Close Elven Gate 0229 <gen>
Library Gate inside
Events
Destructible - Lever 0236 <gen> dies
Conditions
Actions
Destructible - Open Elven Gate 0229 <gen>
Wait 5.00 seconds
Destructible - Resurrect Lever 0236 <gen> with (Max life of (Last created destructible)) life and Show birth animation
Destructible - Close Elven Gate 0229 <gen>
Lib Monster
Events
Destructible - Cage 0230 <gen> dies
Conditions
Actions
Unit - Create 1 . Stabbed Corpse for Neutral Hostile at (Center of Lib_Monster <gen>) facing Default building facing degrees
Lose
Events
Unit - A unit owned by (Owner of Survivor Leader 0004 <gen>) . Dies
Conditions
Actions
Game - Defeat Player 1 (Red) with the message: Defeat!
Game - Defeat Player 2 (Blue) with the message: Defeat!
Game - Defeat Player 3 (Teal) with the message: Defeat!
Game - Defeat Player 4 (Purple) with the message: Defeat!
Game - Defeat Player 5 (Yellow) with the message: Defeat!
Game - Defeat Player 6 (Orange) with the message: Defeat!
Win
Events
Unit - A unit enters End <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Unit - Pause all units
Quest - Display to (All players) the Quest Update message: Thanks for playing "UNDERGRAVE"Chapter 2 will be out don't know when but soon!Created by MiniDisc (Come Clan Disc to give me ideas)
Wait 6.00 seconds
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Game - Victory Player 3 (Teal) ( Show dialogs, Show scores)
Game - Victory Player 4 (Purple) ( Show dialogs, Show scores)
Game - Victory Player 5 (Yellow) ( Show dialogs, Show scores)
Game - Victory Player 6 (Orange) ( Show dialogs, Show scores)
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.