• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[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)
 
"(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.
Back
Top