Re: lua and mushclient scripts

https://www.tutorialspoint.com/lua/


I found that just by typing "lua tutorial" in a search bar.


Your biggest help will come from being able to make your web searches concise and straight to the point.


Like if I wanted to know how to work with a string variable in Lua, I'd put something like "Lua string manipulation" in the search field. It's best if you know exactly what you want to accomplish and put that in as few words as possible.


You also might want to look at other programming tutorials to learn general concepts. Just pick a popular language like C or Python and get a beginner's book on the subject. There are plenty of ebooks out there. I know you just want to know Lua for Mush scripting, but there are general programming concepts that are present in all languages (albeit with varying syntax) that will help you understand what you're doing and help you better form a plan on how to go about accomplishing a task.


Also, before you do anything, look to see if someone has already done it for you. If all you care about is the end goal and don't necessarily care about doing it yourself, there's no reason to reinvent the wheel--so to speak.


One more thing with Mush and MUDs in general. For technical reasons that aren't that important, triggers won't trigger on the last line sent from the MUD. That gave me fits for a long time trying to find out why. Just know that it's a known issue and you'll just have to program around it. I haven't yet found a true fix. I tried scripts that were supposed to force a line break, but it didn't help.


You're going to run into that issue at some point.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Redvelvitchoclete via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : francipvb via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : skluttrell via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : skluttrell via Audiogames-reflector

Reply via email to