• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Level Up

Status
Not open for further replies.
Event -> A unit dies
Condition -> Triggering unit is a boss...
This can be done in putting all bosses in a group

Actions ->
Pick every unit in playable map area.
- If picked unit is a hero Then
---- Hero - Set (picked unit) Hero-Level to (Hero-Level of (picked unit) + 2), Show level-up graphics
 
@unique.spectral
Please do write in the thread instead of in a PM if it concerns the problem.
If you want to say somethin that should only be seen by me then use a PM.

On-Topic:
You have to find out when a boss dies.
"If dying unit is a hero equal to true" doesn't work for that because your heroes (which you want to level) are then also counted as bosses.
The best way to do this is make an unit group (BossesGroup) and put all bosses inside that group.

Event -> A unit dies.
Condition -> Triggering unit is in BossesGroup equal to true
Actions ->
Pick every unit in playable map area.
- If picked unit is a hero Then
---- Hero - Set (picked unit) Hero-Level to (Hero-Level of (picked unit) + 2), Show level-up graphics

All those things are in GUI
 
@unique.spectral
Please do write in the thread instead of in a PM if it concerns the problem.
If you want to say somethin that should only be seen by me then use a PM.

On-Topic:
You have to find out when a boss dies.
"If dying unit is a hero equal to true" doesn't work for that because your heroes (which you want to level) are then also counted as bosses.
The best way to do this is make an unit group (BossesGroup) and put all bosses inside that group.

Event -> A unit dies.
Condition -> Triggering unit is in BossesGroup equal to true
Actions ->
Pick every unit in playable map area.
- If picked unit is a hero Then
---- Hero - Set (picked unit) Hero-Level to (Hero-Level of (picked unit) + 2), Show level-up graphics

All those things are in GUI
BossesGroup is a valuable? if yes what is valuable type?
 
well the BossesGroup is a variable... but it is also valuable ;)
it is a unit group indeed.
when a boss is created, add it to that group
when a boss dies, remove it from the group (just performance)

I actually don't know if it automatically creates a group if the group is empty...
I think you have to make an empty group at map initialization.
 
Status
Not open for further replies.
Back
Top