-

Originally Posted by
RoxZin xD
...when I look at LUA Documentation thread, the things I'm used to can already exist, but the way they're written make me not understand, like maround(3, "Alia") == 0 becomes Creature.New("Alia")
istanceFromSelf() < 3...
once you get used to OOP, which is one of the best things in the programming world, you'll realize this is quite obvious. When ekx (? not sure though) designed these function names, I guess he had in mind to be creating a scripting engine quite understandable for non-programmers, but if the number of functions increase considerably and turns big (as usually it is), it'll be a total mess to users remember all these function names. On the other hand, in a OOP fashion, you just need to remind the existence of some classes (in this case Creature), which packs many features / info related to a certain object (most likely the class name is self-explanatory).
For example, I'd search for the Container class in order to know how to interact with containers, e.g., count items, find some of them, etc.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules