gamblingbion.blogg.se

Mudlet string functions
Mudlet string functions













  1. MUDLET STRING FUNCTIONS HOW TO
  2. MUDLET STRING FUNCTIONS FULL

Use 'afk' emote in game, clear Discord party status and estimate return send ( "afk" ) resetDiscordData () setDiscordState ( "Back in 15" ) setDiscordRemainingEndTime ( os.time ( os.date ( "*t" )) + ( 60 * 15 )) See Discord docs for a handy image reference on where the detail is shown. GetDiscordDetail getDiscordDetail() Returns the text used for the Discord Rich Presence detail field. For an overview on how all of these functions tie in together, see our Discord scripting overview.

MUDLET STRING FUNCTIONS HOW TO

Note: this only goes for mana, the rest will be accurateĪn example of how to handle the char.vitals updates in Mudlet, add a new script, set registered event handlers to functions to customize the information Mudlet displays in Discord's rich presence interface. Because of the changes in the mana system, updated guilds like the Academics or the alpha Elementalists will not show the same values as you see in game. Subscription is for broadcasted messages only, responses to commands like are sent regardless of your package subscriptions

MUDLET STRING FUNCTIONS FULL

The mud only sends the vitals that are changed compared to the previous version (you get an initial full set moments after subscribing to the Char package), this means that you will get Char.Vitals messages that contain only one value (for instance, drink, like in your example) is not a command, Char.Vitals get broadcasted whenever the value changes in the mud

mudlet string functions

If you enable GMCP in mudlet, it by default subscribes you to Char, Char.Items, Char.Skills, Ire.Composer and Room, so even without doing something yourself, the mud will start sending Char.Vitals I think the confusion comes from several things: Hairetikos wrote:I got vitals without(?) subscription, and others not even after trying and failing and … You are physically feeling very well and mentally in full vigour. To get some, remembering that 'char' includes 'char.vitals' (but not 'char.skills'), but that didn't help. Or more concrete: why does "Char" not remove the others too?Ĭ Īnd why has one to "subscribe to" the former two but not to the latter? Is a subscripton accomplished with ' '? (I refrained from using 'set' lest I should unsubscribe from anything.) What are these packages mentioned on the web site "(see supported packages)"? And are the message names really not case sensitive? is that also true for the elements in the array sent with set, add, remove messages? (JSON attributes, of course, are case sensitive(?)) Is there any explanation why "char" does not include "char.skills", "ems" etc., but "char.vitals"? Has its JSON data formatted with spaces around square and curly brackets? I think to remember something about Mudlet requiring spaced brackets (not sure whether that was about GMCP, though).

mudlet string functions

Is that because I did not 'subscribe'? or because Mudlet fails to digest received data (and to report that failure)? In this case either the (JSON) data or Mudlet is faulty. LUA: ERROR running script gmcp_trigger (Trigger212)ĮRROR::5:īad argument #2 to 'format' (string expected, got nil) Trigger name=gmcp_trigger(return isPrompt()) matched. LUA OK script gmcp_trigger (trigger212condition0) ran without errors GMCP event display(gmcp) to see the full contentīut there is no health in the vitals (which were there from the start - but with the drink entry only).Įcho(string.format("Health: %s, Mana: %s\n" ? Sending "char.vitals 1" or "vitals 1" yields nothing. If that does not help, you are welcome to ask some more concrete questions, before I go on and tell you kilobytes of things you already know and no bit of things you want to knowĬode: Select all I (or Mudlet) got without request or hello or gmcp log-in or …Īppears - for few seconds then drink reappears and intoxication vanishes. On package loading: see my previous post.

mudlet string functions

When the package is loaded much of its "functionality" is just there, the aliases I mention can be used like Genesis commands and there are some buttons on the top left that spill out some help texts. Have you Mudlet running? connected to Genesis? do you know Mudlet? Do you have the package loaded and now wonder how to use it? "Makfly, Titan, joined three years before me" - maybe rather you help me? Hard to guess where you are standing, get you started from where? I wasn't sure about that in my previous post, but here. Is there a 'Getting started' post somewhere or something that can help people get started out on using all of those (probably) awesome functionalities?

mudlet string functions

Makfly wrote: I'm pretty sure all this is pretty awesome, but I have no idea what most of that meant, nor do I have an idea of where to start to take advantage of this.















Mudlet string functions