Staredit Network > Forums > SC2 Assistance > Topic: One-way zone
One-way zone
Oct 1 2010, 3:02 am
By: payne  

Oct 1 2010, 3:02 am payne Post #1

:payne:

Is there a way to make a zone passable only one-way?
I'm creating a race map and the point is to reach the 4 checkpoints, in order, to get +1 lap (nothing too fancy there :P). The thing is, the way my triggers are currently set, players can just run to Checkpoint #4 and come back to #1 to gain 1 lap...
I'd like it so players cannot go back once they have reached a Checkpoint. It must not a real-physical barricade since it'd prevent other players from passing through it to access to the Checkpoint.



None.

Oct 1 2010, 4:22 am brutetal Post #2



I'd probably do a check by giving the unit a custom value of the previous check point they passed and make sure they can't pass the same one or the one before that and only the one ahead of it.
You can use variables as well. It can do just the same.

Basic pesuedocode:
If unit passes first check point and the value is equal to the check point before, change value to 1.
If unit passes second check point and the value is equal to the check point before, which is 1, change the value to 2.
... etc.
But in check point 4, add 1 lap to the triggering player's overall amount of completed laps.

When the unit tries to go back after it changes value to the last check point it past, just move the unit instantly back on the track to a point offset the center of the last check point.



None.

Oct 1 2010, 6:34 pm payne Post #3

:payne:

I didn't put this in Triggers Assistance because I was searching for a way to literally place an object that would only let players pass one-way through it. :P



None.

Oct 1 2010, 10:49 pm brutetal Post #4



Yeah, so far I haven't been able to accomplish that as well with the data editor. But it works with triggers. =/
But probably tinkering with behaviors, effects and the arc. Its what I tired to use to make it work.



None.

Oct 2 2010, 1:40 am payne Post #5

:payne:

Quote from brutetal
Yeah, so far I haven't been able to accomplish that as well with the data editor. But it works with triggers. =/
But probably tinkering with behaviors, effects and the arc. Its what I tired to use to make it work.
I'm 100% sure I'm not good enough with those to be able to obtain such an effect. :><:



None.

Oct 26 2010, 8:54 pm Tempz Post #6



Terrain wise you can have ramps and jumps, other things that makes it impossible to get around check point... it all depends on your map layout so far.

Another way would be to make it so that when you go to another section of track you enter a new section of map much how caves and world map share different maps.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2022-6-29. : 8:18 am]
GGmano -- I would have released my New map yesterday if scmdraft didnt fail on saving the merged file
[2022-6-29. : 8:17 am]
GGmano -- Not cool when I made such Nice system and I could make it even better if more trigger allowed
[2022-6-29. : 8:16 am]
GGmano -- Damn now I have reduce trigger amount impossible to save fil
[2022-6-27. : 11:03 pm]
jjf28 -- GGmano
GGmano shouted: its not possible to move around a p12 owned preplaced a
when I tried - ya not possible
[2022-6-27. : 11:02 pm]
Zoan -- idk, maybe if you change a setting with euds you can do it. Something like the Unit List and Palletes thing or whatever it's called
[2022-6-27. : 9:42 pm]
GGmano -- i thought that would be easy but dont work on my test
[2022-6-27. : 9:42 pm]
GGmano -- its not possible to move around a preplaced p12 owned dark swarm?
[2022-6-27. : 9:41 pm]
GGmano -- dark swarm
[2022-6-27. : 9:41 pm]
GGmano -- its not possible to move around a p12 owned preplaced a
[2022-6-27. : 1:08 pm]
jjf28 -- having played the architect just fine - no not necessarily
Please log in to shout.


Members Online: Ahli