• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Issue with a periodic timer trigger and wind walk

Status
Not open for further replies.
Level 2
Joined
Nov 1, 2010
Messages
19
(Sorry for my bad english)
So here is my problem, i made a trigger to check night/day time every 1 second (when is night the ability activate when day desactivate) the trigger worked fine until i made other simple trigger, the game simply crashes out of nowhere and its not the same way every time, sometimes i cast the second ability 10 times until it crashes other time i cast it 4 until crashes, really can´t find the error.

At day the skill do nothing, at night the hero gain an ability based of Endurance Aura
GTU5XHh.png


The ability being cast is based of Wind Walk

IKXUcxb.png
 
Level 9
Joined
Apr 23, 2011
Messages
527
1. For your first trigger, you can just use this event instead of checking every second.
  • Game - The in-game time of day becomes Equal to 12.00
2. Have you tried debugging the triggers to see what things fire successfully? I feel like the crash could be caused by something else.
3. Side note: Your first trigger leaks a unit group. In 2nd trigger, there is a point leak and bj_wantDestroyGroup should be outside of the loop.
 
Level 2
Joined
Nov 1, 2010
Messages
19
1. For your first trigger, you can just use this event instead of checking every second.
  • Game - The in-game time of day becomes Equal to 12.00
2. Have you tried debugging the triggers to see what things fire successfully? I feel like the crash could be caused by something else.
3. Side note: Your first trigger leaks a unit group. In 2nd trigger, there is a point leak and bj_wantDestroyGroup should be outside of the loop.

1. this trigger only check once per cycle right? What if it is night when the unity is created?
2. well i know the problem is comming from the first trigger, i checked by desactivating it and it ran with no problems, but if i let it running, even casting the wind walk ability with no triggers crashed my game
3. Yeah i forgot to clear it and for some reason i put the clear group on the 2 trigger in the loop

Thanks for replying
 
Level 2
Joined
Nov 1, 2010
Messages
19
Found the error, seems like i put the endurance aura buff on the wind walk ability, so when i used wind walk with the endurance ability already used in my unit it crashed, because i forced to aply 2 of the same buff on the same unit.
 
Status
Not open for further replies.
Top