View Single Post
  #1  
Old 04-10-2006, 04:30 AM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
player.variables and saving to database npcs

I checked the wiki but could only get player.colors[array].
Where can I get a list of every player.attribute
such as
player.hearts
player.rupees
player.swordpower
player.chat

for absolutely everything that belongs to the player?

Also, http://wiki.graal.net/index.php/Crea...v/Database_NPC
does not tell me how to create, access or modify a variable in a database npc.

Let's say I have a database npc called foo.
i want to give foo a variable called bar with a value of "foobar".
then I want to set the player.chat to the value of foo's variable bar.

then i want to change foo's variable bar to be the player's chat string.

never seen an example of how to do that with a database npc, can't find one... please provide npc-speak to that algorithm. thanks in advance
Reply With Quote