Writing scripts

Posted by Zalib on Mon 21 Feb 2011 10:10 PM — 3 posts, 16,393 views.

#0
Heyo there. I've been looking into scripting a bit with lua and I want to get started. although I have a question on what i've been viewing on the forums. I've seen people just writing script files that are actually triggers but it's all in a script file. they don't even touch the trigger page at all. So my question is this. Is it better to just create a trigger and send the body to script or is it better to write a script file with these <trigger> tags i've been seeing? And secondly what's the format for writing these tags? Is it just open/close? Like:

<trigger>

//script block

</trigger>

or is it something different? This would work with aliases and timers too right?
#1
I apologize for the second post.

I'm completely lost as to how to go about starting to learn lua. I don't know which ide to use or even if I should use one or just read material and apply it to MUSHclient and see if it works. To be honest I don't even know how to get a script working in MUSHclient.

I feel so dumb right now but I'm really itching to learn scripting so to anyone who has the patience to help me step by step I thank you 1000 times over.
Australia Forum Administrator #2
How about watching the video here:

http://www.gammon.com.au/forum/?id=10212


Then if you have problems still you are very welcome to post your questions. In fact all the "getting started" section should be helpful, and there are quite a few videos there.