Assigning variables via command line

Post Reply
drauthlin
Posts: 1
Joined: Wed Apr 20, 2011 5:56 pm

Assigning variables via command line

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

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Assigning variables via command line

Post by Vadi »

Import http://forums.mudlet.org/viewtopic.php?f=8&t=100, then use lua myvariable = blah

Post Reply