• 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] The units in my map

Status
Not open for further replies.
How can i make the creep heroes in my map go up a level every time it dies?
I mean something like the creep heroes in naruto hero builder or any other hero builder. Im making a herobuilder also XD. I experimented but couldn't find.
Here is something that i thought it would work.
  • Events
  • Unit - A unit dies
  • Conditions
  • Actions
  • If/Then/Else
  • Loop Actions
  • Conditions
  • (Unit-Type of (Triggering Unit)) equal to Creephero
  • Then Actions
  • Unit Group - Pick every (Units of type Creephero) and do (Hero - Set (last created unit) to ((Hero level of (Killing Unit)) + 5), hide level up graphics)
  • Else Actions
  • Do nothing
I think theres something wrong with it.
Cuz i need the creephero levels to be the same as it happens after a creephero dies and the next spawned one has more levels.
 
Level 6
Joined
Feb 2, 2005
Messages
205
Use an Variable for example creeplevel

then set the variable every time a creep dies creeplevel + 2

And in the Creep creation Trigger do somesthing like this

Create Unit for blabla
Hero Set (last created) to (creeplevel), hide...

So every new spawned creep will have the higher level and the old stay the same.
 
Last edited:
Status
Not open for further replies.
Top