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.

[Spell] Spell won't start casting sometimes

Discussion in 'World Editor Help Zone' started by The_Spellweaver, Feb 1, 2014.

  1. The_Spellweaver

    The_Spellweaver

    Joined:
    Feb 20, 2013
    Messages:
    95
    Resources:
    2
    Models:
    2
    Resources:
    2
    A really weird problem to me, at the start of the game, I add 3 spells to a hero. When I try casting them, they won't even start casting. I know this because I have a trig that sends text blah even on "begins casting" instead of "starts effect", and it doesn't. The green outline appears on the spell icon however. Hero's animation reset, but he doesn't cast it. But after some time running and I don't know what, they cast and they work afterwards! It worked before and I really don't get what the problem is. The spell is based off of channel Can anyone help me?
     
  2. WaterKnight

    WaterKnight

    Joined:
    Aug 18, 2009
    Messages:
    4,033
    Resources:
    5
    Maps:
    1
    Tutorials:
    4
    Resources:
    5
    Well make sure to place the debug msg at the earliest entry point. Check if the trigger is created and the proper event registered, and that the trigger does not get disabled. You can catch the order. If the issue is constantly showing at the beginning, it should be easy to analyze by breaking things down.
     
  3. The_Spellweaver

    The_Spellweaver

    Joined:
    Feb 20, 2013
    Messages:
    95
    Resources:
    2
    Models:
    2
    Resources:
    2
    Sorry I'm quite "new" on this site, I use it for it's resources/tutorials etc. and this is actually my first post, so I don't know how to post triggers.. My trigger has event "begins casting an ability" and for conditions, I have Or: (cast spell is first spell, second spell and third spell) and that owner of triggering unit is red. The trigger is used in game, I just added the debug msg before all other actions to see if it is cast, and changed "starts effects" to "begins casting". I'm using normal WE, and I don't get any errors, so the trigger can't be disabled (I save and it's enabled). This is happening all the time at the beginning, I can stay on the place whole time and spam the spells, still they don't cast (it's point target and to mechanical units, there are more than one target units, ~300 pixels away from each other) I'm pretty sure trigger works because after I cast it on other targets, after running, the spell sometimes casts and the trigger is run. This bug happens only at beggining and disappears after I spam it on different targets for a while...
     
  4. WaterKnight

    WaterKnight

    Joined:
    Aug 18, 2009
    Messages:
    4,033
    Resources:
    5
    Maps:
    1
    Tutorials:
    4
    Resources:
    5
    Right-click on the trigger's root on the right side >Copy as text

    Paste it in your post and wrap it with [.TRIGGER][/.TRIGGER] tags (without the points).

    Even in the normal editor, you can disable triggers with the Trigger - Turn Off action for example. You can even use jass in the normal editor. But if you do not know anything about that, you probably do not.

    Well, you can upload the map, tell what to do and what triggers do not fire.
     
  5. The_Spellweaver

    The_Spellweaver

    Joined:
    Feb 20, 2013
    Messages:
    95
    Resources:
    2
    Models:
    2
    Resources:
    2
    In trigger editor, under the folder Creep System, Spawn Minions Red trigger. Try entering the game and use q,w,e on the power generators few times, the spells are based off of channel, so the problem can be in: 1. the trigger, 2. in the spells, 3. in the game(?). Thank you for help, can't give more info because I'm in a hurry at the moment, I'll post again in ~1-2 hours.
     

    Attached Files:

  6. WaterKnight

    WaterKnight

    Joined:
    Aug 18, 2009
    Messages:
    4,033
    Resources:
    5
    Maps:
    1
    Tutorials:
    4
    Resources:
    5
    The unit does not cast. The green frame only denotes the order. The casting range is a bit too short, respectively the path finding concedes, although it does work if you go a bit sideways.
     
  7. The_Spellweaver

    The_Spellweaver

    Joined:
    Feb 20, 2013
    Messages:
    95
    Resources:
    2
    Models:
    2
    Resources:
    2
    So that's it! Thank you very much!! I couldn't figure it out myself haha.. don't mind the leaks and things, the map is still in progress. Thank you very much :D