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.
[2026-7-18. : 2:27 am]
Symmetry -- https://staredit.net/topic/18903/ THE REVIEWS ARE HERE! "ok these are pretty good memes" - ssj9Kevin
[2026-7-17. : 2:58 pm]
Ultraviolet -- Symmetry
Symmetry shouted: Man I wish we had this tech back in the day when people played ums lmao
fr fr
[2026-7-17. : 2:39 am]
Symmetry -- Man I wish we had this tech back in the day when people played ums lmao
[2026-7-16. : 6:28 am]
NudeRaider -- EUD actions, specifically. The conditions remained. Today we can even have actions again, but they're all virtualized/whitelisted (not sure on the actual technical implementation) so you can only use them for specific intended purposed, not arbitrary code injections.
[2026-7-16. : 6:26 am]
NudeRaider -- I mean yes, maps - through EUDs - were theoretically able to do that as well, but that was patched quickly.
[2026-7-16. : 6:25 am]
NudeRaider -- Symmetry
Symmetry shouted: Ohhh imagine a SC map that could delete itself
not the map, the editor
[2026-7-16. : 2:28 am]
Symmetry -- I vaguely remember Voy doing some ACE back in the day, but I had no idea EUDs could do that kind of shit. I am very much catching up on the technology
[2026-7-16. : 2:28 am]
Symmetry -- Ohhh imagine a SC map that could delete itself
[2026-7-15. : 8:51 pm]
NudeRaider -- Symmetry
Symmetry shouted: NudeRaider Is EUD editor capable of writing shit onto the player's harddrive? That seems like it would be dangerous
yeah an editor that isn't allowed to write files sounds rather pointless, so I'd assume it can. Like most other programs too btw. and yes, obviously that's dangerous, but also kinda necessary. MS introduced that virtualization for exactly that reason.
[2026-7-15. : 4:10 am]
Ultraviolet -- I don't think so. I think they shut that shit down after 1.16, maybe even earlier
Please log in to shout.


Members Online: IskatuMesk