• 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] Setting Hero Level [SOLVED]

Status
Not open for further replies.
Level 2
Joined
Jul 13, 2018
Messages
7
Hi!

If someone has time to look at this map, I would greatly appreciate.

I am trying to add 1 to the Hero-level of Unit_PlayerHero. I am setting who Unit_PlayerHero is in the "Variable Initialization" trigger. I am changing who Unit_PlayerHero is in the "Hero Selection" folder, in the "Player Hero Selection Next/Previous Hero" triggers.

When you start the map, you will have to choose the Ruler. The second hero you have to choose is Unit_PlayerHero. After that, I teleport Unit_PlayerHero somewhere. Now, if I am adding 1 to the Hero-level of Unit_PlayerHero while I am choosing the hero, it works. If I am adding 1 to his Hero-level after teleporting him, it doesen't work. And I simply can't understand why. You can add 1 to his Hero-level by entering "test2" in the chat. If someone knows why is that happening, please tell me.

Oh and while I am posting this here, I have another minor problem: when you press the "Next Hero" and "Previous Hero", both for the Ruler and for the Unit_PlayerHero, a special effect should appear (Blink) at their location...and it doesen't.

Thank you in advance!
 
Level 2
Joined
Jul 13, 2018
Messages
7
Right now I don't have access to an editor.
If you post relevant triggers, I might be able to say something soon but otherwise I might or might not get back later.
Apparently I can't set a Hero-level if I am disabling Experience Gain for that hero. I didn't know that.
 
Status
Not open for further replies.
Top