PDA

View Full Version : Question about Lich user variables



Bastard
10-27-2005, 01:36 AM
I'm having trouble getting the user variables (like Lich.sheath, Lich.user0, etc) working. I can run the ;settings script and set the values, or just edit the text files. That part is fine.

I just can't seem to get my scripts to read the value out. Example:

fput "get #{Lich.user0}"

Lich.user0 is set to 'dagger' in the settings.txt file, but when the command is run I get the message: error, 'Lich' has no setting for 'user0'! Returning 'false'...]

Anyone have any ideas? Is my syntax just messed up?

Shaelun
11-01-2005, 05:17 AM
I apologize for the delayed answer... truth be told, I very infrequently visit the boards, as you might guess from my oh-so-impressive 90 posts...

I didn't actually mean for those particular settings to be used for more than Wizard-script compatibility (since making a variable is so easy), but they are accessible all the same. The syntax is, for example:

put "put my #{Lich.user(1)} in my #{Lich.magicsack}"
(...or...)
put "put my #{Lich.user 1} in my cloak"

I hope that's clear enough. Either should work just fine, use whichever seems more intuitive to you.

Bastard
11-01-2005, 09:11 AM
Thanks for the reply. Looks like it was just a small syntax error on my part. At any rate, I've learned enough Ruby now that I had already solved the problem. Should be producing some fairly nice scripts in the very near future now.