Warcraft III resources & community, 2003–2006 · archived

Triggering help

5 posts
#1

Triggering help

Somehow when I created this trigger, it crashes when triggered ingame.

Events
Unit-Builder is issued an order targeting a point

Actions
Unit-order (ordered unit) to attack-move to (center of region 1)

When I move the builder the games crashes.

How can I make a trigger to move the unit to a point whenever it is issued an order or stopped?
#2
ehm...

when event getting started u order the unit to attack a a region. this is an order, too, so the trigger keeps ordering again, and again... the trigger is always activated >> crash
u know what i want to say?
#3
In other words you have created an infinite loop. And those crash wc3.
#4
More like stack owerflow. Infinite loops do not necessarily crash warcraft.
#5
infinite loops are usually instantly recognized by warcraft and shut down. However, this is not a loop, it is a trigger which triggers itself, and programs tend to assume you wont make that bad of a mistake... like trying to get Player(-1) lolz