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.
 
Divine shield makes the caster invulnerable. I want to make attacks deal 0 damage for a short duration. Something like Omniknight's Guardian Angel
 
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.
 
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.
 
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.
 
@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 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.
 
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.
 
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.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good

      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