![]() ![]() Then you can have your influencer loop through the different influence types of the table relevant to the type you want to run, for example your charities table when using your cinf alias. Execute that function by having a trigger call it when logging in, that is an easy way to do it (more advanced would be to tie it to GMCP events, but let's not go there for now). To keep things easy, write a function in a scrip that goes and gets the information from GMCP and build a table per influence type with the skills a player has by using an if structure with ntains. #Mudlet table find code#I haven't looked at your code yet but it should be easy enough to tack it on. The Mudlet wiki is an excellent resource if you are not looking at that already. More advance alias usage will be described later in the manual. Aliases are basically a feature to save you a bit of typing (much like buttons which will be described in detail in a later section of the manual). Mudlet will send 'take weapon' to the game. ![]() You can use the ntains function of Mudlet to check if a table contains a specific value, and use that to determine if a player has a skill. Type 'tw' in the command line and press the enter key. Mudlet keeps everything in a nicely nested table structure so that is half the work done. Skills should be under, again you can use the lua alias that comes with Mudlet by default to echo just that part of the table. ![]() Use the document that Zou linked to help you navigate it. Typing 'lua gmcp' in the command box of Mudlet while logged on should dump the big table with variables. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |