Author Topic: VCE Help  (Read 310 times)

Hi, I would like some help with my new server.
Basically, you are on a island and your goal is to survive as long as possible.

I was wondering a few things...

1. How do you make it so a client's VCE variables is saved when they disconnect and then rejoin?

2. How do you make it so that you can't plant bricks baseplates without a certain amount of VCE variables


Any help is appreciated ;3  :panda:

1. Vce comes with save/load features.
Quote from: VCE Manual
To save variables, you use the VCE_saveVariable command on the Self target. To load variables, you use the VCE_loadVariable command that is also on the self target. The layout is pretty straight forward, so you should not get lost. Just simply type in the name of the variable you wish to save or load. To load more than one, you can do this: "Var1, Var2, Var3, Var4".

2. Vce does not have that functionability.

Although, in minigame settings you can decrease a player's score every time they plant a brick, so do with that what you will.

I know of a way to auto load VCE variables when people spawn (Get the mini game event add-ons, I believe you can find them on RTB, and use the onMinigameSpawn input event so when someone spawns in the mini game, they load their variables.) but I don't really know of a way to save them by exit, but you could try to make events that save every client's variables every once and a while.