Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 05-30-2001, 08:09 AM
Bravo_NPC-Admin1 Bravo_NPC-Admin1 is offline
Registered User
Join Date: May 2001
Location: Olympia, Washington USA
Posts: 25
Bravo_NPC-Admin1 is on a distinguished road
Send a message via AIM to Bravo_NPC-Admin1 Send a message via Yahoo to Bravo_NPC-Admin1
Cool 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?
__________________
-Boco
  #2  
Old 05-30-2001, 08:34 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
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
  #3  
Old 06-01-2001, 06:04 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:43 AM.


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