Page 1 of 1

Using Variables in the MUD Command Line

Posted: Tue Nov 10, 2009 3:23 pm
by Jules
Just like the title says, is that possible at all? I know when using the Nexus Client with Lusternia, I'm able to create a variable, say health1 for the value of vial123456. So, I can type into the command line:

refill health1 from health.

Is there any way for me to do something like this within Mudlet? I know how to set up the necessary variables within the Script feature, but can I do something similar to Nexus, and just use the Command Line?

Re: Using Variables in the MUD Command Line

Posted: Tue Nov 10, 2009 4:56 pm
by Heiko
You can use global variables anywhere. Check the relevant manual section on variables and have a close look at the Lua HOWTOS that I've posted in the sticky topic in all subforums.

Code: Select all

send( "refill " .. health .. " from " .. health2 )
Look around the older topics in the help forum as most questions have been asked before.
http://mudlet.sourceforge.net/phpBB3/vi ... p?f=9&t=56
http://mudlet.sourceforge.net/phpBB3/vi ... p?f=9&t=60