- Joined
- May 20, 2013
- Messages
- 162
Hi, i am trying to set an upgrade to occur whenever a town hall building is upgraded. The idea is, i am trying to do a built in Mercenary upgrade. When a player upgrades tier two & tier three, the trigger will set the mercenary upgrade to lvl 1 & lvl 2 respectively.
Does this make any sense? I have literally been up all night working aT it and am dilerius now.
The upgrade wont take. Yes i did go to the upgrade settings & make sure it was allowed per race. Yes i did go to the units that receive the upgrade, and made sure it was listed with them. The trigger just doesn't seem to be making it happen, Y i don't know why.
Thank you for any advice!
EDIT: Here is the trigger.
MERCENARY UPGRADES
ACTIVATE UPGRADES
Events
Unit - A unit Finishes an upgrade
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Stronghold
(Unit-type of (Triggering unit)) Equal to Keep
(Unit-type of (Triggering unit)) Equal to Halls of the Dead
(Unit-type of (Triggering unit)) Equal to Tree of Ages
Actions
Set UpgradeCastle = (Triggering unit)
Player - Set the current research level of Mercenary Upgrades 1 (Orc1) to 1 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Human1) to 1 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Nightelf1) to 1 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Undead1) to 1 for (Owner of UpgradeCastle)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of UpgradeCastle) Equal to Fortress
(Unit-type of UpgradeCastle) Equal to Castle
(Unit-type of UpgradeCastle) Equal to Black Citadel
(Unit-type of UpgradeCastle) Equal to Tree of Eternity
Then - Actions
Player - Set the current research level of Mercenary Upgrades 1 (Orc1) to 2 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Nightelf1) to 2 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Human1) to 2 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Undead1) to 2 for (Owner of UpgradeCastle)
Else - Actions
Do nothing
Does this make any sense? I have literally been up all night working aT it and am dilerius now.
The upgrade wont take. Yes i did go to the upgrade settings & make sure it was allowed per race. Yes i did go to the units that receive the upgrade, and made sure it was listed with them. The trigger just doesn't seem to be making it happen, Y i don't know why.
Thank you for any advice!
EDIT: Here is the trigger.
MERCENARY UPGRADES
ACTIVATE UPGRADES
Events
Unit - A unit Finishes an upgrade
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Stronghold
(Unit-type of (Triggering unit)) Equal to Keep
(Unit-type of (Triggering unit)) Equal to Halls of the Dead
(Unit-type of (Triggering unit)) Equal to Tree of Ages
Actions
Set UpgradeCastle = (Triggering unit)
Player - Set the current research level of Mercenary Upgrades 1 (Orc1) to 1 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Human1) to 1 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Nightelf1) to 1 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Undead1) to 1 for (Owner of UpgradeCastle)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of UpgradeCastle) Equal to Fortress
(Unit-type of UpgradeCastle) Equal to Castle
(Unit-type of UpgradeCastle) Equal to Black Citadel
(Unit-type of UpgradeCastle) Equal to Tree of Eternity
Then - Actions
Player - Set the current research level of Mercenary Upgrades 1 (Orc1) to 2 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Nightelf1) to 2 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Human1) to 2 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Undead1) to 2 for (Owner of UpgradeCastle)
Else - Actions
Do nothing
Last edited: