Blockland Forums > General Discussion

Need some help with saving VCE variables

Pages: (1/2) > >>

Dodger:



So basically what my friends and I are trying to do here is to setup a minigame where you can spend score points in order to unlock access to weapons. My friend was trying to make an event where the prompt screen would not display again after you initially unlocked the weapon, so just clicking the buy block would simply add the weapon to your inventory at no cost. The problem we are having is that we are unable to figure out how to actually save the unlocked gun variable (GotgunPepperbox is a test variable) for clients that exit and reenter the server. The events work fine for those who remain in the server, but those who exit and rejoin are forced to buy the weapon again. Screenshot shows what we have so far. We tried fiddling around with loading events, but to no avail. Can anyone provide some help?

Advanced Bot:

You didn't save the "GotGunPepperBox" variable.

Dodger:


--- Quote from: Advanced Bot on April 12, 2014, 03:29:54 PM ---You didn't save the "GotGunPepperBox" variable.

--- End quote ---

Yeah, the screenshot says that, but its not actually that. We named it right initially, we used GotGun6 for the tests that weren't working, and my friend was renaming it. There is a problem with event order and reference, not necessarily the variable name.

Wesley Williams:

What would be the difference with using onPromptAccept > self > VCEsaveVariable > [client] varname for the last line, and loading the variable with self too? That's what I usually do.

Dodger:


--- Quote from: Wesley Williams on April 12, 2014, 03:35:31 PM ---What would be the difference with using onPromptAccept > self > VCEsaveVariable > [client] varname for the last line, and loading the variable with self too? That's what I usually do.

--- End quote ---

its a mod variable

Pages: (1/2) > >>

Go to full version