Author Topic: Mudlet Graphical Prompt  (Read 19269 times)

BlackMagic0

  • Posts: 1640
Re: Mudlet Graphical Prompt
« Reply #50 on: August 25, 2019, 03:56:23 PM »
Neat!  I got the prompt working but I have not got the mapper working.  Sadly keep getting errors on room detection.
"Don't take life too seriously, nobody ever makes it out alive anyway."

azuriolinist

  • Posts: 473
Re: Mudlet Graphical Prompt
« Reply #51 on: August 25, 2019, 09:21:53 PM »
Neat!  I got the prompt working but I have not got the mapper working.  Sadly keep getting errors on room detection.

Yikes. Let's see. Have you made sure your room exits look like [N, E, S, W] rather than the brief [NESW]? If you have, are the exits often breaking off into a new line beneath the room title?

BlackMagic0

  • Posts: 1640
Re: Mudlet Graphical Prompt
« Reply #52 on: August 25, 2019, 09:59:09 PM »
Yup.  Spaced exists and brief prompt.
"Don't take life too seriously, nobody ever makes it out alive anyway."

azuriolinist

  • Posts: 473
Re: Mudlet Graphical Prompt
« Reply #53 on: August 26, 2019, 12:23:11 AM »
Yup.  Spaced exists and brief prompt.

Ah, yeah. The linebreaks between the room titles and exits would do that. Do you have colors enabled for the room title and exits?

Pheo

  • Posts: 12
Re: Mudlet Graphical Prompt
« Reply #54 on: July 18, 2020, 05:39:24 PM »
Wow azuriolinist!

I tried this back in late-2018, when it was just the prompt bit.
Come back to Arm after 2 years, and am amazed at how much it has progressed.

As with previous poster, I had problems with line-breaks between room tiles and exits.
I followed the suggested settings (colors + brief prompts), but could not get Arm to stop sending the newline.
This made the mapper impossible to use.

I ended up just configuring a new multi-line trigger named, newroom (2-line).
The below regex shouldn't ever overlap with the existing newroom I believe (due to ^ and $)

Line 1 (perl regex):
Code: [Select]
^.*(?<!])$
Line 2 (perl regex):
Code: [Select]
^\ \[((?:(?:, )?(?:N|E|S|W|U|D|Leave))*)(?:(?:, |Quit|Save))*\]$
AND / Multi-line (delta):
Code: [Select]
1
Script:
Code: [Select]
raiseEvent('onNewRoom')

room = multimatches[1][1]

local longDirs = {N = 'north', S = 'south', E = 'east', W = 'west', U = 'up', D = 'down'}
local exits = multimatches[2][2]
exits = string.gsub(exits, "%a", longDirs)

map.prompt.room = room
map.prompt.exits = exits
raiseEvent('onPrompt')

How it looks like in Mudlet (imgur):


Thought I'd share -- in case someone finds this useful.
« Last Edit: July 18, 2020, 05:43:44 PM by Pheo »

azuriolinist

  • Posts: 473
Re: Mudlet Graphical Prompt
« Reply #55 on: July 22, 2020, 02:32:54 AM »
Oooh, that is nicely done. I'll put in an update and use that for the trigger.

gotdamnmiracle

  • Posts: 1057
Re: Mudlet Graphical Prompt
« Reply #56 on: August 28, 2020, 04:28:16 PM »
So the prompt and equipment borders are ridiculously squashed. I can't read any of my equipment nor the stuff in the display prompt. Any help?
He is an individual cool cat. A cat who has taken more than nine lives.

JustAnotherGuy

  • Posts: 2110
Re: Mudlet Graphical Prompt
« Reply #57 on: August 16, 2021, 12:39:27 PM »
I've been having an odd issue after the recent update where the package just disappears randomly.  I've not been able to figure out why it might be getting removed, but if run the string to install, it comes back.  I did add the mapper feature near the same time as the update, so I'm not sure if that is causing it or not.  What can I provide to maybe help with this?
Or you might get me.
Quote
A staff member sends:
     "Looks like you introduced him to *puts on sunslits* the school of hard Knoxx.  YEEEEAAAAAAH"

JustAnotherGuy

  • Posts: 2110
Re: Mudlet Graphical Prompt
« Reply #58 on: August 19, 2021, 09:05:59 AM »
I ended up having to uninstall Mudlet completely and then reinstall, then put the script back in.
Or you might get me.
Quote
A staff member sends:
     "Looks like you introduced him to *puts on sunslits* the school of hard Knoxx.  YEEEEAAAAAAH"