|
mj_cole Wanderer
Joined: 19 Apr 2001 Posts: 59 Location: USA
|
Posted: 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 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
mj_cole Wanderer
Joined: 19 Apr 2001 Posts: 59 Location: USA
|
Posted: Mon Jul 21, 2003 10:41 pm |
rock on, very cool.
|
|
|
|
|
|
|
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
|
|