Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
mj_cole
Wanderer


Joined: 19 Apr 2001
Posts: 59
Location: USA

PostPosted: Mon Jul 21, 2003 10:15 pm   

Changing a record string value
 
First off, the new version is excelent, multi state triggers, record variables, I love it.

OK, I can't seem to find the function/command to change an eliment in a record string.

ie. if I have a list of 4 people, with a value specifing their location on the map, I want to update the location.

Getting the location is easy

#show %db(@location, "dobby")

where @location is my record list, and dobby is the name of a character.

But when I leave the mud, I want to place a new number in "dobby's" location space.

Sorry for a 'silly' question, but i'm stumped.

Regards
Marts
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Jul 21, 2003 10:33 pm   
 
check out #ADDKEY. It will replace the contents of an existing key field with the specified value, or it will create a new field.

#addkey Location Dobby 25
Reply with quote
mj_cole
Wanderer


Joined: 19 Apr 2001
Posts: 59
Location: USA

PostPosted: Mon Jul 21, 2003 10:41 pm   
 
rock on, very cool.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net