Demonic purge

wirawiki

New Member
Reaction score
0
There's a skill in DotA named Demonic Purge. After the Purge duration ends, the target will receive damage.
I've tested it using this trigger but it didn't work...

How can I solve this?
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
I don't think you can use target unit of ability being cast after a wait. Try storing it into a variable and then calling it, timers should be used instead of waits, they're more efficient.
 

wirawiki

New Member
Reaction score
0
I don't think you can use target unit of ability being cast after a wait. Try storing it into a variable and then calling it, timers should be used instead of waits, they're more efficient.

Nah, it's the problem... I'm a programming rookie.. How do I put timers in trigger?
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
This is an example of how I'd do it, but you'll need Weep's timer system. (Advertising for him, I love his stuff :p)

Trigger:
  • Trigger 1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead
    • Actions
      • Countdown Timer - Start GTS_NewTimer as a One-shot timer that will expire in 5.00 seconds
      • Set CasterUnit[GTS_NewIndex] = (Triggering unit)
      • Set TargetUnit[GTS_NewIndex] = (Target unit of ability being cast)
      • Set GTS_StoreTrigger = Trigger 2 <gen>
      • Trigger - Run GTS Store <gen> (ignoring conditions)

Trigger:
  • Trigger 2
    • Events
    • Conditions
    • Actions
      • Unit - Cause CasterUnit[GTS_GetIndex] to damage TargetUnit[GTS_GetIndex], dealing 500.00 damage of attack type Spells and damage type Normal
      • Trigger - Run GTS Release <gen> (ignoring conditions)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top