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. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Choose your ride to damnation in the 5th Special Effect Contest Poll.
    Dismiss Notice
  5. The winners of the 13th Techtree Contest have been announced!
    Dismiss Notice
  6. The 13th Music Contest Poll is up! Vote for the best tracks in this symphony of frost and flame.
    Dismiss Notice
  7. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  8. 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.

I am having an issue with this spell

Discussion in 'Triggers & Scripts' started by Recklessness, Jan 11, 2020.

  1. Recklessness

    Recklessness

    Joined:
    Aug 17, 2014
    Messages:
    81
    Resources:
    0
    Resources:
    0
    [​IMG]
    [​IMG]
    [​IMG]


    I am simply creating a spell where an archer can rotate between different elemental arrows. For some reason the gui [Ability - Set Ability Real Level Field] may not be working properly or I am doing something wrong. Here is what im working with: I am using [Item Attack Fire Bonus] as a hidden passive to increase the units attack-damage equal to its agility, I want it to refresh consistently in case the user gains agility from a buff or item. From my understanding from what the code reads it should update the [Bonus Damage] part of the spell every time he attacks to equal this units agility.
     
    Last edited: Jan 11, 2020
  2. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,837
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    That ability might not support having its values updated.

    Have you tried using actual arrows like Searing Arrow and modifying the bonus damage of that ability?

    Otherwise you might need to use a DDS system and detect when the unit deals auto attack damage and then modify the damage amount. DDS systems updated for 1.31 will use the new natives to efficiently perform such modifications.
     
  3. Recklessness

    Recklessness

    Joined:
    Aug 17, 2014
    Messages:
    81
    Resources:
    0
    Resources:
    0
    Yeah, I just tried changing it to Searing Arrows and it did not work. Is that ever intended to function properly? It would be a shame if it never will. That genuinely would make my life so much easier. And how would I go about using a DDS system to make such a spell?
     
  4. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,837
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Make sure you are setting the correct field for the ability. Just because the name is similar does not mean that it will work (check exact names, I am not saying you choose the wrong one as I have not checked).

    It does work with some abilities. However maybe only with damaging abilities like Blizzard and not with attack modification ones. With JASS the function returns false if the modification failed and can be used to confirm if a field can be modified.
    There must be posts discussing this somewhere. Triggered arrow abilities are a common request.

    The basics is that you use the damage detection system to detect when the unit is damage. If this damage is an attack (not ability) then modify the damage dealt to reflect the damage bonus. Detecting if the damage is from an attack or ability should be part of the Damage Detection System. If you want just the bonus damage to be a different type then one will need to deal the bonus damage as a separate damage instance.
     
  5. Recklessness

    Recklessness

    Joined:
    Aug 17, 2014
    Messages:
    81
    Resources:
    0
    Resources:
    0
    @Dr Super Good so I downloaded the damage engine by bribe but after a couple attempts at making something I genuinely don't seem to understand it. Do you think if possible you of anyone can show me how it's done using the damage engine I think once I see it done I can reverse engineer it and understand it.


    The original spell is this:
    Q: Elemental Arrows: Toggle: Rotate through your arrows. (CD 2 seconds)
    Fire Arrows: Your attacks deal a bonus (1 x Agility) damage, but consume 5 energy per shot.
    Nature Arrows: Your attacks leave a dot which deals (3 x Agility) damage over 3 seconds, but they consume 3 energy per shot.
    Ice Arrows: Your attacks slow the target down by 20% for 2 seconds, but they consume 5 energy per shot.
    Lightning Arrows: Your attack regenerate 10 energy per shot.
    I pretty much think I have everything down except the Fire arrow damage psrt, the way I had done it before it would apply damage even if the animation was canceled and that's no good. But if I can understand how to do that with bribes engine j think I can make the lightning and nature ones work as well
     
  6. Recklessness

    Recklessness

    Joined:
    Aug 17, 2014
    Messages:
    81
    Resources:
    0
    Resources:
    0
    I figured out how to do that first part thanks