• 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] Trigger issue

Status
Not open for further replies.
Level 12
Joined
Dec 2, 2016
Messages
733
  • LvlUp
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to Vampiric Level Upgrade
    • Actions
      • Hero - Set (Researching unit) Hero-level to ((Level of (Researching unit)) + 1), Hide level-up graphics
Doesn't add a level, not sure what I should do.
 
Level 11
Joined
Jun 2, 2004
Messages
849
The hero itself is researching it, right?

If you're researching it on a building or something you need to get a reference to the hero that should be leveled up. You can do this by looping through all their units until you find one of the appropriate unit type and setting it to a variable.
 
Level 6
Joined
Aug 31, 2014
Messages
137
your need to set a variable to the hero you want it to affect.
  • hero lvling
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to Storm Hammers
    • Actions
      • Set Yourhero = No unit (this is what you need to set to check who want to gain the level if its more then one hero then you need to put them in a group or set more then one or clear it than reuse
      • Custom script: your level trigger but with unit veriable
 
Status
Not open for further replies.
Top