Ignored Damage

hazylwp

Member
Reaction score
0
How to trigger a spell that ignores all damage sources for a short duration?I'm trying to make a spell that gives a unit a buff and as long as it's active then it will ignore damage.
 

hazylwp

Member
Reaction score
0
Divine shield makes the caster invulnerable. I want to make attacks deal 0 damage for a short duration. Something like Omniknight's Guardian Angel
 

hazylwp

Member
Reaction score
0
If you change Berserk's Damage Taken to a negative value, only physical attacks will be ignored but when someone casts a spell on the unit with the buff it will heal it instead.
 

Solu9

You can change this now in User CP.
Reaction score
216
If you have an unused armor type in your map. Then you can change the units armor to that type when the spell is cast, and change it back when the spell ends.

Set the unused type of armor to receive 0.00 from all sources of damage in the gamplay constants.
 

vypur85

Hibernate
Reaction score
803
Oh fuck. You're right. I made the same damn mistake again.

Then you'll no choice but to use damage detection method.

Code:
Cast
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Berserk
        ((Triggering unit) is in storageunitgp) Equal to False
    Actions
        Unit Group - Add (Triggering unit) to storageunitgp
        Trigger - Add to (This trigger) the event (Unit - (Triggering unit) Takes damage)
Code:
Damage taken
    Events
    Conditions
        ((Triggering unit) has buff Berserk) Equal to True
    Actions
        Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (Damage taken))
Something along the line. This is just basic, just for your general reference.
 

hazylwp

Member
Reaction score
0
@Solu9 thanks for the tip. Never thought of that i might try that method and post the map.

@vypur85 so let's say if an enemy attacks you while the buff is active, won't they heal instead because you set their life to (their life + Damage Taken)?im just curious because i tried using this DD system and all i got was heal every time someone attacked the unit.
 

vypur85

Hibernate
Reaction score
803
@vypur85 so let's say if an enemy attacks you while the buff is active, won't they heal instead because you set their life to (their life + Damage Taken)?im just curious because i tried using this DD system and all i got was heal every time someone attacked the unit.

No they won't get healed. Unless, of course, something is made wrongly. Remember that the presence of the Unit group condition in the first trigger is essential. It's to prevent multiple event addition which could screw up things.
 

thorhunter

You can change this now in User CP.
Reaction score
32
To nullify spell and magic damage you can use Elune's Grace, just change its valuses and put into disabled spellbook so it won't pop up as an ability.
 

Crimson

Member
Reaction score
3
There's always Bribe's damage detection engine which allows you to modify the damage received. It's also in GUI so it's pretty easy to understand.
 
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