The variable is stored on the server, you need to send it to the client.
The way I do that:
In the function that your bind calls to open the gui, add a commandtoserver call.
Create the corresponding serverCmd, in which you call a commandtoclient, with the amount of wood as an argument
Create the corresponding clientCmd, in which you set a GuiTextCtrl's text (the function is either setText or setValue) to the recieved argument
sample code:
client:
function <guiBindFunction>
{
//Your current code
commandtoserver('RPG_GetData');
}
function clientCmdRPG_SetData(%wood)
{
RpgWoodText.setText(%wood);
}
server:
function serverCmdRPG_GetData(%client)
{
commandtoclient(%client,%wood);
}
You'd have to replace %wood in the serverCmd with the proper VCE variable call
(Assuming they used VCE)
It didn't. IMO integrating scripts and events (especially VCE) is a pain and doing everything script is easier (except for a very few things that
have to use events)