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
MEDIEV2_4.w3x
Variables
Initialization
init
siege tower
attach
special features
camera 900
camera med
camera norm
nazgul screech
cavalry charge
revert charge
charge Copy
charge attack
heavy cav charge
charge Copy Copy
kill in range
Income-Events
check wins
player quits
corpses to gold timed
corpses to gold
Farm Enslaved
Income
Income Copy
trade
receive trade Copy
MTW effects
Flank Attack
Name
Type
is_array
initial_value
cavalry
group
No
elephants
group
No
PickedElephant
unit
No
victor
boolean
No
false
init
Events
Map initialization
Conditions
Actions
Melee Game - Set starting resources (for all players)
Floating Text - Create floating text that reads The strength of a Good Knight runs deepest,His compassion for the poor is without equal,Arrogance is as far from his mouth,As West from East,He is true to God and spouse,May his hand reign forever! above Priest 0214 <gen> with Z offset 20.00 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads The strength of a Good Knight runs deepest,His compassion for the poor is without equal,Arrogance is as far from his mouth,As West from East,He is true to God and spouse,May his hand reign forever! above Priest 0170 <gen> with Z offset 20.00 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Wait 1.00 game-time seconds
Player - Make Player 9 (Gray) treat Player 12 (Brown) as an Enemy
Player - Make Player 12 (Brown) treat Player 9 (Gray) as an Enemy
Player - Make Player 10 (Light Blue) treat Player 12 (Brown) as an Enemy
Player - Make Player 12 (Brown) treat Player 10 (Light Blue) as an Enemy
For each (Integer A) from 1 to 4 , do (Actions)
Loop - Actions
Player - Limit training of Chicken to 50 for (Player((Integer A)))
Player - Limit training of Farm to 5 for (Player((Integer A)))
Player - Make (Player((Integer A))) treat Player 12 (Brown) as an Ally
Player - Make Player 12 (Brown) treat (Player((Integer A))) as an Ally
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Not equal to Is playing
Then - Actions
Unit Group - Pick every unit in (Random 3 units from (Units owned by (Player((Integer A))) of type Farm)) and do (Change ownership of (Picked unit) to Neutral Hostile and Change color)
Unit Group - Pick every unit in (Units owned by (Player((Integer A))).) and do (Remove (Picked unit) from the game)
Else - Actions
For each (Integer A) from 5 to 8 , do (Actions)
Loop - Actions
Player - Limit training of Chicken to 10 for (Player((Integer A)))
Player - Limit training of Farm to 0 for (Player((Integer A)))
Player - Limit training of Guild to 6 for (Player((Integer A)))
Player - Make (Player((Integer A))) treat Player 12 (Brown) as an Ally
Player - Make Player 12 (Brown) treat (Player((Integer A))) as an Ally
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Not equal to Is playing
Then - Actions
Unit Group - Pick every unit in (Units owned by (Player((Integer A))).) and do (Remove (Picked unit) from the game)
Else - Actions
Player - Limit training of Chicken to 50 for Player 9 (Gray)
Player - Limit training of Chicken to 50 for Player 10 (Light Blue)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 9 (Gray) slot status) Not equal to Is playing
Then - Actions
Unit Group - Pick every unit in (Units owned by Player 9 (Gray).) and do (Remove (Picked unit) from the game)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 10 (Light Blue) slot status) Not equal to Is playing
Then - Actions
Unit Group - Pick every unit in (Units owned by Player 10 (Light Blue).) and do (Remove (Picked unit) from the game)
Else - Actions
Floating Text - Create floating text that reads Drop enemy corpses off here as a sacrifice to the pagan gods to win extra gold! at (Center of Sacrificial_pit <gen>) with Z offset 400.00 , using font size 12.00 , color ( 100 %, 30.00 %, 30.00 %), and 70.00 % transparency
Game - Display to (All players) the text: type:-max for furthest view-med for medium view-norm for normal view
Wait 250.00 game-time seconds
Game - Display to (All players) the text: Special Thanks to:Kitabatake for Viking unit modelsBlinkboy for the horse archer modelBlack_stan for Mongol cavalry
attach
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Attach Tower
Actions
Wait 1.00 seconds
Neutral Building - Set (Casting unit) destination to ((Position of (Casting unit)) offset by 300.00 towards (Facing of (Casting unit)) degrees.)
Neutral Building - Enable (Casting unit)
camera 900
Events
Player - Player 1 (Red) types a chat message containing -max (Unexpected type: 'stringnoformat') as An exact match
Player - Player 2 (Blue) types a chat message containing -max (Unexpected type: 'stringnoformat') as An exact match
Player - Player 3 (Teal) types a chat message containing -max (Unexpected type: 'stringnoformat') as An exact match
Player - Player 4 (Purple) types a chat message containing -max (Unexpected type: 'stringnoformat') as An exact match
Player - Player 5 (Yellow) types a chat message containing -max (Unexpected type: 'stringnoformat') as An exact match
Player - Player 6 (Orange) types a chat message containing -max (Unexpected type: 'stringnoformat') as An exact match
Player - Player 7 (Green) types a chat message containing -max (Unexpected type: 'stringnoformat') as An exact match
Player - Player 8 (Pink) types a chat message containing -max (Unexpected type: 'stringnoformat') as An exact match
Player - Player 9 (Gray) types a chat message containing -max (Unexpected type: 'stringnoformat') as An exact match
Player - Player 10 (Light Blue) types a chat message containing -max (Unexpected type: 'stringnoformat') as An exact match
Player - Player 11 (Dark Green) types a chat message containing -max (Unexpected type: 'stringnoformat') as An exact match
Player - Player 12 (Brown) types a chat message containing -max (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Camera - Set (Triggering player) 's camera Height Offset to 1000.00 over 3.00 seconds
camera med
Events
Player - Player 1 (Red) types a chat message containing -med (Unexpected type: 'stringnoformat') as An exact match
Player - Player 2 (Blue) types a chat message containing -med (Unexpected type: 'stringnoformat') as An exact match
Player - Player 3 (Teal) types a chat message containing -med (Unexpected type: 'stringnoformat') as An exact match
Player - Player 4 (Purple) types a chat message containing -med (Unexpected type: 'stringnoformat') as An exact match
Player - Player 5 (Yellow) types a chat message containing -med (Unexpected type: 'stringnoformat') as An exact match
Player - Player 6 (Orange) types a chat message containing -med (Unexpected type: 'stringnoformat') as An exact match
Player - Player 7 (Green) types a chat message containing -med (Unexpected type: 'stringnoformat') as An exact match
Player - Player 8 (Pink) types a chat message containing -med (Unexpected type: 'stringnoformat') as An exact match
Player - Player 9 (Gray) types a chat message containing -med (Unexpected type: 'stringnoformat') as An exact match
Player - Player 10 (Light Blue) types a chat message containing -med (Unexpected type: 'stringnoformat') as An exact match
Player - Player 11 (Dark Green) types a chat message containing -med (Unexpected type: 'stringnoformat') as An exact match
Player - Player 12 (Brown) types a chat message containing -med (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Camera - Set (Triggering player) 's camera Height Offset to 550.00 over 3.00 seconds
camera norm
Events
Player - Player 1 (Red) types a chat message containing -norm (Unexpected type: 'stringnoformat') as An exact match
Player - Player 2 (Blue) types a chat message containing -norm (Unexpected type: 'stringnoformat') as An exact match
Player - Player 3 (Teal) types a chat message containing -norm (Unexpected type: 'stringnoformat') as An exact match
Player - Player 4 (Purple) types a chat message containing -norm (Unexpected type: 'stringnoformat') as An exact match
Player - Player 5 (Yellow) types a chat message containing -norm (Unexpected type: 'stringnoformat') as An exact match
Player - Player 6 (Orange) types a chat message containing -norm (Unexpected type: 'stringnoformat') as An exact match
Player - Player 7 (Green) types a chat message containing -norm (Unexpected type: 'stringnoformat') as An exact match
Player - Player 8 (Pink) types a chat message containing -norm (Unexpected type: 'stringnoformat') as An exact match
Player - Player 9 (Gray) types a chat message containing -norm (Unexpected type: 'stringnoformat') as An exact match
Player - Player 10 (Light Blue) types a chat message containing -norm (Unexpected type: 'stringnoformat') as An exact match
Player - Player 11 (Dark Green) types a chat message containing -norm (Unexpected type: 'stringnoformat') as An exact match
Player - Player 12 (Brown) types a chat message containing -norm (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Camera - Reset camera for (Triggering player) to standard game-view over 2.00 seconds
nazgul screech
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Horn of Terror
Actions
Unit Group - Order (Random 10 units from (Units within 650.00 of (Position of (Casting unit)) matching (((Owner of (Matching unit)) is an enemy of (Owner of (Casting unit)).) Equal to True).)) to Move To . (Random point in (Region centered at (Position of (Casting unit)) with size (1600.00, 1600.00)))
Sound - Play TheHornOfCenarius <gen> at 100 % volume, attached to (Casting unit)
revert charge
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in cavalry and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Charge) Equal to False
Then - Actions
Unit Group - Remove (Picked unit) from cavalry .
Else - Actions
charge Copy
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Cavalry Charge
Actions
Trigger - Turn on charge_attack <gen>
Trigger - Turn on revert_charge <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player number of (Owner of (Casting unit))) Equal to 10
Then - Actions
Sound - Play WarlordYesAttack1 <gen> at 100 % volume, attached to (Casting unit)
Else - Actions
Sound - Play KnightWarcry1 <gen> at 100 % volume, attached to (Casting unit)
Unit Group - Add (Casting unit) to cavalry
Unit - Order (Casting unit) to Attack-Move To . ((Position of (Casting unit)) offset by 1200.00 towards (Facing of (Casting unit)) degrees.)
charge attack
Events
Unit - A unit Is attacked
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) is in cavalry.) Equal to True
Then - Actions
Sound - Play MetalHeavyChopFlesh3 <gen> at 100 % volume, attached to (Attacking unit)
Unit Group - Remove (Attacking unit) from cavalry .
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacked unit) is A Hero) Equal to False
((Attacked unit) is Mechanical) Equal to False
(Unit-type of (Attacked unit)) Not equal to Spearman (a Master at fighting horses)
Then - Actions
Special Effect - Create a special effect at (Position of (Attacked unit)) using Objects\Spawnmodels\Human\HumanLargeDeathExplode\HumanLargeDeathExplode.mdl
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Life of (Attacked unit)) - 275.00) Less than 1.00
Then - Actions
Unit - Set life of (Attacked unit) to 1.00
Else - Actions
Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) - 275.00)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Life of (Attacked unit)) - 50.00) Less than 1.00
Then - Actions
Unit - Set life of (Attacked unit) to 1.00
Else - Actions
Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) - 50.00)
Unit - Remove Charge buff from (Attacking unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(cavalry is empty) Equal to True
Then - Actions
Trigger - Turn off revert_charge <gen>
Trigger - Turn off (This trigger)
Else - Actions
charge Copy Copy
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Heavy Cavalry Charge
Actions
Unit Group - Add (Casting unit) to elephants
Unit - Turn collision for (Casting unit) Off .
Unit - Set (Casting unit) acquisition range to 0.00
Unit - Order (Casting unit) to Move To . (Position of (Random unit from (Units in (Region centered at (Position of (Casting unit)) with size (1200.00, 1200.00)) matching ((((Owner of (Matching unit)) is an enemy of (Owner of (Casting unit)).) Equal to True) and ((((Matching unit) is A structure) Equal to False) and ((Unit-type of (Matching unit)) Not equal to Chicken))))))
Unit - Set the custom value of (Casting unit) to 10
Trigger - Turn on kill_in_range <gen>
kill in range
Events
Time - Every 0.70 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(elephants is empty) Equal to True
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
Unit Group - Pick every unit in elephants and do (Actions)
Loop - Actions
Set Variable Set PickedElephant = (Picked unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Picked unit)) Less than or equal to 0
Then - Actions
Unit Group - Remove PickedElephant from elephants .
Unit - Remove Charge buff from (Picked unit)
Unit - Turn collision for PickedElephant On .
Unit - Set PickedElephant acquisition range to 500.00
Unit - Set the custom value of PickedElephant to 10
Else - Actions
Unit - Set the custom value of PickedElephant to ((Custom value of (Picked unit)) - 1)
Unit Group - Pick every unit in (Units within 85.00 of (Position of PickedElephant) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Mechanical) Equal to False)).) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Not equal to Spearman (a Master at fighting horses)
(Unit-type of (Picked unit)) Not equal to Field Marshal
(Unit-type of (Picked unit)) Not equal to Heavy Knight
(Unit-type of (Picked unit)) Not equal to Horse Archer
(Unit-type of (Picked unit)) Not equal to Knight
(Unit-type of (Picked unit)) Not equal to Mongol Heavy Horse
((Picked unit) is Mechanical) Equal to False
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Life of (Picked unit)) - 100.00) Less than 1.00
Then - Actions
Unit - Set life of (Picked unit) to 1.00
Else - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 100.00)
Special Effect - Create a special effect at (Position of (Picked unit)) using Objects\Spawnmodels\Human\HumanLargeDeathExplode\HumanLargeDeathExplode.mdl
Sound - Play ArtilleryCorpseExplodeDeath1 <gen> at 100 % volume, attached to PickedElephant
Unit - Order PickedElephant to Move To . (Position of (Random unit from (Units in (Region centered at (Position of PickedElephant) with size (800.00, 800.00)) matching ((((Owner of (Matching unit)) is an enemy of (Owner of PickedElephant).) Equal to True) and ((((Matching unit) is A structure) Equal to False) and ((Unit-type of (Matching unit)) Not equal to Chicken))))))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Spearman (a Master at fighting horses)
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Life of (Picked unit)) - 20.00) Less than 1.00
Then - Actions
Unit - Set life of (Picked unit) to 1.00
Else - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 20.00)
Unit Group - Remove PickedElephant from elephants .
Unit - Remove Charge buff from (Picked unit)
Unit - Turn collision for PickedElephant On .
Unit - Set PickedElephant acquisition range to 500.00
Unit - Set the custom value of PickedElephant to 10
Else - Actions
check wins
Events
Time - Every 11.00 seconds of game time
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
(Picked player) Not equal to Player 12 (Brown)
(Number of players in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Number of units in (Units owned by (Matching player) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) is A structure) Equal to True)).)) Greater than 0) and (((Matching player) is an enemy of (Picked player).) Equal to True))).)) Less than or equal to 0
Then - Actions
Set Variable Set victor = "true"
Game - Victory (Picked player) ( Show dialogs, Show scores)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units owned by (Picked player) matching ((((Matching unit) is A structure) Equal to True) and (((Matching unit) is alive) Equal to True)).)) Less than or equal to 0
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
victor Equal to True
Then - Actions
Game - Defeat (Picked player) with the message: Thou hast been smitten with defeat!
Else - Actions
For each (Integer A) from 1 to 10 , do (Actions)
Loop - Actions
Player - For (Picked player) , turn Shared vision Off toward (Player((Integer A)))
Player - For (Player((Integer A))) , turn Shared vision On toward (Picked player)
Else - Actions
player quits
Events
Player - Player 1 (Red) leaves the game
Player - Player 2 (Blue) leaves the game
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Player - Player 5 (Yellow) leaves the game
Player - Player 6 (Orange) leaves the game
Player - Player 7 (Green) leaves the game
Player - Player 8 (Pink) leaves the game
Player - Player 9 (Gray) leaves the game
Player - Player 10 (Light Blue) leaves the game
Conditions
Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + has left the battlefield, expressing his utmost cowardice!)
Wait 3.00 seconds
For each (Integer B) from 1 to 10 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) is an ally of (Player((Integer B))).) Equal to True
Then - Actions
Player - Make (Triggering player) treat (Player((Integer B))) as an Ally with shared vision and full shared units
Else - Actions
corpses to gold timed
Events
Time - Every 3.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in Sacrificial_pit <gen>) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to False
(Owner of (Picked unit)) Not equal to Player 10 (Light Blue)
Then - Actions
Special Effect - Create a special effect at (Random point in Sacrificial_pit <gen>) using Doodads\LordaeronSummer\Props\SkullonStick\SkullonStick0.mdl
Player - Add 40 to Player 10 (Light Blue) . Current gold
Unit - Remove (Picked unit) from the game
Else - Actions
corpses to gold
Events
Unit - A unit owned by Player 10 (Light Blue) . Finishes casting an ability
Conditions
(Ability being cast) Equal to Drop Corpse
(Sacrificial_pit <gen> contains (Casting unit)) Equal to True
Actions
Unit Group - Pick every unit in (Units in Sacrificial_pit <gen>) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to False
(Owner of (Picked unit)) Not equal to Player 10 (Light Blue)
Then - Actions
Unit - Remove (Picked unit) from the game
Special Effect - Create a special effect at (Random point in Sacrificial_pit <gen>) using Doodads\LordaeronSummer\Props\SkullonStick\SkullonStick0.mdl
Player - Add 40 to Player 10 (Light Blue) . Current gold
Sound - Play GoodJob <gen> at 100 % volume, attached to (Casting unit)
Else - Actions
Trigger - Turn on corpses_to_gold_timed <gen>
Wait 12.00 game-time seconds
Trigger - Turn off corpses_to_gold_timed <gen>
Farm Enslaved
Events
Unit - A unit Dies
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Dying unit)) Equal to Farm
(Unit-type of (Dying unit)) Equal to Guild
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 5 (Yellow)
(Unit-type of (Dying unit)) Equal to Farm
Then - Actions
Unit - Create 1 . (Unit-type of (Dying unit)) for Player 4 (Purple) at (Position of (Dying unit)) facing Default building facing degrees
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 6 (Orange)
(Unit-type of (Dying unit)) Equal to Farm
Then - Actions
Unit - Create 1 . (Unit-type of (Dying unit)) for Player 3 (Teal) at (Position of (Dying unit)) facing Default building facing degrees
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 7 (Green)
(Unit-type of (Dying unit)) Equal to Farm
Then - Actions
Unit - Create 1 . (Unit-type of (Dying unit)) for Player 1 (Red) at (Position of (Dying unit)) facing Default building facing degrees
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 8 (Pink)
(Unit-type of (Dying unit)) Equal to Farm
Then - Actions
Unit - Create 1 . (Unit-type of (Dying unit)) for Player 2 (Blue) at (Position of (Dying unit)) facing Default building facing degrees
Else - Actions
Unit - Create 1 . (Unit-type of (Dying unit)) for (Owner of (Killing unit)) at (Position of (Dying unit)) facing Default building facing degrees
Income
Events
Time - Every 10.00 seconds of game time
Conditions
Actions
-------- Farms=Income --------
Unit Group - Pick every unit in (Units of type Farm) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Picked unit)) Current gold) Less than 4000
Then - Actions
Player - Add 3 to (Owner of (Picked unit)) . Current gold
Else - Actions
Unit Group - Pick every unit in (Units of type Guild) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Picked unit)) Current gold) Less than 4000
Then - Actions
Player - Add 8 to (Owner of (Picked unit)) . Current gold
Else - Actions
Income Copy
Events
Time - Every 62.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type Chicken) and do (Actions)
Loop - Actions
Player - Add 2 to (Owner of (Picked unit)) . Current gold
trade
Events
Time - Every 91.00 seconds of game time
Conditions
Actions
Game - Display to (All players) the text: Villagers are sent out from guilds to the castles to trade...
Unit Group - Pick every unit in (Units of type Guild) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in (All players matching (((Matching player) Not equal to (Owner of (Picked unit))) and (((Matching player) Not equal to Player 12 (Brown)) and (((Matching player) is an ally of (Owner of (Picked unit)).) Equal to True))).)) Equal to 1
Then - Actions
Unit - Create 1 . Villager (Male) for (Owner of (Picked unit)) at (Position of (Picked unit)) facing Default building facing degrees
Unit - Order (Last created unit) to Move To . ((Random player from (All players matching (((Owner of (Last created unit)) Not equal to (Matching player)) and (((Matching player) Not equal to Player 12 (Brown)) and (((Matching player) is an ally of (Owner of (Last created unit)).) Equal to True))).)) start location)
Else - Actions
receive trade Copy
Events
Unit - A unit comes within 400.00 of Castle 0007 <gen>
Unit - A unit comes within 400.00 of Castle 0003 <gen>
Unit - A unit comes within 400.00 of Castle 0001 <gen>
Unit - A unit comes within 400.00 of Castle 0005 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Villager (Male)
Actions
Player - Add 20 to (Owner of (Triggering unit)) . Current gold
Player - Add 2 to (Owner of (Triggering unit)) . Food cap
Player - Add 5 to (Random player from (All allies of (Owner of (Triggering unit)).)) . Current gold
Unit - Remove (Triggering unit) from the game
Flank Attack
Events
Unit - A unit Is attacked
Conditions
((Attacking unit) is A ranged attacker) Equal to False
((Attacked unit) is A structure) Equal to False
((Attacked unit) is Mechanical) Equal to False
((Attacked unit) is A Hero) Equal to False
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Facing of (Attacking unit)) Less than ((Facing of (Attacked unit)) + 90.00)
(360.00 + (Facing of (Attacking unit))) Greater than (360.00 + ((Facing of (Attacked unit)) - 90.00))
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Life of (Attacked unit)) - 45.00) Less than 1.00
Then - Actions
Unit - Set life of (Attacked unit) to 1.00
Else - Actions
Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) - 45.00)
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.