Trigger Fix

Discussion in 'World Editor Help' started by RanCatu, May 9, 2017.

  1. RanCatu

    RanCatu Member

    Ratings:
    +0 / 0 / -0
    Does anyone know how to fix these triggers? I am currently making an auto cast ability to have another effect on the target but the secondary effect only works if I click the ability then the target. It would be supposedly:
    Moon arrows: An auto- cast ability that slows the target enemy's movement and attacks then at the same time reducing their protection by making them visible to the caster for a short period of time.
    Black Arrows: An auto- cast ability that stuns the target for a short period of time, and if they died while on the effect of this arrow, they will be raised as skeletons for a period of time.
     

    Attached Files:

    Last edited: May 10, 2017
  2. jonas

    jonas Well-Known Member

    Ratings:
    +42 / 4 / -0
    Which events are you using?
     
  3. RanCatu

    RanCatu Member

    Ratings:
    +0 / 0 / -0
    A unit starts casting an ability sir.
     
  4. RanCatu

    RanCatu Member

    Ratings:
    +0 / 0 / -0
    Does anybody know how to fix this? Please I need your help...
     
  5. jonas

    jonas Well-Known Member

    Ratings:
    +42 / 4 / -0
    Try "a unit starts the effect of an ability"
     
  6. Accname

    Accname 2D-Graphics enthusiast

    Ratings:
    +1,551 / 4 / -4
    This can not be easily done. Creating new auto-cast abilities which alter the casters attacks involves some heavy triggers, some of which will probably need jass at some point. What it boils down to is giving your auto-cast-attack a unique buff and using a damage-detection-system to check for the precise moment the spell was applied to the target in order to trigger the effects. For many of the effects you want to have you will also need dummy casters and custom abilities / buffs.
     
  7. jonas

    jonas Well-Known Member

    Ratings:
    +42 / 4 / -0
    Wre the damage events for taking damage or for dealing damage?
     
  8. Accname

    Accname 2D-Graphics enthusiast

    Ratings:
    +1,551 / 4 / -4
    What would be the supposed difference?
     
  9. jonas

    jonas Well-Known Member

    Ratings:
    +42 / 4 / -0
    whether you have to register it for all units or only the one with the skill.
     
  10. Accname

    Accname 2D-Graphics enthusiast

    Ratings:
    +1,551 / 4 / -4
    It is for taking damage. You have to register it for each attackable unit. Thats why GUI triggers are not able to do these things without memory leaks.
     
  11. RanCatu

    RanCatu Member

    Ratings:
    +0 / 0 / -0
    Guys I've seen a GUI trigger for auto- cast ability once, I tried copying it, but it turned out a failure. I think there's something wrong with my events and conditions.
    Here's my failed test map sirs:
     

    Attached Files:

    Last edited: May 12, 2017
  12. Accname

    Accname 2D-Graphics enthusiast

    Ratings:
    +1,551 / 4 / -4
    I think it would be better if you copied the code and pasted it here. This way we can help you even without access to the editor.
     
  13. RanCatu

    RanCatu Member

    Ratings:
    +0 / 0 / -0
    That's all I have sirs, I know there are too many things I missed. But to be honest, I have tried copying the style of the auto-cast trigger I saw but it won't work on mine so I just made it that simple so you can understand want I want it to do.
     

    Attached Files:

  14. RanCatu

    RanCatu Member

    Ratings:
    +0 / 0 / -0
    Guys?
     
  15. Accname

    Accname 2D-Graphics enthusiast

    Ratings:
    +1,551 / 4 / -4
    Auto-Cast abilities do not trigger events for casting. It doesnt work that way. Thats why I said you would need a damage detection system with this.
     
  16. RanCatu

    RanCatu Member

    Ratings:
    +0 / 0 / -0
    What should I do and put in the triggers sir?
     
  17. Accname

    Accname 2D-Graphics enthusiast

    Ratings:
    +1,551 / 4 / -4
    There is no simple answer.
    You have to learn what a Damage Detection System does, how it works and how to use it. WC3 is quite a good game, but there are just a few things which are unnecessarily complicated to do. If you really want to implement your effects you need to do some research and learn how to use a Damage Detection System.
     
  18. RanCatu

    RanCatu Member

    Ratings:
    +0 / 0 / -0
    Is this the damage detect system sir?
    upload_2017-5-15_12-23-31.png
     
  19. Accname

    Accname 2D-Graphics enthusiast

    Ratings:
    +1,551 / 4 / -4
    Nope. It is much more complicated and can not be done with GUI triggers alone. You will need at least some Jass for a damage detection system.
     
  20. RanCatu

    RanCatu Member

    Ratings:
    +0 / 0 / -0
    Oh okay sir, but I don't know how to use Jass exactly. Maybe I'll change some plans hehe xD.
     

Share This Page