• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] How to Upgrade with Trigger

Status
Not open for further replies.
Level 4
Joined
Aug 3, 2011
Messages
222
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.
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
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
 
Level 2
Joined
Jun 15, 2012
Messages
20
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.
 
Level 14
Joined
Aug 30, 2004
Messages
909
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.
Top