plz helpme

G

GTA

Guest
Well i have some problem with a custom ability, the ability is makes a unit invulnerable for 3 seconds but dealing damange per second too. I know that need trigger but i dont know what i need.
Pllz helpme Thanks
 

Darg

Administrator
Reaction score
49
well you would use the trigger action "unit - set life (to value)" to change the unit's hp. for the invulnerability thing I'm sure you already have a spell in mind that does that.

event:
[generic unit event]
a unit begins casting an ability

condtiions:
[ability comparison]
(ability being cast) equal to (whatever)

actions:
set life of (casting unit) to (current life of (casting unit) - 3)
trigger - run (this trigger (checking conditions))


when the spell is over, the trigger will stop.
 

Mind

New Member
Reaction score
7
Usually, invulnerability is meant to prevent damage. What's the point of an ability that protects the caster from damage, but damages the caster?
 
H

Hell-Pleaque

Guest
Maybe its better to lose 9 hp than getting attacked 1-2 times with an average of 30 dmg/hit?

Depends on his map..
 
G

GTA

Guest
Well, my idea is make a unit invulnerable when use a ability (Bladestorm), at same time, it deals damange to nearby units,

Darg, I try your suggestion, but it doesn´t work... I asked for a friend and i find the solution, for more people know is like that but thanks anyway.

Events:
A units use a ability

Condition:
Ability comparison equal to (what ever)

Actions:
Make triggering unit invulnerable.
Wait 3.00
Make triggering unis vulnerable.

This example is wrong because i did in a second and I dont remember, but is something like that.

Thank youeverybody.
 
G

guest

Guest
Make an ability based off of Building Damage Aura (Tornado) and have the trigger give that ability to the unit, and then take it away after the wait.
 
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