• 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] Jungle creep -> giving a buf/ability

Status
Not open for further replies.
Level 8
Joined
Aug 17, 2013
Messages
112
I made a jungle-creep, and when i kill it, it's supposed to give me an ability (lifesteal for 60 seconds).

The trigger i tried is:

  • ---Event---
  • Unit - Dragon 0031 <gen> Dies
  • ---Conditions---
  • ---Actions---
  • Wait 0.50 seconds
  • Unit - Add Life Steal to (Killing unit)
  • Wait 60.00 seconds
  • Unit - Remove Life Steal from (Killing unit)
I don't recieve the ability, and afaik. <triggering unit> is no good here, since that would the the dying unit...

Thanks in advance :)
Truly yours
Mr. Plunders
 
You can use a local unit:

  • Trigger
    • Events
      • Unit - Dragon dies
    • Conditions
    • Actionens
      • Custom script: local unit u
      • Custom script: set u = GetKillingUnit()
      • Unit - Add (YourAbility) to (Triggering unit)
      • Wait 60.00 seconds
      • Custom script: set udg_Unit = u
      • Unit - Remove (YourAbility) from Unit
You need to create a variable named "Unit" of type unit for this.
 
Level 8
Joined
Aug 17, 2013
Messages
112
Define, messy.

Know that i say this as a suggestion for noobs like myself to keep up

All the way through the trigger, there's not a single text string explaining what the next line does, or what not to touch.

This is important especially on interger functions because, a noob like myself doesn't find the same thing logical like you :)

It's not critisism, it's a friendly remark that I (the individual in this example) can't figure out what the system does or how to apply it to anything dying, or any other event for that matter.
 
Status
Not open for further replies.
Top