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
RPGTENX.w3x
Variables
Initialization
Init
Quest Init
Init Players
Init Messages
Gameplay
Hero Setup
Hero Picking
Hero Revive
Terrain
Open Human Gate
Close Human Gate
Secret Cave Entrance
Secret Cave Exit
Creeps and Bosses
Creep Respawn
Shadow Walker
HumanOrc Battle
Orc Spawn
Human Spawn
Human March
Orc March
Wanderers
Item Combination and Forge
Dragon Sword
Voodoo Doll
Banner of the Dead
Spiked Collar
Quest
Stolen Ring
Stolen Ring 2
Rebellion
Caravan Escort
Caravan 2
Caravan 3
SE
Giver1
Giver2
Giver3
QComplete
Stolen Ring Complete
Rebellion Complete
Caravan Escort Complete
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
QuestEffect
effect
Yes
QuestReq
questitem
Yes
Quests
quest
Yes
Init
Events
Map initialization
Conditions
Actions
Quest Init
Events
Map initialization
Conditions
Actions
Quest - Create a Required, undiscovered quest titled Stolen Ring with the description A group of bandits near the village stole a ring from a villager. The villager wants the ring back, so you must retrieve the ring from them. , using icon path ReplaceableTextures\CommandButtons\BTNGoldRing.blp
Set Variable Set Quests[1] = (Last created quest)
Quest - Create a quest requirement for Quests[1] with the description Retrieve the ring
Set Variable Set QuestReq[1] = (Last created quest requirement)
Quest - Create a quest requirement for Quests[1] with the description Return the ring
Set Variable Set QuestReq[2] = (Last created quest requirement)
Quest - Create a Required, undiscovered quest titled Rebellion with the description When a king rules a kingdom, some people can disagree with the king's reign. People became rebels and try to assasinate the king. The king needs your help to find and kill the rebel leader! , using icon path ReplaceableTextures\CommandButtons\BTNBandit.blp
Set Variable Set Quests[2] = (Last created quest)
Quest - Create a quest requirement for Quests[2] with the description Kill the Rebel Leader
Set Variable Set QuestReq[3] = (Last created quest requirement)
Quest - Create a Required, undiscovered quest titled Caravan Escort with the description A caravan must make through a forest of Furbolgs in order to send supplies to the Naga Camp to the North from the caravan. You must make sure the caravan survived. , using icon path ReplaceableTextures\CommandButtons\BTNBloodElfSupplyWagon.blp
Set Variable Set Quests[3] = (Last created quest)
Quest - Create a quest requirement for Quests[3] with the description Help the caravan to reach the Naga Camp and atleast a wagon survived.
Set Variable Set QuestReq[4] = (Last created quest requirement)
Quest - Create a quest requirement for Quests[3] with the description Return to the Captain.
Set Variable Set QuestReq[5] = (Last created quest requirement)
Init Players
Events
Map initialization
Conditions
Actions
Player - Set Player 1 (Red) . Current gold to 1000
Player - Set Player 2 (Blue) . Current gold to 1000
Player - Set Player 3 (Teal) . Current gold to 1000
Player - Set Player 4 (Purple) . Current gold to 1000
Player - Set Player 5 (Yellow) . Current gold to 1000
Player - Set Player 6 (Orange) . Current gold to 1000
Player - Set Player 7 (Green) . Current gold to 1000
Player - Set Player 8 (Pink) . Current gold to 1000
Player - Set Player 9 (Gray) . Current gold to 1000
Player - Set Player 1 (Red) . Current lumber to 1000
Player - Set Player 2 (Blue) . Current lumber to 1000
Player - Set Player 3 (Teal) . Current lumber to 1000
Player - Set Player 4 (Purple) . Current lumber to 1000
Player - Set Player 5 (Yellow) . Current lumber to 1000
Player - Set Player 6 (Orange) . Current lumber to 1000
Player - Set Player 7 (Green) . Current lumber to 1000
Player - Set Player 8 (Pink) . Current lumber to 1000
Player - Set Player 9 (Gray) . Current lumber to 1000
Init Messages
Events
Map initialization
Conditions
Actions
Wait 180.00 seconds
Quest - Display to (All players) the Hint message: |cffffcc00A secret passage lies near the Northeast of the Naga Camp, West section of the mountain, and near the waterfall. Which can be accesed by level 100 Heroes to unlock a secret hero...|r 1/20
Wait 300.00 seconds
Quest - Display to (All players) the Hint message: |cffffcc00Your village isn't safe from criminals and hostile creatures. You can find many enemies in the forest.|r 2/20
So you can pick only ONE hero from the Hero Tavern
Hero Picking
Events
Unit - Tavern 0000 <gen> Sells a unit
Conditions
(Selling unit) Equal to Tavern 0000 <gen>
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Buying unit)) Equal to Soul
Then - Actions
Unit - Remove (Buying unit) from the game
Selection - Select (Sold unit) for (Owner of (Buying unit))
Unit - Move (Sold unit) instantly to (Center of Hero_Entry <gen>)
Camera - Pan camera for (Owner of (Buying unit)) to (Center of Hero_Entry <gen>) over 2.00 seconds
Player - Set (Owner of (Sold unit)) . Food used to 1
Player - Set (Owner of (Sold unit)) . Food cap to 20
Else - Actions
Do nothing
Revives any Hero automatically
Hero Revive
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Wait 5.00 seconds
Unit - Create 1 . (Unit-type of (Dying unit)) for (Triggering player) at (Center of Hero_Entry <gen>) facing Default building facing degrees
Open Human Gate
Events
Unit - A unit enters Open <gen>
Conditions
Actions
Destructible - Open City Entrance 0721 <gen>
Close Human Gate
Events
Unit - A unit enters Close <gen>
Conditions
Actions
Destructible - Close City Entrance 0721 <gen>
Secret Cave Entrance
Events
Unit - A unit enters InSecretRoom <gen>
Conditions
((Entering unit) is A Hero) Equal to True
(Hero level of (Entering unit)) Equal to 100
Actions
Unit - Move (Entering unit) instantly to (Center of EntranceSecret <gen>)
Secret Cave Exit
Events
Unit - A unit enters OutSecretRoom <gen>
Conditions
((Entering unit) is A Hero) Equal to True
(Hero level of (Entering unit)) Equal to 100
Actions
Unit - Move (Entering unit) instantly to (Center of ExitSecret <gen>)
Every few seconds, any killed creep will respawn again and again.
Creep Respawn
Events
Unit - A unit owned by Neutral Hostile . Dies
Conditions
Actions
Wait 300.00 seconds
If ((Number of units in (Units within 1000000000.00 of (Center of (Region centered at (Position of (Dying unit)) with size (1.00, 1.00))) matching (((Triggering unit) belongs to an enemy of Neutral Hostile.) Equal to True).)) Equal to 0) then do (Replace (Dying unit) with a (Unit-type of (Dying unit)) using The new unit's max life and mana) else do (Run (This trigger) (checking conditions))
Shadow Walker
Events
Conditions
Actions
Orc Spawn
Events
Time - Every 180.00 seconds of game time
Conditions
Actions
Unit - Create 3 . Grunt for Player 12 (Brown) at (Center of Orc_Spawn <gen>) facing Default building facing degrees
Unit - Create 1 . Raider for Player 12 (Brown) at (Center of Orc_Spawn <gen>) facing Default building facing degrees
Human Spawn
Events
Time - Every 180.00 seconds of game time
Conditions
Actions
Unit - Create 3 . Footman for Player 10 (Light Blue) at (Center of Human_Spawn <gen>) facing Default building facing degrees
Unit - Create 1 . Knight for Player 10 (Light Blue) at (Center of Human_Spawn <gen>) facing Default building facing degrees
Human March
Events
Unit - A unit enters Human_Spawn <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Footman
(Unit-type of (Triggering unit)) Equal to Knight
Actions
Unit - Order (Triggering unit) to Attack-Move To . (Center of ATTACK <gen>)
Orc March
Events
Unit - A unit enters Orc_Spawn <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Grunt
(Unit-type of (Triggering unit)) Equal to Raider
Actions
Unit - Order (Triggering unit) to Attack-Move To . (Center of ATTACK <gen>)
Dragon Sword
Events
Conditions
Actions
Voodoo Doll
Events
Unit - A unit enters Forging_Area <gen>
Conditions
((Entering unit) has an item of type Soul) Equal to True
((Entering unit) is A Hero) Equal to True
Actions
Hero - Create Voodoo Doll and give it to (Entering unit)
Item - Remove (Item carried by (Entering unit) of type Soul)
Banner of the Dead
Events
Unit - A unit enters Forging_Area <gen>
Conditions
((Entering unit) has an item of type Rod of Necromancy) Equal to True
((Entering unit) is A Hero) Equal to True
Actions
Hero - Create Banner of the Dead and give it to (Entering unit)
Item - Remove (Item carried by (Entering unit) of type Rod of Necromancy)
Spiked Collar
Events
Unit - A unit Sells an item (from shop)
Conditions
(Selling unit) Equal to Combining Station 0320 <gen>
(Item-type of (Sold Item)) Equal to Spiked Collar
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Buying unit) is A Hero) Equal to True
Then - Actions
Else - Actions
Stolen Ring
Events
Unit - A unit enters Stolen_Ring_Entry <gen>
Conditions
((Entering unit) is A Hero) Equal to True
(Quests[1] is discovered) Equal to False
Actions
Quest - Mark Quests[1] as Discovered
Quest - Display to (All players) the Quest Discovered message: |cffffcc00Quest: Stolen Ring|r
Stolen Ring 2
Events
Unit - A unit Acquires an item
Conditions
(Quests[1] is discovered) Equal to True
(Item-type of (Item being manipulated)) Equal to Shiny Ring
Actions
Quest - Mark QuestReq[1] as Completed
Rebellion
Events
Unit - A unit enters Rebellion_Entry <gen>
Conditions
((Entering unit) is A Hero) Equal to True
(Quests[2] is discovered) Equal to False
Actions
Quest - Mark Quests[2] as Discovered
Quest - Display to (All players) the Quest Discovered message: |cffffcc00Quest: Rebellion|r
Caravan Escort
Events
Unit - A unit enters Caravan_Escort_Entry <gen>
Conditions
((Entering unit) is A Hero) Equal to True
(Quests[3] is discovered) Equal to False
Actions
Quest - Mark Quests[3] as Discovered
Quest - Display to (All players) the Quest Discovered message: |cffffcc00Quest: Caravan Escort|r
Trigger - Run Caravan_2 <gen> (checking conditions)
Caravan 2
Events
Unit - A unit enters Caravan_Escort_Respawn <gen>
Conditions
((Entering unit) is in (Units in Caravan_Escort_Respawn <gen> owned by Player 10 (Light Blue)).) Equal to True
Actions
Unit Group - Order (Units in Caravan_Escort_Respawn <gen>) to Move To . (Center of Caravan_Arrival <gen>)
Caravan 3
Events
Unit - A unit enters Caravan_Arrival <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Wagon
(Quests[3] is completed) Equal to False
Actions
Quest - Mark QuestReq[4] as Completed
Giver1
Events
Map initialization
Conditions
Actions
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of Villager 0019 <gen> using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
Set Variable Set QuestEffect[1] = (Last created special effect)
Giver2
Events
Map initialization
Conditions
Actions
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of The King 0033 <gen> using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
Set Variable Set QuestEffect[2] = (Last created special effect)
Giver3
Events
Map initialization
Conditions
Actions
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of Swordsman 0151 <gen> using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
Set Variable Set QuestEffect[3] = (Last created special effect)
Stolen Ring Complete
Events
Unit - A unit enters Stolen_Ring_Entry <gen>
Conditions
(Quests[1] is discovered) Equal to True
(QuestReq[1] is completed) Equal to True
(Quests[1] is completed) Equal to False
((Entering unit) has an item of type Shiny Ring) Equal to True
Actions
Item - Remove (Item carried by (Hero manipulating item) of type Shiny Ring)
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.