Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   level.variables (https://forums.graalonline.com/forums/showthread.php?t=3826)

Bravo_NPC-Admin1 05-30-2001 08:09 AM

level.variables
 
How exactly do level.variables work? I am looking over my code, and I think I have a ::rough:: outline on how they work. Can any one help me on this one?

kyle0654 05-30-2001 08:34 AM

I think they're the server-side version of normal variables:

level.variable

on a server-side script would be the equivalent of

variable

on a clientside script

Admins 06-01-2001 06:04 AM

Yes while on client-side variables are
always level-wide (except this. variables),
on server-side all variables are valid for the
current script only by default.

'Current script' means the npc script or
class code. To make the variable available outside
of the current script, you have different choices:

this. variables of the current npc (changes when using
with (getnpc(name)) / with (npcs[index]))

level. variables of the current level

server. variables accessible by all npcs on the npcserver


All times are GMT +2. The time now is 08:24 PM.

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