• 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.

Will this work?

Status
Not open for further replies.
Level 2
Joined
Jan 17, 2013
Messages
21
This is my first complete (hopefully) trigger. Just autoleveling a hero to that of an existing hero when it changes owner.

Can you please tell me if i need to add anything on the end? I am just not sure what to do once i've put in all the actions i want.

event:
-(hero) changes owner

action:
-set (herolvl) - (exisiting hero)
-hero set (hero) hero level to level (herolvl), hide level up graphics.
-turn off this trigger. (is this necessary or correct?)
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
Except the event evrything is ok with a few notes. (I mean it will do what it is supposed to do :D )

EVENT
There is no hero event. So it goes
  • Unit - A unit Changes owner
CONDITIONS
You need only heroes.
  • ((Triggering unit) is A Hero) Equal to True
ACTIONS
You don't need that
  • Set herolvl = Paladin 0000 <gen>
Why set level ? Its more accurate with experience.
  • Hero - Set (Triggering unit) experience to (Hero experience of Paladin 0000 <gen>), Hide level-up graphics
Mmm...
  • Trigger - turn off (this trigger)
The hero changes owner only once ?

So in the end it looks like

  • Events
    • Unit - A unit Changes owner
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Hero - Set (Triggering unit) experience to (Hero experience of Paladin 0000 <gen>), Hide level-up graphics
      • Trigger - turn off (this trigger)
Edit// If the changing ownership hero is preset too you can do:

  • Events
    • Archmage 0001 <gen> Changes owner
    • Conditions
    • Actions
      • Hero - Set Archmage 0001 <gen> experience to (Hero experience of Paladin 0000 <gen>), Hide level-up graphics
      • Trigger - turn off (this trigger)
 
Status
Not open for further replies.
Top