Lua Tutoring?

by Unknown

Back to Mechanic's Corner.

Unknown2010-06-16 20:23:09
I've been looking at plenty of documents and self teaching LUA sites, but a lot of them have their own way of teaching things, and they often leave out details I'm looking for.

Is it possible that we could either make a thread that teaches us how to use it and put it to use with Lusternia?

Of course, I do not want people to expose all the ways they attack, but if at least 1 example of a successful code could be displayed after each lesson, (variables, strings, etc) it would be much more beneficial. One thing in this game that repels a lot of people from playing is the fact combat is so hard, and so many factors and such make it difficult to make ways to fight back efficiently. All the experience that we had gained by typing things out instead of the simple aliases and triggers other people have made, we lose a lot of our time we had spent just because Uraziel or some other jack off decides it's funny to kill a novice. Or when a commune or city think it's combat to just summon people who have no way or knowledge to defend themselves and then jumping them. You think they would kill the people that know what they are doing first. I understand that you need to defend your place or raid and such, but do you really need to kill off the people who obviously just play for fun since they can't fight? (Real class act by the way who are like this. How many cripples do you tease about the fact they can't run?) Oh and the excuse for them being in battle, so they are liable targets is just a giant pile of crap. Again, you target the weakest. You know we couldn't do anything to really harm something. Yet you do it. (The novices I refer to are people that are at least below circle 30, still getting the hang of the game.)

Anyways, most of the triggers and such people have bought fancy things to help them with it. So their 'work' to 'power' was simple and not a problem. Kudos to those who did everything from scratch however. I tried to look at the Treant setup, and tried to figure out how to make my own things using code. Didn't work out so hot. Everybody has different learning styles, and some people just don't learn by reading something.

Personally, this is my learning style.

Watch somebody do it.
Explain what they do each step by step.
Explain why they do it that way.
Show wrong ways to do it, and right ways.
Make working code myself.


I need every variable and such to be explained, I'm seriously stupid about all this. The most I can do is simple copy and paste triggers. (And alternating code with groups with a lot of help from people here.) But that's only one small thing. I want to do this myself, learn and figure out how all this is done.

In conclusion, I guarantee that if a simple thread such as this was created, a lot more people would join and have fun, instead of being repelled away since they can't even defend themselves against a lower circled person. It doesn't matter how strong you are unless you have the ability to use the skills acquired. And again, since everybody has these things to do it automatically for them, they don't need to furiously type it out and think like the rest of us. Not that that's bad, but it's annoying knowing that some people are able to kill you without effort while you struggle to cast a simple spell.
Vadi2010-06-16 22:01:47
First things first: the language is called Lua; it's not an acronym of LUA.

Good luck with the tutor!
Xavius2010-06-16 22:05:19
Why don't you just use Treant? Working from scratch is pretty dumb, even when you're proficient. It's called "reinventing the wheel" in programmer jargon.

If you're having trouble setting up offensive aliases, that's a different beast altogether. There's never any need to script your offense, and there aren't many places where it's even mildly desirable.
Acrune2010-06-16 22:07:36
1) I like your avatar laugh.gif

2) Should probably keep rants and requests for help separate... makes your post hard to follow.

3) There are tons of lua examples and tutorials out there, but those aren't good, and simply posting another one on the forums isn't going to help a lot. Which leads me to think that you want something more lusternia specific... but you want to do things yourself. So I'm not really sure what you're looking for. You're welcome to ask specific questions, there are plenty of people capable and willing to answer them. Trying something for a while, then asking a question related to that something once you're stumped is probably your best bet.
Acrune2010-06-16 22:13:44
QUOTE (Xavius @ Jun 16 2010, 06:05 PM) <{POST_SNAPBACK}>
Why don't you just use Treant? Working from scratch is pretty dumb, even when you're proficient.


Not true...

1) I always feel like I can do better than any system I've used. I want to see if its true. laugh.gif
2) Its fun.
3) I don't like mushclient
4) Adding things to a system you made is easier than to a system someone else made.
5) Any publicly available system is going to have publicly known exploits.
Xavius2010-06-16 22:20:24
Two and three are the only reasons on that list that make any sense. tongue.gif Even if you want to gut a major function, it's quicker and less error prone to work from existing code. Modularity problems stem from bad code. Iasmos writes very readable, modular code.
Unknown2010-06-16 23:30:12
QUOTE (Xavius @ Jun 16 2010, 10:05 PM) <{POST_SNAPBACK}>
Why don't you just use Treant? Working from scratch is pretty dumb, even when you're proficient. It's called "reinventing the wheel" in programmer jargon.

If you're having trouble setting up offensive aliases, that's a different beast altogether. There's never any need to script your offense, and there aren't many places where it's even mildly desirable.



You serious? There's so many times in battle I can't even tell what I'm able to do or not. I'm unable to see a single thing, obliviousness helps a bit but I still can never tell what I'm able to do or not, and half the time any attack I do they just simply counter it with some stupid defense. I don't know how to get around those, and there's so many stupid tiny little factors in battle that just screw up anybody who has just one mistake. And 90% of the time I'm stranded and alone when they decide to attack me. I've barely been attacked alone with a fair fight one on one. Instead, I get slaughtered by 5 people who are effing DEMIGODS and they get a chuckle out of killing us. It's annoying and stupid. It's like I'm playing Modern Warfare Online with 10 year old campers and noob tubers, except for in a text game!

QUOTE (Xavius @ Jun 16 2010, 10:20 PM) <{POST_SNAPBACK}>
Two and three are the only reasons on that list that make any sense. tongue.gif Even if you want to gut a major function, it's quicker and less error prone to work from existing code. Modularity problems stem from bad code. Iasmos writes very readable, modular code.


and if it was readable I'd be able to understand it. I'm actually taking java, and I struggle with the same thing. But what my College Professor told me was very confusing. "You need to slow down. Think very stupid." I have no idea what he means by that. Maybe that's my problem, I can't slow down at all. I always get riled up.
Sylphas2010-06-16 23:40:38
Code does EXACTLY what you tell it to. Assuming anything about your code is a quick way to miss every error in it. It's not stupid, so much as simple. You have to pick at exactly what you have and not what you think you have. At least, that's what I figure it means.
Xavius2010-06-16 23:49:56
QUOTE (TheSponge @ Jun 16 2010, 06:30 PM) <{POST_SNAPBACK}>
You serious? There's so many times in battle I can't even tell what I'm able to do or not. I'm unable to see a single thing, obliviousness helps a bit but I still can never tell what I'm able to do or not, and half the time any attack I do they just simply counter it with some stupid defense. I don't know how to get around those, and there's so many stupid tiny little factors in battle that just screw up anybody who has just one mistake. And 90% of the time I'm stranded and alone when they decide to attack me. I've barely been attacked alone with a fair fight one on one. Instead, I get slaughtered by 5 people who are effing DEMIGODS and they get a chuckle out of killing us. It's annoying and stupid. It's like I'm playing Modern Warfare Online with 10 year old campers and noob tubers, except for in a text game!

I don't see anything in this rant that applies to your system.
Rael2010-06-17 00:10:52
I am working on a "Mudlet by Example" tutorial with Lusternian specific examples. Lately I have not had enough spare time to even log in, but if you want to initiate a similar project nothing is stopping you. smile.gif Otherwise you are just going to have to be patient and wait a very long time.
Unknown2010-06-17 00:20:13
QUOTE (Xavius @ Jun 16 2010, 11:49 PM) <{POST_SNAPBACK}>
I don't see anything in this rant that applies to your system.


Fine... Glomdorians like to hide in one spot while they try to single out people with stupid little traps. Thus, camping.

The text flowing around in the game is too fast for me to tell when I'm able to attack, so I'm pretty sure alot of code would help.

The fact I'm unable to even blink before dying, Treant defenses can only do so much.




I can go on if you'd like? I'm not in sarcastic jerkoff mode yet.
Sylphas2010-06-17 00:25:02
Groups will kill you with the best system in the world, honestly.
Xavius2010-06-17 00:32:00
QUOTE (TheSponge @ Jun 16 2010, 07:20 PM) <{POST_SNAPBACK}>
Fine... Glomdorians like to hide in one spot while they try to single out people with stupid little traps. Thus, camping.

The text flowing around in the game is too fast for me to tell when I'm able to attack, so I'm pretty sure alot of code would help.

The fact I'm unable to even blink before dying, Treant defenses can only do so much.

I can go on if you'd like? I'm not in sarcastic jerkoff mode yet.

I imagine people have tried to tell this to you directly many times, so I'm going to try something else.

