![]() The following script can be used to send a request to the MUD: Additionally, some broadcasted messages can also be requested if you need to refresh the data before the MUD would broadcast again. Some messages must be manually requested. The MUD will not broadcast every message that is available. You can also match partial packages to trigger on multiple GMCP messages.įor example, you can set the pattern to gmcp.char to trigger on any character related GMCP message. A full list of available packages can be found here. For example, the char.status package would be added to the event handlers as. This package name must be prepended by gmcp. ![]() Enter the package name in the Add User Defined Event Handler field and hit the "plus" sign to add it. This can be done by creating a GMCP script.Ĭreate a new script (not a trigger) and give it a name. ![]() Sometimes you need to be able to trigger off of a GMCP message. Instead, it is recommended to use the display function to print objects to the screen. If you try to echo() however, it will not work because that is an object containing all of the prompt code values. If you try to echo(), it will work because that is a string for the Area Name. Mudlet automatically saves all data from GMCP messages in a global gmcp variable.įor example, if you wanted to read the area name from the prompt, you can do this at any time, from anywhere via the following variable:įor debugging purposes, please note that the echo function will not work with objects, only strings. The full list of packages and their message types can be found here. There are two types of GMCP messages, broadcasts and requested messages.īroadcast messages will happen automatically, while requested messages will only be sent by the MUD if the client requests them. Once GMCP is enabled, the MUD will begin sending GMCP messages. In the settings, under the Game Protocols section, ensure the Enable GMCP checkbox is checked. Once a session is opened, open the Settings: In Mudlet you can enable GMCP via the Settings for your session.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |