Staredit Network

Staredit Network -> UMS Assistance -> Two 'Orders' on one unit
Report, edit, etc...Posted by LethaL on 2006-09-23 at 17:35:02
If you have 2 order actions active on one unit, both leading to different locations, what would happen?
Note that the orders are constant, and the times in between each is different (Ex: One action orders it and waits 300 ms before repeating while the other waits 500 ms).

1) Both orders take effect when they are read and the unit will constantly be trying to go to both locations.
2) Only the first trigger read will take effect and the unit will go to the first location without any hint of the second trigger being there.
3) Other?

Thanks to anybody that may know this.
Report, edit, etc...Posted by i)D(Elite on 2006-09-23 at 18:15:24
Why dont you try it yourself? From what I've seen, it'll take the first order, then the next one will cancel it out to go the other way, and so on.

QUOTE(LethaL @ Sep 23 2006, 04:34 PM)
(Ex: One action orders it and waits 300 ms before repeating while the other waits 500 ms).
[right][snapback]566573[/snapback][/right]


Eventually it will get to one side or the other. Probably the one with the 300.
What did you expect? The unit to spin around and blow up? O.o
Report, edit, etc...Posted by LethaL on 2006-09-23 at 18:56:38
Do you really think I'd post this if I could try it myself? disgust.gif

So you're saying the orders will alternate until the unit reaches a location (assuming the orders stop when it gets to either)?

QUOTE
What did you expect?

Obviously I didn't know what to expect. tongue.gif

Any clarification, now? I'll be able to test it for myself in about an hour, but I don't want to start a whole map based on it only to realize it doesn't work how I want it to.
Report, edit, etc...Posted by Falkoner on 2006-09-23 at 19:16:51
Its not very hard, if you select a unit and order it to go one way and then another it will simply go the other way
Report, edit, etc...Posted by Zeratul_101 on 2006-09-23 at 19:25:28
QUOTE(LethaL @ Sep 23 2006, 04:56 PM)
but I don't want to start a whole map based on it only to realize it doesn't work how I want it to.
[right][snapback]566611[/snapback][/right]


thats why you made a test map...so you can perfect your system without having to deal with a whole mess of other unrelated triggers.
Report, edit, etc...Posted by LethaL on 2006-09-23 at 19:28:47
Falkonor, it's constantly ordered to go both ways.

I made a map a long while back where you could trigger an order on a unit and it would go there, but you could also trigger a second order on it and it would go there instead, completely voiding the first order. I believe this was because the trigger of the second order followed the first one in the editor, so it read the first one but quickly read the second one and voided the first.

My question was, would this happen in this map too? I don't have the map anymore so I can't check how I did it before.

ADDITION:
Zeratul_101: I DLed SCXE and StarForge on this computer, but didn't bring the SC CD. Sure, I can get all the triggering done, but I can't play the map.
Report, edit, etc...Posted by PCFredZ on 2006-09-23 at 20:26:56
The moment that the action executes, the unit gets ordered. The problem with what you have is that you'll encounter wait blocks, because you have more than 2 Wait actions running at the same time.
Report, edit, etc...Posted by LethaL on 2006-09-23 at 21:00:43
I plan on using death counters instead of wait timers to avoid that, but I used waits in the example because it was easier to explain.

Regardless, I'm home now and working on the triggering of the map, doing this system first for obvious reasons.










Edit: Nevermind, fixed that second problem.
Report, edit, etc...Posted by DT_Battlekruser on 2006-09-23 at 22:12:15
It is impossible to order a unit twice simultaneously. No matter what, there will be a minute amount of time between two orders.

Since a unit can only hold one order, it will execute whatever order it had last, and continue executing this order until it gets a new one.
Report, edit, etc...Posted by LethaL on 2006-09-23 at 22:43:36
I understand that, but if you had 2 constant orders with different times between them repeating the order, would the unit constantly run back and forth between locations until it finally got to the one with the lower time, or would it void the first trigger in the line and just run the second order regardless?
Report, edit, etc...Posted by Zeratul_101 on 2006-09-23 at 23:11:43
its so simple... the unit will follow the last order it was given. any new orders become the new last order and it will follow that.
Report, edit, etc...Posted by LethaL on 2006-09-24 at 00:19:06
As simple as that is, it doesn't answer my question.

Doesn't matter anymore, though. I had it all set out and it didn't work exactly as planned, so the idea's scraped. Thanks for the somewhat help that I got. crazy.gif
Next Page (1)