Author Topic: VCE variable question.  (Read 2221 times)

Is it possible to make a VCE variable event were it teleport's a player to a specific brick due to an event that triggered it. If so please explain to me how, thanks. Im trying to make a VCE variable event were a player has to wait for his/hers turn (meanwhile two other players are dueling it out) and when its the players turn, the player will teleport to the specific brick due to the death of another player. And the player that killed the other player is teleported to a specific brick, (aka) the waiting area. Now two new people are dueling it out and then the cycle repeats. Im stuck on making this happening and i also need a VCE variable event to limit only 2 people fighting at once, thanks.

There's no way to check how many players remain in an area with events. You'd need some win brick to trigger anything.

There's no way to check how many players remain in an area with events. You'd need some win brick to trigger anything.
there is, it's just a bit difficult

to do this you're probably going to need zone events to detect when a player leaves the zone (dies), and check that there's only one player left in the field (spawn a zone, onenterzone increments a counter, check after a delay if the count is 1)
this will handle the death check, to teleport a player you will need to then spawn a zone on the lobby when the death happens, which teleports the first(?) person into the arena
as for teleporting the dead player, you might want to just have them spawn outside of the arena (teleporting something that doesn't exist is difficult)

forgot to add
doing this with only VCE + the teleport event is way harder, but possible
but I doubt you'd want to go that route, as it would need to have loops running on players and detecting things based on the loops finishing/variables changing

Zonebricks can't be spawned? At least the idea I get from that is that zones are inactive until something happens. Is that what you mean? Cause zone bricks are always active regardless of what event you put on them. Not possible unless you mean a different thing than I think.

Zonebricks can't be spawned? At least the idea I get from that is that zones are inactive until something happens. Is that what you mean? Cause zone bricks are always active regardless of what event you put on them. Not possible unless you mean a different thing than I think.
use the event setzone to fill the region needed
then right after kill the zone with setzone[none]

that will cause everybody in the region to trigger onenterzone once

Oh did not know about that. Yes that works. Using water bricks and on enter water would also work but not as well. Was wrong, is definitely possible.

To teleport the player at the end just let a different centered brick create the same sized zone for a split second and do:
OnPlayerEnterZone > namedbrick > setPlayertransform

Oh did not know about that. Yes that works. Using water bricks and on enter water would also work but not as well. Was wrong, is definitely possible.
VCE is pretty powerful in what it can do, if for some reason we couldn't use zone events we could instead put a loop on every player as they spawn, then use that to trigger events on everybody

To teleport the player at the end just let a different centered brick create the same sized zone for a split second and do:
OnPlayerEnterZone > namedbrick > setPlayertransform
if this is teleporting a single player from the lobby into the arena, potentially add a variable that's incremented and checked for each player, so that only one person is teleported and the rest fail the check

there is, it's just a bit difficult

to do this you're probably going to need zone events to detect when a player leaves the zone (dies), and check that there's only one player left in the field (spawn a zone, onenterzone increments a counter, check after a delay if the count is 1)
this will handle the death check, to teleport a player you will need to then spawn a zone on the lobby when the death happens, which teleports the first(?) person into the arena
as for teleporting the dead player, you might want to just have them spawn outside of the arena (teleporting something that doesn't exist is difficult)

Im trying to follow what your saying on the eventing part but im having trouble on finding the events that you listed. Can you please rephrase it as if im going to event it with the wrench, thanks!

Im trying to follow what your saying on the eventing part but im having trouble on finding the events that you listed. Can you please rephrase it as if im going to event it with the wrench, thanks!
you're going to want another event addon, zone events

you probably have the same problem as me, oreyes.
i want to make a VCE gun shop like you see in other servers, but the last time i did it (some quite long time ago), it didnt work.

noedit : while i cant do that, i scattered free guns around the map of my endless zombies server

As phflack stated you're going to require zones and zone events for this. Would also recommend building the arena and lobby first and keeping them under 64x64x64 size cause I don't know how well multiple zones would work together.

you probably have the same problem as me, oreyes.
i want to make a VCE gun shop like you see in other servers, but the last time i did it (some quite long time ago), it didnt work.

If you need help with that could work it over through pm or something.

If you need help with that could work it over through pm or something.

Actually scratch that, forgot endless zombies doesn't use a custom currency but just points

Onactivate > self > vce_retrocheck > if playerscore >= Price

Onvariabletrue > client > incscore -Price

Onvariabletrue > player > additem > item

Onvariablefalse > client > chatmsg > You need Price Points for this!