Using Variables in the MUD Command Line

Post Reply
User avatar
Jules
Posts: 118
Joined: Sun Oct 11, 2009 5:41 pm
Location: Plymouth State University - Sophomore

Using Variables in the MUD Command Line

Post 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?

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Using Variables in the MUD Command Line

Post 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

Post Reply