When effect stops?

kla0005

New Member
Reaction score
3
Hey Guys,

Is i possible to make a 'event' that kinda, 'runs' when the effect of a buff disapears from the hero.

Like -> Roar has been casted -> Roar has been on the hero for 4 seconds and now disaperas -> Roar Disapears and the owner of the hero gets the message 'Your Roar has ended, cast it again!'.

Is that possible?
 

DragonBlade

Member
Reaction score
0
try to make a trigger:

trigger 1:
Event:
Unit - A unit Begins casting an ability

Conditons:
(Ability being cast) Equal to Roar

Actions:
Countdown Timer - Start RoarDuration as a One-shot timer that will expire in 4.00 seconds
Set TargetofRoar = (Casting Unit)

trigger 2:
Event:
Time - RoarDuration expires

Conditons:
none

Actions:
Quest - Display to (All players matching ((Owner of TargetofRoar) Equal to (Matching player))) the Quest Update message: cast it again


RoarDuration - timer variation
TargetofRoar - unit variaton
 

kla0005

New Member
Reaction score
3
But what if the roar picks up to units, or the unit casts the roar again after 2 seconds?
- Then it will crash.. :(
 

Moridin

Snow Leopard
Reaction score
144
If the unit casts roar again after 2 seconds it will still work, because it's using the same timer variable and overwriting it.

If you want to make it work for many units though (MUI) then the easiest solution would be minor hashtable use imo. I can post the triggers up if you're having problems.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top