Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Scripting help (https://forums.graalonline.com/forums/showthread.php?t=78466)

Black_knights55 01-25-2008 10:05 PM

Scripting help
 
Hey,
I was scripting with the graal system like 6-7 years ago so I lost a lot of my knowledge about it lol. My question is simple, I just want to know how I can add a variable to a player like a experience count or a level or anything like that so the variable is ON the player.

I know it's a really noob question but I just can't remember how I did that.

Thanks,
Rick

projectigi 01-25-2008 10:28 PM

uh like
PHP Code:

clientr.level 33

or client.

Tigairius 01-25-2008 10:51 PM

In Graal editor you use
setstring stringname,value;

in Gscript2 (on a server) you use what projectigi stated, you can read the value in editor using #v(number value) or #s(string value), or in Gscript2 simply by typing the string name.

cbk1994 01-25-2008 10:54 PM

GS1:

PHP Code:

setstring var, value

GS2:

PHP Code:

var = value

if you use a clientr. var, you need to set it serverside.


All times are GMT +2. The time now is 04:16 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.