[Trigger] How to Upgrade with Trigger

Status
Not open for further replies.
Level 4
Joined
Aug 3, 2011
Messages
220
the upgrade mean the "Upgrades" inside the menu of Object editor.

May i create a trigger that
Events
A Unit learn a ability


Conditions
Learned Hero skill Equal to ABCDEFG


Action
Set "My Upgrade"'s Level = Level of ABCDEFG of Triggering Hero.
 
Something like this:

  • Trigger
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to ABCDEFG
    • Actions
      • Player - Set the current research level of HIJKLMN to (Level of ABCDEFG for (Triggering unit)) for (Triggering player)
ABCDEFG = learnt ability
HIJKLMN = your upgrade
 
keep in mind you cannot downgrade once unit is upgraded. you can replace unit with same unit with relative life and mana but its buggy and can cause some problems.
 
One way to get around the inability to downgrade upgrades is to use units instead of upgrades. For example, you can make an ability require Footman to work. When they learn the ability you want you can create an invisible footman for them. If you want to remove the ability you can kill the footman.
 
Status
Not open for further replies.
Back
Top