I'm more than happy to help debug out any issues, just drop me a message in-game and I'll respond if I'm on. In Mudlet version 3.8 and higher, the symbol may be cleared with either a space ' 'or an empty string ''. Remove for moving the dead baby rat from the room into the players inventory, the Char.Vitals when the player is sent the prompt line and a Char.Status line, containing only a single name-value pair for 'xp' as it is the only value in the status table that has changed and this is in accordance with the gmcp-doc on the Iron Realms website. To Player: Char.Vitals Īs you can see, there's the and. I know how to do both of these, and could write up a mini primer for each, but that takes a long time and a lot of patience.I've been taking a look through the Achaean code relating to GMCP over the last couple of weeks and fixed up a pile of bugs in the process.įrom the server side this is the debug that I can see when a player kills a baby rat: If you're interested in databases, you'll want to take a look at LuaSQL lite. If you're interested in doing GUI stuff, you'll want to learn CSS before Mudlet's Geyser. Table.insert(tableName, location, value ) It has an optional parameter that tells it where in the table the value should be added. Returns the number of items within a table.Īgain, like our function example, index_of works nearly the same way, except that it returns a value or nil.Īdds a value to a table. Just talk to the admins to fix the gmcp messages and you'll be fine. These database functions make using a database with Mudlet easier. Like our function example, contains works nearly the same way, except it returns no value, only true or false. However, in your example (if I understand your post correctly) the IRE server is clearly telling Mudlet to change the value of the entire table instead of correctly telling Mudlet to only change. I don't often use table functions aside from getn, insert and remove, but these will provide you with extra mobility when dealing with your coding. This table is being used by Mudlet in the context of multiline triggers that use Perl regular expression. but there are two similar functions to this for tables that exist. For printing them all together by line, youll want to build a table thatll make formatting easier. Could be very useful if you're trying to determine if you should add something to a table or not!. The above looks through a table and if the item you're looking for is in the table, will return the index (or key) for it. I cannibalized the following example from another IRE game's forums, though I can't recall which or who wrote it. However, you can pass variables into the function and do things with them, and then have the function return a value as well.įunction someOtherFunctionName (var1, var2, var3 ) Functions are best if you plan to repeat certain steps over and over. Reverse the order of characters in a string:įunctions make life a lot easier, and I've opted to avoid them until this point because I was hoping you'd get a hang of everything up until this point, first. If you want to learn more about patterns for gsub, take a swing over to this page. Brief summary of issue / Description of requested feature: After playing in the mud. Throughout this document we hope to familiarize you with the basic aspects of Mudlet, from the interface to its very powerful and feature rich scripting backend. When you get a new affliction, you get a message. Welcome to Mudlet, a modern MUD client for GNU/Linux that offers all the tools to get the most out of your gaming experience. Eoghan October 2017 Dec said: The biggest misconception about GMCP is that the. SomeStr = someStr:gsub("He%-Who%-Must%-Not%-Be%-Named", "Voldemort") Table.remove(, table.indexof(aros.Defences. Mudlet reads them all directly to table form. He-Who-Must-Not-Be-Named needs his reign ended, now!" SomeStr = "He-Who-Must-Not-Be-Named is an evil man.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |