Hi guys! I've started a new YouTube channel and have dedicated a playlist to learning/sharing Scripting tutorials.
I've started with (Lua) Mudlet and would like to eventually branch off into other Clients like (JavaScript) Nexus.
The reason why I've started doing these videos is that I figure the fastest way for me to learn and grow, personally, is by putting them out there for you guys to watch.
I have no coding background, and everything I've learned about scripting has been from you guys. And of course trial and error.
I know that by doing this, since we have such a brilliant community, you guys will be able to quickly point out any mistakes or even better ways of doing things.
I have no problem editing/re-uploading videos as long as I'm not putting out misinformation.
That's really all I hope this will be. A place to come to learn scripting in layman's terms.
If you have any tutorial videos, or videos that relate, please share them here!
Have fun and start learning!
Comments
How would I use cecho with this simplified version?
Your code:
New code:
So in this example, you'd save precisely one line of code!
myToggle = not myToggle
cecho(myToggle and "<green>Hey, it works" or "<red>Toggle is off")
The question is just, as always in such cases: does compressing the code like this harm readability, and if so, is it worth it? In a tutorial, I'd certainly go with the more verbose, but simpler form.
→My Mudlet Scripts