I don't know much lua and I only had a working knowledge of how to script in Lua before I came here.
Here's my script: alias name
: ^tt(.+)$big box:
target = matches
echo("Target is set to ..target".")
but when I write target x I keep getting huh? and when i click on the green checked button, i get the echo but with the value of my variable unchanged.
It also means that my Key + 0 won't work on my target.
My macro is as follows:
^k$ <-- though it perhaps should be set to decaykey binding:
key + 0Big box:
It's much easier for me to set my targeting alias in cmud.
I can write it this way: target = %1;#echo Target is set to @target
and it will echo the name of my target. I can't do that with my lua script for mudlet.
I also can assign my variable to say key +0 for decaying my target and assign . to fearing my target etc.
I would like to know what I can do to make my lua scripts work in mudlet...