Sivan wrote:That makes sense. And it is now attempting to run it when I specify the vnum, but I get an error every time it tries to do the command now.naftali wrote:you should use '^rooms (\d+)$' otherwise the alias won't pay attention to any other number you try to use.
edit: to clarify - if you just use '^rooms$' then the only thing that will set off the alias is when you type 'rooms' - nothing before and nothing after.
if you used '^rooms' it would set off the alias but ignore everything typed after it.
you need to use what I said above so that Mudlet knows to take the number you type after rooms and store it as matches[2]
Probably still incomprehensible, but I'm too tired to do a better job of translating from tech-speak.
Lua error:[string "send("at " .. i + vnumin.. " look")"]:1: attempt to perform
arithmetic on global 'i' (a nil value)Lua error:[string "send("at " .. i + vnumin.. " look")"]:1:
attempt to perform arithmetic on global 'i' (a nil value)
I see what's happening. it's not expanding out the value of i until it runs the timer's script... by that point, the local value i is long gone. I think the following code will do it.