Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-31-2003, 05:15 AM
busyrobot busyrobot is offline
Registered User
busyrobot's Avatar
Join Date: Dec 2002
Posts: 978
busyrobot is on a distinguished road
what is best way for [player|npc]->data assoc?

No scripts in pecticular, what is the best way to associate variables to npcs or players?

take, say a very old sword:

Say I want to save the data that it is:

4000 years old
+3 damage
has been named "Troll Slayer or Blahrahbah"

now, save[]s only hold numbers < 220, and all this.variables are not readable by other npcs.

1) how do I associate this persistantly?

2) (I've also heard this.vars are also not saved on the server, is that true?)



3) Is there a way to save a reference to an npc, and place
npc[4] into a variable for reference, so when the index varies, I can access it always at the reference variable?

4) Can I use expressions to access bareword variable names (such as variable 'hat1' accessed with an expression '"hat" + hatCount')?
__________________
Woodsman Padren Talisan Sagesun (Dustari)
Graal Kingdoms

"Uh, Professor, are we even allowed in the Forbidden Zone?"
"Why, of course! It's just a name, like the Death Zone or the Zone of No Return. All the zones have names like that in the Galaxy of Terror."
Reply With Quote
 


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 09:34 AM.


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