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. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. 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.

Triggering Hero Ability

Discussion in 'Triggers & Scripts' started by Ragnar9, May 29, 2019.

Tags:
  1. Ragnar9

    Ragnar9

    Joined:
    Jan 15, 2018
    Messages:
    86
    Resources:
    0
    Resources:
    0
    Greetings,
    The ability im trying to make is a trample ability that passively grants increasing evasion per level. I based the Ability off "Channel" here is the tooltip:
    "Shelob is the quickest spider on Middle Earth, passively grants her a chance to avoid an attack. Can be activated to gain the ability to move through units. |nLasts5 seconds. |n|n|cffffcc00Level 1|r - 10% chance to evade an attack. |n|cffffcc00Level 2|r - 20% chance to evade an attack. |n|cffffcc00Level 3|r - 30% chance to evade an attack. |n|cffffcc00Level 4|r - 40% chance to evade an attack."

    I have the trigger for the trample (i think) but im wondering how i can trigger in the evasion as they add a attribute point to "Spider Dexterity" get it to increase?

    P.S. Here is the trample trigger.

    • SpiderDex
      • Events
        • Unit - A unit Starts the effect of an ability
      • Conditions
        • (Ability being cast) Equal to Spider Dexterity
      • Actions
        • Set SpDexCast = (Triggering unit)
        • Unit - Turn collision for SpDexCast Off
        • Unit - Add Immolation/Trample (Theoden) to SpDexCast
        • Countdown Timer - Start Spdex as a One-shot timer that will expire in 5.00 seconds


    • SpDex1
      • Events
        • Time - Spdex expires
      • Conditions
      • Actions
        • Unit - Remove Immolation/Trample (Theoden) from SpDexCast


    I feel like there is something that needs to be CallRemoved....
     
  2. Wrda

    Wrda

    Joined:
    Nov 18, 2012
    Messages:
    1,128
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Why do you even need to trigger it? just add evasion ability to the unit and hide the icon.
     
  3. Ragnar9

    Ragnar9

    Joined:
    Jan 15, 2018
    Messages:
    86
    Resources:
    0
    Resources:
    0
    Ok, but how can i get Evasion to level up with the "Spider Dexterity" ability?
     
  4. Ragnar9

    Ragnar9

    Joined:
    Jan 15, 2018
    Messages:
    86
    Resources:
    0
    Resources:
    0
    Would it be something like this?

    • Unit - Set level of Evasion for (triggering unit) to SpDexinterger
     
  5. Pyrogasm

    Pyrogasm

    Joined:
    Feb 27, 2007
    Messages:
    3,032
    Resources:
    1
    Spells:
    1
    Resources:
    1
  6. Ragnar9

    Ragnar9

    Joined:
    Jan 15, 2018
    Messages:
    86
    Resources:
    0
    Resources:
    0
    Do i have to give the hero "Evasion" in the object editor? This would be a problem because the hero already has 5 skills (counting Spider Dexterity).
     
  7. Wrda

    Wrda

    Joined:
    Nov 18, 2012
    Messages:
    1,128
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    How is that a problem at all? No. I already told you to add the evasion (as a unit ability) when your spider ability is casted and hide its icon.
     
  8. Ragnar9

    Ragnar9

    Joined:
    Jan 15, 2018
    Messages:
    86
    Resources:
    0
    Resources:
    0
    Thank you for the help, i really do appreciate your time.

    I dont understand how that will help. I want the Hero to have evasion at all times, not just when the ability is cast. Basically the goal is evasion, but when you active the skill you get no collision size for a few seconds. The trample time will remain constant however i dont know how to make % chance to miss" of Evasion, scale with Spider Dexterity.

    I apologize for not being clear.
     
  9. Wrda

    Wrda

    Joined:
    Nov 18, 2012
    Messages:
    1,128
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Whenever the hero learns spider dexterity, check its level. If the level is 2 then you set the level of evasion to level 2; if the level is 3 then again the same logic applies.
    Don't forget to give collision back after the timer expires.
     
  10. Ragnar9

    Ragnar9

    Joined:
    Jan 15, 2018
    Messages:
    86
    Resources:
    0
    Resources:
    0
    Thanks! good catch

    Hows this look?

    • SpDexE
      • Events
        • Unit - A unit Learns a skill
      • Conditions
        • (Learned Hero Skill) Equal to Spider Dexterity
      • Actions
        • Unit - Add Evasion to (Triggering unit)
        • Unit - Set level of Evasion for (Triggering unit) to Spdex_i



    I dont get how this basic integer knows what level Spider Dexterity is.
     
  11. seasand3

    seasand3

    Joined:
    Dec 17, 2017
    Messages:
    38
    Resources:
    0
    Resources:
    0
    unit - Set level of Evasion for (Triggering Unit) to (level of (Spider Dexterity) for (Triggering Unit) )
     
  12. Ragnar9

    Ragnar9

    Joined:
    Jan 15, 2018
    Messages:
    86
    Resources:
    0
    Resources:
    0
    a duh. Thanks :)