• 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] Granting player lumber after leveling up spell

Status
Not open for further replies.
Level 3
Joined
Mar 1, 2015
Messages
53
I want to create trigger which will give owner of triggering unit a lumber, when he levels up passive ability.

my not working attempt:

  • Untitled Trigger 002
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Ability being cast) Equal to Hot Blooded
    • Actions
      • Player - Set (Owner of (Triggering unit)) Current lumber to 666
(hot blooded is a passive ability)
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
"(Ability being cast) Equal to Hot Blooded"

Can you explain to me what ability is being cast?

For me it is pretty obvious why it is not working.
What you need is this:
  • Learned Skill Check
    • Events
      • Unit - A unit Learns a skill
    • Conditions
    • Actions
      • Custom script: set udg_TempAbility = GetLearnedSkill()
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempAbility Equal to Hot Blooded
        • Then - Actions
          • -------- Do Action --------
        • Else - Actions
 
Status
Not open for further replies.
Top