• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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,657
"(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