Page 1 of 1

Assigning variables via command line

Posted: Wed Apr 20, 2011 5:59 pm
by drauthlin
I'm used to zMUD and am just making the move to Mudlet. Please forgive my newbie question.

What I want is the ability to set a target variable via the command. So with the 'settarget drauthlin' command, drauthlin would now be the @target variable. Then, when I type 'sum', my alias would 'cast summon @target'.

I would like to display the current value of the target variable if there's a way to do that as well, so I don't leave it set to the wrong thing and get killed, but that's secondary.

How can I do this?

Thanks!

Re: Assigning variables via command line

Posted: Wed Apr 20, 2011 8:36 pm
by Vadi
Import http://forums.mudlet.org/viewtopic.php?f=8&t=100, then use lua myvariable = blah