• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[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