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

Learn SKill?

Status
Not open for further replies.
Level 13
Joined
Jun 3, 2011
Messages
1,058
HI guys can i ask how can i make a trigger that when a hero gains a level lets say level 5 the hero will receive a skill
 
Level 7
Joined
Jan 22, 2013
Messages
293
No. What you have given him is wrong...
Greater then or equal to means its gonnd add it every time he gains a level level 5 and above lol. Only use Equal to 5. :)
 
Level 18
Joined
May 11, 2012
Messages
2,103
well, this shoulf be it. I'm not sure if condition matches your needs, you can change them anyway according to your needs.

  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is A Hero) Equal to True) and (((Level of (Matching unit)) Greater than or equal to 5) and (((Matching unit) belongs to an ally of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Unit - Your Ability here to (Picked unit)
      • Custom script: call DestroyTrigger(GetTriggeringTrigger())
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
well, this shoulf be it. I'm not sure if condition matches your needs, you can change them anyway according to your needs.

  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is A Hero) Equal to True) and (((Level of (Matching unit)) Greater than or equal to 5) and (((Matching unit) belongs to an ally of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Unit - Add Attribute Bonus to (Picked unit)
      • Custom script: call DestroyTrigger(GetTriggeringTrigger())

What is set bj_wantDestroyGroup?

hmm its hard
 
Status
Not open for further replies.
Top