To download this library for your Linux/Mac installation, enter this on your command line:
|
Advertisement IScet: (Aug 6 2012, 10:04 pm)
Still do not get it exactly... in my example of code... for instance... how can I get look to simply run my ShowMap() code from the parser... i have the lib checked... but maybe i need to see exactly MY commands running it cause I can not even remotely wrap my mind around this..
Alathon: (Aug 6 2012, 12:19 pm)
IScet wrote:
Code: Thats because thats not all you need to do. Defining commands lets the library know what you want commands to be structured like, but the parser isn't ever getting what the client types. First things first, go ahead and update the library to the newest version, I just updated it. Then check the documentation under readme.dm, under 'How do I set up the library to work?'. IScet: (Aug 6 2012, 8:42 am)
Code:
if this is correct I can not get it to work at all... was just going for barebones because it wont work... I have the Alaparser checked under my Libs... then I type say hello and does not work...
This is the rest of my code that I had setup in verbs and stuff and working fine... all this before I realized that I can't use verbs for TELNET and now I can't get it all to work at all ;( Alathon: (Aug 6 2012, 6:27 am)
IScet wrote:
im looking through your demo commands file... which im guessing is where all of my commands must go as i cannot use verbs on telnet... You shouldn't ever need to modify the library itself inside the library project. For the most part, in which .dm file something resides doesn't make much of a difference. In your own game project/dme, you should create your own .dm file(s) that house the commands. is mb.escapes color output to the world and oview easily doable there for like the say commands and stuff? sorry like i said... parser scene has still got my confused.. How you want to think of it is more-or-less like this: - This library will allow you to define Command objects, that have a command() proc. That proc is run, when the parser matches what the client types, to the format you provide for the Command. This is no different than, f.ex, a verb. Let me show you an equivalent verb and Command (more-or-less):
As you can see, the arguments you define within the verb (mob/M in world, txt) are quite similar to the 'format' variable of a Command. If you wanted to use color-formatting etc within command(), you're entirely free to do so. What happens after command() is called, is up to you! |
Copyright © 2013 BYOND.
All rights reserved.

It sounds like you're more struggling with the basics of how BYOND even works. If that is the case, this might not be the right place to start. You may want to read some general BYOND tutorials first, that explain how verbs, procedures and so on work.