View Single Post
  #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