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
Ayclaes
Newbie


Joined: 31 Mar 2005
Posts: 9

PostPosted: Tue Sep 20, 2005 11:00 pm   

Using @rec.key while passing the key
 
Example:
#var Chars_Gods {John=Zeus|Mike=Hera}
#var current_char {John}
#var current_god {}

#trigger {Welcome %1~!} {current_char = %1; current_god = @Chars_Gods.@current_char}

I'm not evaluating @Chars_Gods.@current_char correctly. I turned on the use of <> in my settings and tried @Chars_Gods.<@current_char> with no luck.

I've also tried (), {}, {} and %eval. Any ideas?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Sep 21, 2005 2:25 am   
 
@var.@key is not a valid syntax. If you want to have variable keys, you will have to use %db() or some other database command/function (whatever happens to be appropriate to what your task is).

#show %db(@Chars_gods, @current_char)
_________________
EDIT: I didn't like my old signature
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