1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  4. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  5. The Secrets of Warcraft 3 have revealed interesting works. The RESULTS for Abelhawk's Mini-Mapping Contest #15 have come out!
    Dismiss Notice
  6. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  7. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  8. Night Rider gained several songs for his journey. The poll for the 12th Music Contest has started. Check it out!
    Dismiss Notice
  9. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  10. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[General] How to detect attack damage ?

Discussion in 'World Editor Help Zone' started by [E]clipse, Jul 1, 2015.

  1. [E]clipse

    [E]clipse

    Joined:
    Jan 6, 2015
    Messages:
    559
    Resources:
    0
    Resources:
    0
    Hello everyone, this time I was using trigger that was somewhat like this :

    • Events -
    • Unit - A unit is attacked
    • Conditions -
    • Actions -
    • Set *A real variable* = (Event Response - Damage Taken)
    • Game - Display to all players the text String(The Real Variable)


    Actually I've been using this for a custom critical system but the floating text shows 0.00 and no extra damage is dealt. Why ?

    Why is the
    • Event response - Damage taken
    not working ?
     
  2. Daffa the Mage

    Daffa the Mage

    Map Moderator

    Joined:
    Jan 30, 2013
    Messages:
    7,615
    Resources:
    27
    Packs:
    1
    Maps:
    8
    Spells:
    16
    Tutorials:
    2
    Resources:
    27
    That's one of the issues with the event. Damage Taken refers to Unit Takes Damage. (specific Unit Event)

    Use http://www.hiveworkshop.com/forums/...a-231846/?prev=d=list&r=20&u=Looking_for_help to check the damage, and with that you can filter out damage type (coded, physical or magical). Be aware Life Drain must be triggered manually, as well as Finger of Death. In addition, you need to change the spell damage reduction items into it's trigger core part the manual should explains it clearly how to do it.

    If you don't need the damage type, you can use http://www.hiveworkshop.com/forums/...e-v2-2-1-0-a-201016/?prev=d=list&r=20&u=Bribe instead, and it has none of the above flaws. (But the disadvantage is that you can't filter out damage)
     
  3. [E]clipse

    [E]clipse

    Joined:
    Jan 6, 2015
    Messages:
    559
    Resources:
    0
    Resources:
    0
    Oh...so it responds to that...thanks !!!