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
War of the Ring - Upbourn v1.1.w3m
Variables
Variables
Initialization
Melee Initialization
Gandalf the White
One Ring
Tower Capture
Sneak
Explosive Trap
Poison Trap
Shadow Bind
Ring Sight
AI
Siege Aura
Elven Speed
FlameShield
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 except Custom Script Item. Custom Script Item will merge into map script after globals variables declaration with the list order in trigger view.
Name
Type
is_array
initial_value
Group
group
No
Group2
group
No
Group3
group
No
RandomNumber
integer
No
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Race of (Picked player)) Equal to Human
(Race of (Picked player)) Equal to Night Elf
Then - Actions
Unit - Create 1 . Town Hall for (Picked player) at ((Picked player) start location) facing Default building facing degrees
Unit - Create 4 . Peasant for (Picked player) at (((Picked player) start location) offset by 256 towards 270.00 degrees.) facing Default building facing degrees
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) controller) Equal to Computer
Then - Actions
Set Variable Set RandomNumber = (Random integer number between 1 and 3)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RandomNumber Equal to 1
Then - Actions
AI - Start melee AI script for (Picked player) : WotrGoodAragorn.ai (Unexpected type: 'aiscript')
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RandomNumber Equal to 2
Then - Actions
AI - Start melee AI script for (Picked player) : WotrGoodBoromir.ai (Unexpected type: 'aiscript')
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RandomNumber Equal to 3
Then - Actions
AI - Start melee AI script for (Picked player) : WotrGoodGandalf.ai (Unexpected type: 'aiscript')
Else - Actions
Set Variable Set RandomNumber = "0"
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Race of (Picked player)) Equal to Orc
(Race of (Picked player)) Equal to Undead
Then - Actions
Unit - Create 1 . Town Hall for (Picked player) at ((Picked player) start location) facing Default building facing degrees
Unit - Create 4 . Peasant for (Picked player) at (((Picked player) start location) offset by 256 towards 270.00 degrees.) facing Default building facing degrees
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) controller) Equal to Computer
Then - Actions
Set Variable Set RandomNumber = (Random integer number between 1 and 2)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RandomNumber Equal to 1
Then - Actions
AI - Start melee AI script for (Picked player) : WotrEvilNazgulKing.ai (Unexpected type: 'aiscript')
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RandomNumber Equal to 2
Then - Actions
AI - Start melee AI script for (Picked player) : WotrEvilSaruman.ai (Unexpected type: 'aiscript')
Else - Actions
Set Variable Set RandomNumber = "0"
Else - Actions
Else - Actions
Player - Limit training of Footman to 1 for (Picked player)
Player - Limit training of Footman to 1 for (Picked player)
Player - Limit training of Footman to 1 for (Picked player)
Player - Limit training of Footman to 1 for (Picked player)
Player - Limit training of Rifleman to 1 for (Picked player)
Player - Limit training of Footman to 8 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Paladin to 1 for (Picked player)
Player - Limit training of Footman to 1 for (Picked player)
Player - Limit training of Footman to 1 for (Picked player)
Player - Limit training of Footman to 1 for (Picked player)
Player - Disable Spell Book for (Picked player)
Player - Disable Spell Book for (Picked player)
Player - Disable Spell Book for (Picked player)
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Set starting resources (for all players)
Gandalf the White
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Paladin
Actions
Unit - Replace (Triggering unit) with a Paladin using The old unit's relative life and mana
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Last replaced unit)) controller) Equal to Computer
Then - Actions
Hero - Learn skill for (Last replaced unit) : War Stomp
Hero - Learn skill for (Last replaced unit) : Silence
Hero - Learn skill for (Last replaced unit) : Blizzard
Else - Actions
One Ring
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Vengeance
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Item Life Regeneration (Lesser) for (Triggering unit)) Greater than 0
Then - Actions
Unit - Remove Item Life Regeneration (Lesser) from (Triggering unit)
Unit - Remove Ghost from (Triggering unit)
Ability - Set Icon of (Ability being cast) to ReplaceableTextures\CommandButtons\BTNOneRing.blp
Else - Actions
Unit - Add Item Life Regeneration (Lesser) to (Triggering unit)
Unit - Add Ghost to (Triggering unit)
Ability - Set Icon of (Ability being cast) to ReplaceableTextures\CommandButtonsDisabled\DISBTNOneRing.blp
Tower Capture
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Storm Bolt
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Target unit of ability being cast)) Equal to Guard Tower
(Unit-type of (Target unit of ability being cast)) Equal to Guard Tower
(Unit-type of (Target unit of ability being cast)) Equal to Guard Tower
Then - Actions
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Change color
Else - Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cffffd232Warning:|r Gimli is able to capture only towers!
Sound - Play Error <gen> at 100 % volume, attached to (Triggering unit)
Sound - Destroy (Last played sound)
Wait 1.00 seconds
Unit - For Unit (Triggering unit) , end cooldown of ability Storm Bolt
Sneak
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Vengeance
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Ghost for (Triggering unit)) Greater than 0
Then - Actions
Unit - Remove Ghost from (Triggering unit)
Ability - Set Icon of (Ability being cast) to ReplaceableTextures\CommandButtons\BTNSneak.blp
Unit - Set (Triggering unit) movement speed to (Default movement speed of (Triggering unit))
Else - Actions
Unit - Add Ghost to (Triggering unit)
Ability - Set Icon of (Ability being cast) to ReplaceableTextures\CommandButtonsDisabled\DISBTNSneak.blp
Unit - Set (Triggering unit) movement speed to ((Default movement speed of (Triggering unit)) - 100.00)
Explosive Trap
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Sentry Ward
Actions
Unit - Cause (Triggering unit) to damage circular area after 0 seconds of radius 300.00 at (Position of (Triggering unit)) , dealing 150.00 damage of attack type Siege and damage type Normal
Special Effect - Create a special effect at (Position of (Triggering unit)) using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
Special Effect - Destroy (Last created special effect)
Poison Trap
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Sentry Ward
Actions
Unit - Create 1 . Disease Cloud for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
Shadow Bind
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Storm Bolt
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Target unit of ability being cast)) Equal to Footman
(Number of living Footman units owned by (Owner of (Triggering unit))) Equal to 8
Then - Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cfffac832Warning:|r You already have all of the Nine Black Riders!
Sound - Play Error <gen> at 100 % volume, attached to (Triggering unit)
Sound - Destroy (Last played sound)
Wait 1.00 seconds
Unit - For Unit (Triggering unit) , end cooldown of ability Storm Bolt
Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 90.00)
Else - Actions
Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using war3mapImported\Effect_BindShadow.mdx
Special Effect - Destroy (Last created special effect)
Unit - Replace (Target unit of ability being cast) with a Footman using The old unit's relative life and mana
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Target unit of ability being cast)) Equal to Footman
Then - Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cfffac832Warning:|r You need a Wraith to make a Black Rider! Why do you even need to convert Black Rider into a Black Rider?
Sound - Play Error <gen> at 100 % volume, attached to (Triggering unit)
Sound - Destroy (Last played sound)
Wait 1.00 seconds
Unit - For Unit (Triggering unit) , end cooldown of ability Storm Bolt
Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 90.00)
Else - Actions
Ring Sight
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Taunt
Actions
Unit Group - Pick every unit in (Units within 4128.00 of (Position of (Triggering unit)).) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Not equal to (Owner of (Triggering unit))
Or - Any (Conditions) are true
Conditions
(Unit-type of (Picked unit)) Equal to Paladin
(Unit-type of (Picked unit)) Equal to Footman
(Unit-type of (Picked unit)) Equal to Paladin
Then - Actions
Cinematic - Ping minimap for (Player group((Owner of (Triggering unit)))) at (Position of (Picked unit)) for 4.00 seconds, using a Flashy ping of color ( 100 %, 100 %, 0.00 %)
Else - Actions
AI
Events
Unit - A unit Gains a level
Conditions
((Owner of (Triggering unit)) controller) Equal to Computer
(Level of (Triggering unit)) Equal to 4
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Paladin
Then - Actions
Hero - Learn skill for (Triggering unit) : War Stomp
Hero - Learn skill for (Triggering unit) : Storm Bolt
Hero - Learn skill for (Triggering unit) : Demolish
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Paladin
Then - Actions
Hero - Learn skill for (Triggering unit) : War Stomp
Hero - Learn skill for (Triggering unit) : Lightning Shield
Hero - Learn skill for (Triggering unit) : Silence
Hero - Learn skill for (Triggering unit) : Blizzard
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Paladin
Then - Actions
Hero - Learn skill for (Triggering unit) : Storm Bolt
Hero - Learn skill for (Triggering unit) : Scroll of Haste
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Paladin
Then - Actions
Hero - Learn skill for (Triggering unit) : Item Place Goblin Land Mine
Hero - Learn skill for (Triggering unit) : Berserk
Hero - Learn skill for (Triggering unit) : Shadow Strike
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Paladin
Then - Actions
Hero - Learn skill for (Triggering unit) : Item Place Goblin Land Mine
Hero - Learn skill for (Triggering unit) : Rejuvenation
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Paladin
Then - Actions
Hero - Learn skill for (Triggering unit) : Storm Bolt
Hero - Learn skill for (Triggering unit) : Mass Teleport
Hero - Learn skill for (Triggering unit) : Howl of Terror
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Paladin
Then - Actions
Hero - Learn skill for (Triggering unit) : Storm Bolt
Hero - Learn skill for (Triggering unit) : Blizzard
Hero - Learn skill for (Triggering unit) : Death And Decay
Hero - Learn skill for (Triggering unit) : Charm
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Paladin
Then - Actions
Hero - Learn skill for (Triggering unit) : Vengeance
Hero - Learn skill for (Triggering unit) : Critical Strike
Hero - Learn skill for (Triggering unit) : Sentry Ward
Else - Actions
Siege Aura
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Variable Set Group = (Units in (Playable map area) matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) has buff Devotion Aura) Equal to True) or ((Level of Spell Book for (Matching unit)) Greater than 0))))
Unit Group - Pick every unit in Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Devotion Aura) Equal to True
Then - Actions
Unit - Add Spell Book to (Picked unit)
Else - Actions
Unit - Remove Spell Book from (Picked unit)
Custom script: call DestroyGroup(udg_Group)
Elven Speed
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Variable Set Group2 = (Units in (Playable map area) matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) has buff Roar) Equal to True) or ((Level of Spell Book for (Matching unit)) Greater than 0))))
Unit Group - Pick every unit in Group2 and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Roar) Equal to True
Then - Actions
Unit - Add Spell Book to (Picked unit)
Else - Actions
Unit - Remove Spell Book from (Picked unit)
Custom script: call DestroyGroup(udg_Group2)
FlameShield
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Variable Set Group3 = (Units in (Playable map area) matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) has buff Immolation) Equal to True) or ((Level of Spell Book for (Matching unit)) Greater than 0))))
Unit Group - Pick every unit in Group3 and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
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.