- Joined
- Jul 10, 2009
- Messages
- 521
Hey,
I just discovered a problem which I believe to be a World Editor or Wc3 bug, probably only relating GUI-code.
It concerns these 2 triggers:
(Note that my editor is in German. I tried to translate the GUI code, but it will contain several mistakes. For this reason, I uploaded a map including the triggers that should be displayed in English when opened with an English World Editor.)
What should happen:
When Player 1 types "x" in the chat, a soldier should spawn and get paused.
What actually happens:
When Player 1 types "x" in the chat, a soldier spawns and walks to the middle of the map. He does not get paused.
Observations:
This sounds weird, because a movement order should never interrupt a pause. Indeed, a unit with an active order remembers its order when it gets paused until the moment when it gets unpaused. And a paused unit can't receive orders at all. So under all circumstances, it should never happen that a unit which gets paused and receives a movement order (in any sequence), prefers the movement order.
In addition, a pause should not trigger the "A unit Receives an Order Aiming at a Location" event.
I know that I can solve the problem by deactivating Trigger2 before the pause-line in Trigger1, and re-activating it afterwards.
But I actually don't want to know how to solve the problem, but why and where it comes off.
Is this indeed a bug, or am I missing something?
I am looking forward to your answers
Greetings!
I just discovered a problem which I believe to be a World Editor or Wc3 bug, probably only relating GUI-code.
It concerns these 2 triggers:
(Note that my editor is in German. I tried to translate the GUI code, but it will contain several mistakes. For this reason, I uploaded a map including the triggers that should be displayed in English when opened with an English World Editor.)
-
Trigger 1
-
Events
- Player - Player 1 (Red) types a chat message containing x as Exact Matching
- Conditions
-
Actions
- Unit - Create 1 Soldier for Player 1 (Red) at ((Center of (Playable map area)) offset by (2000.00, 0.00)) facing (Center of (Playable map area))
- Unit - Pause on (Last created unit)
-
Events
-
Trigger 2
-
Events
- Unit - A unit Receives an Order Aiming at a Location
-
Conditions
- (Issued order) Not Equal To (Order(move))
-
Actions
- Unit - Order (Triggering unit) to Move to (Center of (Playable map area))
-
Events
What should happen:
When Player 1 types "x" in the chat, a soldier should spawn and get paused.
What actually happens:
When Player 1 types "x" in the chat, a soldier spawns and walks to the middle of the map. He does not get paused.
Observations:
- First of all, it is clear that Trigger2 somehow orders the soldier to move. So creating or pausing the soldier must be responsible for Trigger2 to shoot.
- When deactivating the "Unit - Pause on (Last created unit)" line in Trigger1, the spawned soldier does not move. Therefore the pause-action is responsible and the create-action is not. To pause a unit seems to create an order aiming at a location (weird?). When displaying the "Issued Order" in Trigger2 with a text message on the screen, the display shows (null).
- When deactivating the "Order (Triggering unit) to Move To .." line in Trigger2, the soldier actually gets paused. So the move-order has to be responsible for the soldier to get unpaused.
This sounds weird, because a movement order should never interrupt a pause. Indeed, a unit with an active order remembers its order when it gets paused until the moment when it gets unpaused. And a paused unit can't receive orders at all. So under all circumstances, it should never happen that a unit which gets paused and receives a movement order (in any sequence), prefers the movement order.
In addition, a pause should not trigger the "A unit Receives an Order Aiming at a Location" event.
I know that I can solve the problem by deactivating Trigger2 before the pause-line in Trigger1, and re-activating it afterwards.
But I actually don't want to know how to solve the problem, but why and where it comes off.
Is this indeed a bug, or am I missing something?
I am looking forward to your answers
Greetings!