Blockland Forums > Modification Help
Using variables from VCE?
(1/1)
Daenth:
I'm trying to make a few scripts to make my life easier instead of eventing them.
The problem is, I can't figure out how to pull variables from VCE into my script. I've looked at scripts that deal with it and they use %client.var[%var] but I've had no luck with that. I've changed my variable test through the console and had it display the variable to me via events and it comes back as null.

So, how would you use variables from VCE in a script?
Night Fox:
Is the variable you're trying to use a CL variable?
DontCare4Free:

--- Quote from: Daenth on June 27, 2011, 05:06:31 PM ---I'm trying to make a few scripts to make my life easier instead of eventing them.
The problem is, I can't figure out how to pull variables from VCE into my script. I've looked at scripts that deal with it and they use %client.var[%var] but I've had no luck with that. I've changed my variable test through the console and had it display the variable to me via events and it comes back as null.

So, how would you use variables from VCE in a script?

--- End quote ---
According to Zack0Wack0 this was changed in VCE v5. Now events are namespaced to the user. There are functions too for saving/loading VCE variables.
Chrono:

--- Quote from: Daenth on June 27, 2011, 05:06:31 PM ---I'm trying to make a few scripts to make my life easier instead of eventing them.
The problem is, I can't figure out how to pull variables from VCE into my script. I've looked at scripts that deal with it and they use %client.var[%var] but I've had no luck with that. I've changed my variable test through the console and had it display the variable to me via events and it comes back as null.

So, how would you use variables from VCE in a script?

--- End quote ---
If you're talking about v4+ then it wont be .var[%var].
Take a look at VCE Hud Prints.
Navigation
Message Index

Go to full version