Blockland Forums > Modification Help
Client Sided RPG Mod
Scars75:
--- Quote from: PurpleMetro on September 02, 2011, 10:41:55 PM ---
--- Code: ---//Script Side Variables
Health = 0;
Hunger = 0;
Thirst = 0;
Package InGameRPG
{
echo("InGameRPG Package run successfully.");
echo("Hunger - (T)");
};
--- End code ---
--- End quote ---
Variables need to have % or $ in front of the name. % for local and $ for global.
--- Code: ---$ClRpg_Health = 0;
$ClRpg_Hunger = 0;
$ClRpg_Thirst = 0;
Package InGameRPG
{
echo("InGameRPG Package run successfully.");
echo("Hunger - (T)");
};
--- End code ---
You should name them something like that.
PurpleMetro:
--- Quote from: Scars75 on September 02, 2011, 10:46:20 PM ---Variables need to have % or $ in front of the name. % for local and $ for global.
--- Code: ---$ClRpg_Health = 0;
$ClRpg_Hunger = 0;
$ClRpg_Thirst = 0;
Package InGameRPG
{
echo("InGameRPG Package run successfully.");
echo("Hunger - (T)");
};
--- End code ---
You should name them something like that.
--- End quote ---
OH STUPID ME
I'm so dumb I didn't recognize that.
Thanks for helping my Scars. I appreciate it
Now I've got alot of work to do in scripting tonight. :/
PurpleMetro:
Sorry for double post. But I've edited my variables and made it like yours.
Blockland then gave me another error when i've used the exec command for it. I'm so lazy :3
The places where the error was found was where I've put my first { to put my statements in my package.
It was like:
Package InGameRPG
##
##{
^statements and all that other stuff
Scars75:
--- Quote from: PurpleMetro on September 02, 2011, 10:53:46 PM ---Sorry for double post. But I've edited my variables and made it like yours.
Blockland then gave me another error when i've used the exec command for it. I'm so lazy :3
The places where the error was found was where I've put my first { to put my statements in my package.
It was like:
Package InGameRPG
##
##{
^statements and all that other stuff
--- End quote ---
Package has to have a lowercase P, torque is picky about that for some reason.
PurpleMetro:
--- Quote from: Scars75 on September 02, 2011, 10:57:54 PM ---Package has to have a lowercase P, torque is picky about that for some reason.
--- End quote ---
Tried that.. It only moved the evil ##'s down to surround the first quotation mark that i used for the echo command. Like it was like this
echo(##"##balhblahblahbalhb