Damage Block issues using triggers.....

Trithilon-V2

New Member
Reaction score
20
guyz...i was experimenting with a damage block ability and i found out that only the first hit deals damage, the rest can be healed via triggers.
How do you block the damage of a hit even if you are on full hp?
 

Flare

Stops copies me!
Reaction score
662
You can start a timer that expires in 0.00 seconds. Then, in another trigger, have an event that corresponds to that timer expiring. Then, heal your specified unit by (X) HP.

And it's highly unlikely that MUI-ness will be affected by this, since the timer expires as good as instantly. Just have a global timer, global unit variable, and global real variable (for healing)
 

Trithilon-V2

New Member
Reaction score
20
let me try this one.....
Btw i tried Running a trigger and making it heal the damage but it didnt work.
You can start a timer that expires in 0.00 seconds. Then, in another trigger, have an event that corresponds to that timer expiring. Then, heal your specified unit by (X) HP.

And it's highly unlikely that MUI-ness will be affected by this, since the timer expires as good as instantly. Just have a global timer, global unit variable, and global real variable (for healing)
Thx Dude working

@Flare
Btw, Hey Flare dude i have implemented your attack detection system (via buffs) in my map and will be using it till i get my own.
I'll inform you on map release and give you your due credit.
Thx again.
 

Flare

Stops copies me!
Reaction score
662
Run trigger? You mean like this?
Code:
Trigger - Run Conflagrate <gen> (checking conditions)

If so, that's not what I mean.

Code:
Untitled Trigger 001
    Events
    Conditions
    Actions
        Countdown Timer - Start timer as a One-shot timer that will expire in 0.00 seconds
        Set u = (Triggering unit)
        Set real = (Damage taken)


----------------------------------------------------

Untitled Trigger 002
    Events
        Time - timer expires
    Conditions
    Actions
        Unit - Set life of u to ((Life of u) + real)
 
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