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
nostra
Wanderer


Joined: 23 May 2001
Posts: 68
Location: Sweden

PostPosted: Fri Sep 05, 2003 8:44 pm   

Extracting "2nd" value from a record_variable_list
 
Hello everyone,

I'm about to produce a very delicate script but I'm on stuck on the "record_variable" list manipulation:

WHAT I'VE GOT SO FAR:

Zmud output: Gandalf the Elder is here.
#TR {{@record_variable_list1}} {kill "Field2"}

QUESTION:

Well, how do I actually write a trigger that:

1) fires on the Field1 of the "record_variable_list value" [in this case "Gandalf the Elder"]

2) and returns the second value (Field2) of the "record_variable_list value" [in this case "Gandalf"] [?]

Record_variable_list1 contain:

Field1 | Field2
Gandalf the Elder | Gandalf
A finger of Snakey | Snakey
Old dwarve | Dwarve
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Sep 05, 2003 9:58 pm   
 
A better method would be to use the full name as the key.

#ADDK record_variable_list1 {Gandalf the Elder} {Gandalf}
#ADDK record_variable_list1 {A finger of Snakey} {Snakey}
#ADDK record_variable_list1 {Old dwarve} {Dwarve}
#TR {({@record_variable_list1})} {kill %db( @record_variable_list1, %1)}
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