Staredit Network

Staredit Network -> UMS Assistance -> location issue
Report, edit, etc...Posted by KABOOM on 2006-06-12 at 10:47:37
ok so i got 5 possible ranges each lvl of range is a location. ok and all 6 players these range locations. all players start at lvl 1 range and use that location will it get disrupted?
i have about 2 triggers before an action happens then the player wouldnt require the location anymore. so what i'm asking would the location like go away before the action can happen?
Report, edit, etc...Posted by Zeratul_101 on 2006-06-12 at 11:05:01
could you rephrase that a little bit?

i don't see why a location would get 'disrupted' unless you're moving it.
Report, edit, etc...Posted by Kenoli on 2006-06-12 at 11:18:29
QUOTE(KABOOM)
ok so i got 5 possible ranges each lvl of range is a location. ok and all 6 players these range locations. all players start at lvl 1 range and use that location will it get disrupted?
i have about 2 triggers before an action happens then the player wouldnt require the location anymore. so what i'm asking would the location like go away before the action can happen?
I think the answer to your question is "No."

Actions will happen at the current location of the, uh, location.
Moving the location later on in the trigger cycle won't have any effect on the actions.

You can, for example...
Move the location,
Perform an action at the location,
Move the location,
Perform an action at the location,
Move the location,
Perform an action at the location,
Move the location, Etc.
And all the actions will be done at different locations.
Report, edit, etc...Posted by KABOOM on 2006-06-12 at 11:40:57
ok rephrase: i got a trigger that moves the location on a unit then a few triggers later it does what it needs to. but in that time another player can use that location but what are the chances?
Report, edit, etc...Posted by Zeratul_101 on 2006-06-12 at 11:48:19
as far as i can tell, as long as the second set of triggers doesn't move the location, then it should be fine.
Report, edit, etc...Posted by (U)Bolt_Head on 2006-06-12 at 14:38:28
QUOTE(KABOOM @ Jun 12 2006, 10:40 AM)
ok rephrase: i got a trigger that moves the location on a unit then a few triggers later it does what it needs to.  but in that time another player can use that location but what are the chances?
[right][snapback]505093[/snapback][/right]


It just depends on the trigger order.
Report, edit, etc...Posted by Corbo(MM) on 2006-06-12 at 19:16:35
The location, stays where it was last used, unless other triggers moves it,
if the location it's in use and you are trying to move it somewhere like to a dead unit it will go to center.

if you center location on X, action happens at where the location used to be even if you move it after 1 milisecond the action was fired. notice that when you have preserve trigger it keeps looking for the location of the location so if you move it and the action is still being executed the action will move with the location.

I hope im not wrong tongue.gif
Report, edit, etc...Posted by fritfrat(U) on 2006-06-12 at 20:23:07
Have it so the triggers doing the actions for player 1 are directly underneath the triggers moving the location for player 1. That way, if player 2 wants to use it at the same time, it simply moves to p1, does the actions, then p2 uses the location. Triggers always go from top to down order, just remember that... trigger order practically runs my Stratego map tongue.gif
Report, edit, etc...Posted by KABOOM on 2006-06-12 at 23:14:09
i cant get it in one trigger and its on preserve. the triggers need to detect range and the current cooldown b4 an action can be done and in that time another player can have moved the location b4 the first players action can be done in the right place. thats what i'm thinking thats y i'm asking
Report, edit, etc...Posted by Kenoli on 2006-06-13 at 08:11:24
QUOTE(KABOOM)
i cant get it in one trigger and its on preserve. the triggers need to detect range and the current cooldown b4 an action can be done and in that time another player can have moved the location b4 the first players action can be done in the right place. thats what i'm thinking thats y i'm asking
Is there actually any time passing or can it happen all in one trigger cycle? If there's a time gap between the actions it opens up the possibility of other players' triggers interfering with the location.
Otherwise you can just put the actions in a trigger directly below the other trigger and there's no way the location could be moved by another player.
Report, edit, etc...Posted by KABOOM on 2006-06-13 at 14:10:22
ok so theres a trigger to detect the lvl of range the player has then another for the cooldown lvl only then can the action trigger go. the location is first used in the range detection so ya

^ ans: theres no waits between but theres like 4 switchs needed to be set or cleared between the detection and action

ADDITION:
ok from recent tests i have found out that the triggers keep repeating them selves intill the action is carried out. so it keeps locking on intill action done and if other player mcs at the same time and they steal the location it doesnt matter it will end up working for both players biggrin.gif

-ok topic solved
Next Page (1)