|
Ayclaes Newbie
Joined: 31 Mar 2005 Posts: 9
|
Posted: 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? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|