
Note: Both the optional parameter dataIsUtf8Encoded and the returned value are only available since Mudlet 4.2.0 Note: The trigger processing system also requires that some data is (or appears to be) received from the game to process the feedTriggers(), so use a send(" ") to get a new prompt (thus new data) right after or ensure that the text includes a new-line " " character so as to simulate a line of data from the Game Server. MUD creators can use Mudlet to add visual flair or build features into their text games. Mudlet provides a toolkit and supports a wide variety of protocols for players and creators to tailor an immersive game-playing experience. What is Mudlet? Mudlet is a platform for gaming and enhancing game-play primarily with MUDs. Then we leave the trigger editor and test our new alias. Then we click on save to save the changes and activate the alias by clicking on the padlock icon. Consequently, the pattern is pwb and as the task is so simple it’s enough to enter "put weapon in bag" in the send field. We want Mudlet to send "put weapon in bag" whenever we type "pwb". Consequently, the text that is being passed on to the trigger processing unit is a small subset of the data received from the MUD. MUD sends: "You see Elyssa standing here." and Mudlet automatically sends "poke Elyssa" to the MUD.īefore triggers can be run on the MUD data, Mudlet has to strip all format codes from the text and store it in data structures associated with the text.

Triggers execute user-defined commands upon receiving specific out from the MUD, e.g.