When you install the latest version of Chessmaster, do you become a chess grandmaster? When you download Rosetta Stone, do you become fluent in 40 languages? If not, why? You already have all the tools you need once you do!
Neos2010-06-17 00:34:57
Learning rudimentary lua is not difficult. I learned some basic stuff in three or so months and several people can attest to the fact that i learned it quickly and I'm no longer the complete idiot I was a few months ago.
http://lua-users.org/wiki/LuaTutorial
http://www.lua.org/pil/
those two sites are where i learned much of what i know. I am not an expert like a lot of the people on this forum, but I can code basic stuff, but not an entire system. I learned because I was dedicated and kept at it. It all seemed like gibberish to me when i first started learning, but I'm well versed in the language and continue to learn every day. Hell download as many scripts and such you can find and take them apart and learn from them. Use them as examples if need be. I don't use mushclient myself personally, but I respect Treant as a good system and like to refer to it for ideas and the occasional example when i get confused over something.
Razenth2010-06-17 00:40:54
Maybe you should move to Glom first before you start figuring out this system business. It seems like the stress is getting to you.
Unknown2010-06-17 02:33:42
Have you looked at my very, very basic MUSHclient tutorials? I had intended to add more, but time gets away from me (and I have a hard time explaining things in the simplest way).
Unknown2010-06-17 06:12:56
QUOTE (Xavius @ Jun 17 2010, 12:32 AM) <{POST_SNAPBACK}>
I imagine people have tried to tell this to you directly many times, so I'm going to try something else.

When you install the latest version of Chessmaster, do you become a chess grandmaster? When you download Rosetta Stone, do you become fluent in 40 languages? If not, why? You already have all the tools you need once you do!


Answer to question: No, of course not. But I currently don't have the time to learn how to play Chess like a god or master new languages with my schedule these days. I want to play games for fun. A game shouldn't really need to be 80% work. No matter how good a tool is, if you don't know what your supposed to do with it, it's worthless. Don't hand me a wrench and expect me to take a car apart.

QUOTE (Zarquan @ Jun 17 2010, 02:33 AM) <{POST_SNAPBACK}>
Have you looked at my very, very basic MUSHclient tutorials? I had intended to add more, but time gets away from me (and I have a hard time explaining things in the simplest way).


Ok thanks for the link! It's been awhile, but when I had tried to access other parts of the site it always told me it was under construction or something. I don't know, but thanks anyways! I'm adding it to my bookmarks.

QUOTE (Razenth @ Jun 17 2010, 12:40 AM) <{POST_SNAPBACK}>
Maybe you should move to Glom first before you start figuring out this system business. It seems like the stress is getting to you.


You have NO idea. Maybe that's another problem. Maybe that's why people go to Glom, so they don't have to worry about stuff like being attacked and such.
Xavius2010-06-17 06:33:28
QUOTE (TheSponge @ Jun 17 2010, 01:12 AM) <{POST_SNAPBACK}>
Answer to question: No, of course not. But I currently don't have the time to learn how to play Chess like a god or master new languages with my schedule these days. I want to play games for fun. A game shouldn't really need to be 80% work. No matter how good a tool is, if you don't know what your supposed to do with it, it's worthless. Don't hand me a wrench and expect me to take a car apart.

You can download a car. You came here looking for a wrench when you really need a driving lesson. No amount of learning Lua will ever, ever help you learn combat. Systems don't make people good. Systems don't even make people mediocre. You won't even know where to start improving a system until you can really look at what's going wrong. Computers don't respond to vague directions like "make me better at combat," but that's really what you're looking for. What you need to do is practice and observe. Taking on a major coding project to fix things not related to your system, without even a real sense of what a system can and can't do for you, is just a recipe for disappointment.

If you're still typing out your offensive commands, then you may need help setting up aliases and macros. This doesn't need to involve even one line of scripting. All you need is this.
Razenth2010-06-17 07:12:13
Well, he COULD program an automated offense. But it's illegal. But it would ALSO make a pretty cool CS project.
Xavius2010-06-17 07:35:28
Automated offense isn't illegal as long as it doesn't, like, automatically determine when everyone is logged off, cubix over, grief mobs, grief defenders, then retreat back to the manse. Impossible to code what you don't understand independent of code, though!

PS: If anyone codes that, I want a copy, illegal or not. I'll risk shrubbing for that much lulz.