I figured posting in this old thread would be better than making YET ANOTHER thread with a one-off LUA DoAfter question; here goes.
I'm looking into LUA as a language on my own, but in the meantime I'm trying to put together little snippets to test it out and familiarize myself and I can't seem to figure out how to use DoAfter in an alias.
To be more specific I have an Alias named "test" which I created through the Config menu which has the following in the "send" box:
west
DoAfter(.5, "west")
DoAfter(.5, "east")
DoAfter(.5, "east")
Just as a proof-of-concept so I'm not eating up my character's resources.
I have it send to "Script" (I forgot and left it on "world" which clearly didn't work) with everything else blank (Label, Script, Group, Variable) and Sequence 100.
When I use the alias however I get a scripting error:
Error number: 0
Event: Compile error
Description: [string "Alias: "]:2: '=' expected near 'DoAfter'
Called by: Immediate execution
I've looked about here under the Lua basics pages, the DoAfter pages (including the scripts function page), on YouTube, and just Google'd it a bit and figured I should probably just ask since really I don't even know what it's asking me for.
Please let me know if you need more info. |