• 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.

Need help with unit upgrades

Status
Not open for further replies.
Level 1
Joined
Apr 7, 2019
Messages
1
Sorry for the unprecise topic.

I'm looking for a way to create a special upgrade which does two things. Right now the upgrade can be researched and it increases the hitpoints of all units of a given type by 1. That's fine. But now I would like to have the same upgrade increase the hitpoints of a different unit by 150 at the same time.

How can I achieve that?
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
Make a second upgrade that affects the different units, then enable that upgrade with a trigger when the first is researched. The trigger below increases Storm Hammers by 1 every time Iron Forged Swords is researched.

  • GUI Test Copy
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to Iron Forged Swords
    • Actions
      • Player - Set the current research level of Storm Hammers to ((Current research level of Storm Hammers for (Owner of (Triggering unit))) + 1) for (Owner of (Triggering unit))
 
Status
Not open for further replies.
Top