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
Dungeon Adventure.w3x
Variables
Item Drop
Item Drop
Initialization
Gold Share
Gold Share
Help
Help2
Help1
Losing
Lose 4
Lose 3
Lose 2
Lose 1
Summon Pet
Delete
Winning
Win 4
Win 3
Win 2
Win 1
Respawn
Pet Talker
Pet Check
Pet Respawn
Hero Respawn
Unit Respawn
Gate Open
Locked 6
Open 6
Locked 5
Open 5
Locked 4
Open 4
Locked 3
Open 3
Locked 1
Open 1
Locked 2
Open 2
Item Combine
Item Combine
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
Count
integer
No
EraseGold
string
No
0
Gold
integer
No
PlayerGroup
force
No
SharedGold
integer
No
Temp_Group
group
No
Temp_Point
location
No
Item Drop
Events
Unit - A unit owned by Neutral Hostile . Dies
Conditions
Actions
Wait 0.01 seconds
Hero - Give (Random item in (Region centered at (Position of (Dying unit)) with size (200.00, 200.00))) to (Killing unit)
Hero - Give (Random item in (Region centered at (Position of (Dying unit)) with size (200.00, 200.00))) to (Killing unit)
Hero - Give (Random item in (Region centered at (Position of (Dying unit)) with size (200.00, 200.00))) to (Killing unit)
Hero - Give (Random item in (Region centered at (Position of (Dying unit)) with size (200.00, 200.00))) to (Killing unit)
Hero - Give (Random item in (Region centered at (Position of (Dying unit)) with size (200.00, 200.00))) to (Killing unit)
Hero - Give (Random item in (Region centered at (Position of (Dying unit)) with size (200.00, 200.00))) to (Killing unit)
Gold Share
Events
Unit - A unit owned by Neutral Hostile . Dies
Conditions
Actions
Player - Set Neutral Hostile . Current gold to ((Point-value of (Triggering unit)) + (Random integer number between 5 and 20))
Set Variable Set Gold = ((Owner of (Triggering unit)) Current gold)
Set Variable Set PlayerGroup = (All players matching (((Matching player) is an enemy of Neutral Hostile.) Equal to True).)
Set Variable Set Count = (Number of players in PlayerGroup)
Set Variable Set SharedGold = (Gold / Count)
Player Group - Pick every player in PlayerGroup and do (Actions)
Loop - Actions
Player - Set (Picked player) . Current gold to (((Picked player) Current gold) + SharedGold)
Help2
Events
Player - Player 1 (Red) types a chat message containing -help (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Wait 1.00 seconds
Game - Display to (All players) the text: Welcome to my map! Help: You need keys to open doors, certain enemies WILL drop them.Pick your hero at the Hero Tavern.If you die you will come back to life at the beginning with 0 gold.Ability Hotkeys are in order: "QWERTY" as you see in window.Health Potion hotkey is "U" Mana is "I"Hint: Work together!!
Help1
Events
Time - Elapsed game time is 10.00 seconds
Conditions
Actions
Game - Display to (All players) the text: Welcome to my map!
Game - Display to (All players) the text: Type "-help" for help (without quotes) if there is someone here who hasn't played this version of Dungeon Adventures.
Lose 4
Events
Unit - Circle of Power 0045 <gen> Dies
Conditions
Actions
Game - Defeat Player 4 (Purple) with the message: Defeat!
Lose 3
Events
Unit - Circle of Power 0045 <gen> Dies
Conditions
Actions
Game - Defeat Player 3 (Teal) with the message: Defeat!
Lose 2
Events
Unit - Circle of Power 0045 <gen> Dies
Conditions
Actions
Game - Defeat Player 2 (Blue) with the message: Defeat!
Lose 1
Events
Unit - Circle of Power 0045 <gen> Dies
Conditions
Actions
Game - Defeat Player 1 (Red) with the message: Defeat!
Delete
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Summon Pet
Actions
Player - Disable (Ability being cast) for (Owner of (Triggering unit))
Win 4
Events
Unit - Peasant 0008 <gen> Dies
Conditions
Actions
Wait 2 seconds
Game - Victory Player 4 (Purple) ( Show dialogs, Show scores)
Win 3
Events
Unit - Peasant 0008 <gen> Dies
Conditions
Actions
Wait 2 seconds
Game - Victory Player 3 (Teal) ( Show dialogs, Show scores)
Win 2
Events
Unit - Peasant 0008 <gen> Dies
Conditions
Actions
Wait 2 seconds
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Win 1
Events
Unit - Peasant 0008 <gen> Dies
Conditions
Actions
Wait 2 seconds
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Pet Talker
Events
Game - The 'Build Structure' button is clicked
Conditions
Actions
Game - Display to (All players matching ((Ability being cast) Equal to Resurrect Pet).) the text: Your Pet is already alive.
Wait 5.00 seconds
Trigger - Turn off (This trigger)
Pet Check
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Resurrect Pet
Actions
Set Variable Set Temp_Group = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Pet) and (((Owner of (Matching unit)) Equal to (Owner of (Triggering unit))) and (((Matching unit) is alive) Equal to True))))
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Owner of (Triggering unit))) and do (Actions)
Loop - Actions
Unit - Order (Casting unit) to Stop .
Trigger - Turn on Pet_Talker <gen>
Trigger - Run Pet_Talker <gen> (checking conditions)
Set Variable Set Temp_Point = (Position of (Triggering unit))
Set Variable Set Temp_Group = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Pet) and (((Owner of (Matching unit)) Equal to (Owner of (Triggering unit))) and (((Matching unit) is dead) Equal to True))))
Unit Group - Pick every unit in Temp_Group and do (Actions)
Loop - Actions
Hero - Instantly revive (Picked unit) at Temp_Point , Show revival graphics
Player - Set (Owner of (Triggering unit)) . Current gold to 0
Camera - Pan camera as necessary for (Owner of (Triggering unit)) to (Center of Respawn2 <gen>) over 3.00 seconds
Wait 3.00 seconds
Hero - Instantly revive (Triggering unit) at (Center of Respawn <gen>) , Show revival graphics
Unit Respawn
Events
Unit - A unit owned by Neutral Hostile . Dies
Conditions
Actions
Wait 180.00 seconds
Unit - Replace (Triggering unit) with a (Unit-type of (Triggering unit)) using The new unit's max life and mana
Unit - Rescue (Triggering unit) for Neutral Hostile and Retain color
Locked 6
Events
Unit - A unit enters Gate_6 <gen>
Conditions
((Item carried by (Triggering unit) of type Key 6) is owned) Equal to False
Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: This door is locked.
Open 6
Events
Unit - A unit enters Gate_6 <gen>
Conditions
((Item carried by (Triggering unit) of type Key 6) is owned) Equal to True
Actions
Game - Display to (All players) the text: Boss 3's gate is unlocked.
Destructible - Destroy (Random destructible in Gate_6 <gen>)
Item - Remove (Item carried by (Triggering unit) of type Key 6)
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Locked 5
Events
Unit - A unit enters Gate_5 <gen>
Conditions
((Item carried by (Triggering unit) of type Key 5) is owned) Equal to False
Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: This door is locked.
Open 5
Events
Unit - A unit enters Gate_5 <gen>
Conditions
((Item carried by (Triggering unit) of type Key 5) is owned) Equal to True
Actions
Game - Display to (All players) the text: Mini-Boss 3's gate is unlocked.
Destructible - Destroy (Random destructible in Gate_5 <gen>)
Item - Remove (Item carried by (Triggering unit) of type Key 5)
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Locked 4
Events
Unit - A unit enters Gate_4 <gen>
Conditions
((Item carried by (Triggering unit) of type Key 4) is owned) Equal to False
Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: This door is locked.
Open 4
Events
Unit - A unit enters Gate_4 <gen>
Conditions
((Item carried by (Triggering unit) of type Key 4) is owned) Equal to True
Actions
Game - Display to (All players) the text: Boss 2's gate is unlocked.
Destructible - Destroy (Random destructible in Gate_4 <gen>)
Item - Remove (Item carried by (Triggering unit) of type Key 4)
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Locked 3
Events
Unit - A unit enters Gate_3 <gen>
Conditions
((Item carried by (Triggering unit) of type Key 3) is owned) Equal to False
Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: This door is locked.
Open 3
Events
Unit - A unit enters Gate_3 <gen>
Conditions
((Item carried by (Triggering unit) of type Key 3) is owned) Equal to True
Actions
Game - Display to (All players) the text: Mini-Boss 2's gate is unlocked.
Destructible - Destroy (Random destructible in Gate_3 <gen>)
Item - Remove (Item carried by (Triggering unit) of type Key 3)
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Locked 1
Events
Unit - A unit enters Gate_1 <gen>
Conditions
((Item carried by (Triggering unit) of type Key 1) is owned) Equal to False
Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: This door is locked.
Open 1
Events
Unit - A unit enters Gate_1 <gen>
Conditions
((Item carried by (Triggering unit) of type Key 1) is owned) Equal to True
Actions
Game - Display to (All players) the text: Mini-Boss 1's gate is unlocked.
Destructible - Destroy (Random destructible in Gate_1 <gen>)
Item - Remove (Item carried by (Triggering unit) of type Key 1)
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Locked 2
Events
Unit - A unit enters Gate_2 <gen>
Conditions
((Item carried by (Triggering unit) of type Key 2) is owned) Equal to False
Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: This door is locked.
Open 2
Events
Unit - A unit enters Gate_2 <gen>
Conditions
((Item carried by (Triggering unit) of type Key 2) is owned) Equal to True
Actions
Game - Display to (All players) the text: Boss 1's gate is unlocked.
Destructible - Destroy (Random destructible in Gate_2 <gen>)
Item - Remove (Item carried by (Triggering unit) of type Key 2)
Wait 0.10 seconds
Trigger - Turn off (This trigger)
Item Combine
Events
Unit - A unit Acquires an item
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Item-type of (Item being manipulated)) Equal to Ankh of Reincarnation
(Item-type of (Item being manipulated)) Equal to Healing Potion 1000
(Item-type of (Item being manipulated)) Equal to Healing Potion 1250
(Item-type of (Item being manipulated)) Equal to Healing Potion 1500
(Item-type of (Item being manipulated)) Equal to Healing Potion 500
(Item-type of (Item being manipulated)) Equal to Healing Potion 750
(Item-type of (Item being manipulated)) Equal to Mana Potion 1000
(Item-type of (Item being manipulated)) Equal to Mana Potion 1250
(Item-type of (Item being manipulated)) Equal to Mana Potion 1500
(Item-type of (Item being manipulated)) Equal to Mana Potion 500
(Item-type of (Item being manipulated)) Equal to Summon Doom Guard
Then - Actions
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item being manipulated))
(Item carried by (Hero manipulating item) in slot (Integer A)) Not equal to (Item being manipulated)
Then - Actions
Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A)) to ((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))) + (Charges remaining in (Item being manipulated)))
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.