Request A Trigger

Arie

Cool Member
Reaction score
5
Hello.

I'm kinda curious of a trigger that makes every unit around caster to attack him.

After x seconds of being attacked, The caster has 50% to release the damage that he has been suffered to enemy nearby and 50% for the caster to heal his friend for y% of z damage.

Thanks in advance! :)
 

lindenkron

You can change this now in User CP
Reaction score
102
This would be request a 'spell' :)
Look around the forum, use search etc. There are a few of those threads that might not be to old to request in. :)

Good luck,
-Lindenkron

Edit;
You might want to describe the spell better as well.
The last part is rather confusing, with the "healing friend" thing :rolleyes:
 

Dinowc

don't expect anything, prepare for everything
Reaction score
223
give your spell some buff and duration
then do something like this:

Code:
spell start
e: unit starts the effect of an ability
c: ability being cast equal to "your ability"
a: set caster = triggering unit
   start timer that will expire in "spell's duration seconds"
   add to "damage detection" the event triggering unit takes damage
Code:
damage detection
e: 
c: triggering unit has buff "your spell's buff"
a: set damage_count = damage_count + damage taken
Code:
damage
e: timer expires
c:
a: set caster_pos = position of caster
   set damage_group = units within 500 of caster_pos matching (matching unit belongs to an enemy of owner of caster and w/e...)
   pick every unit in damage_group and do actions
       cause caster to damage picked unit by damage_count x 0.50 of attack type...
   set damage_count = 0.00
   call DestroyGroup(udg_damage_group)
   call RemoveLocation(udg_caster_pos)

this is just an example how would it work....
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top