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
MyNewCampaign001.2.w3x
Variables
Initialization
Melee Initialization
Triggers
Quest
Part1
Part2
Part3
LastKeys
GateInvu
GateOpen
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
BloodK
integer
No
GateFind
questitem
No
GateOpen
questitem
No
GhostK
integer
No
MoonK
integer
No
QuestGate
quest
No
SunK
integer
No
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Set starting resources (for all players)
Quest
Events
Map initialization
Conditions
Actions
Wait 1.00 seconds
Quest - Create a Required quest titled The Gate with the description Find a way to Open the Gate. , using icon path ReplaceableTextures\CommandButtons\BTNSunKey.blp
Set Variable Set QuestGate = (Last created quest)
Quest - Create a quest requirement for QuestGate with the description Find a way to open the Gate.
Set Variable Set GateFind = (Last created quest requirement)
Quest - Create a quest requirement for QuestGate with the description Open the Gate.
Set Variable Set GateOpen = (Last created quest requirement)
Quest - Display to Player Group - Player 1 (Red) the Quest Discovered message: |cffffcc00MAIN QUEST|rThe Gate- Find a way to open the Gate.- Open the Gate.
Part1
Events
Unit - A unit enters Region_000 <gen>
Conditions
Actions
Trigger - Turn off (This trigger)
Item - Create Moon Key at (Center of Region_000 <gen>)
Part2
Events
Unit - A unit enters Region_001 <gen>
Conditions
(Item-type of (Item carried by Blood Mage 0001 <gen> of type Moon Key)) Equal to Moon Key
Actions
Trigger - Turn off (This trigger)
Item - Remove (Item carried by Blood Mage 0001 <gen> of type Moon Key)
Hero - Create Sun Key and give it to Blood Mage 0001 <gen>
Part3
Events
Unit - A unit enters Region_002 <gen>
Conditions
(Item-type of (Item carried by Blood Mage 0001 <gen> of type Sun Key)) Equal to Sun Key
Actions
Trigger - Turn off (This trigger)
Item - Remove (Item carried by Blood Mage 0001 <gen> of type Sun Key)
Hero - Create Blood Key and give it to Blood Mage 0001 <gen>
LastKeys
Events
Unit - A unit comes within 1.00 of Circle of Power 0002 <gen>
Conditions
And - All (Conditions) are true
Conditions
(Item-type of (Item carried by Blood Mage 0001 <gen> of type Blood Key)) Equal to Blood Key
(Item-type of (Item carried by Blood Mage 0001 <gen> of type Ghost Key)) Equal to Ghost Key
Actions
Item - Remove (Item carried by Blood Mage 0001 <gen> of type Blood Key)
Item - Remove (Item carried by Blood Mage 0001 <gen> of type Ghost Key)
Hero - Create Magic Key Chain and give it to Blood Mage 0001 <gen>
Quest - Mark GateFind as Completed
Quest - Display to Player Group - Player 1 (Red) the Quest Update message: |cffffcc00MAIN QUEST|rThe Gate- |cff808080Find a way to open the Gate. (Completed)|r- Open the Gate.
GateInvu
Events
Map initialization
Conditions
Actions
Destructible - Make Gate 0000 <gen> Invulnerable
GateOpen
Events
Unit - A unit enters Gate <gen>
Conditions
(Item-type of (Item carried by Blood Mage 0001 <gen> of type Magic Key Chain)) Equal to Magic Key Chain
Actions
Item - Remove (Item carried by Blood Mage 0001 <gen> of type Magic Key Chain)
Trigger - Turn on Win <gen>
Destructible - Open Gate 0000 <gen>
Quest - Mark GateOpen as Completed
Quest - Display to Player Group - Player 1 (Red) the Quest Update message: |cffffcc00MAIN QUEST|rThe Gate- |cff808080Find a way to open the Gate. (Completed)|r- |cff808080Open the Gate. (Completed)|r
Wait 0.50 seconds
Quest - Display to Player Group - Player 1 (Red) the Quest Completed message: |cffffcc00MAIN QUEST COMPLETED|rThe Gate
Win
Events
Unit - A unit comes within 1.00 of Circle of Power 0003 <gen>
Conditions
Actions
Game - Victory Player 1 (Red) ( 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.