alias:heal *
if tonumber("%1") then
if %1 > 0 then
for i = 1, %1 do
Send("heal heal")
end
end
else
Note("heal")
end
I used the code above and when I just type heal it would send
heal to to mud instead of sending Note("heal"). and if I typed heal with a space "heal " or "heal " it sends an error
message my way.
[string "Alias: "]:2: unexpected symbol near '>'
I want to send Send("heal %1") if %1 is a space or a character and it seems to me tonumber recognizes that %1 is a number even if its an empty space.
MUSHclient
It ignores the command all together if I type heal without an argument also and it works if its a character but not
when it's a blank space. So I used "heal*" to fix the ignoring script part and now it just gives me an error when I type heal by itself. I removed the if statement if %1 > 0
and i get this error when typing heal by itself.
[string "Alias: "]:2: unexpected symbol near 'do'
So The Above works accept it doesn't work when I just type heal and leave * null. Is there a better way to do what I am trying to do without sending me an error message when I type heal with a null %1 character?