• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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