Page 1 of 1


PostPosted: Sat Aug 12, 2017 6:29 pm
by Zax
The "prompt" is the text the MUD shows you on the command line where you enter your commands. The default prompt for newly made PCs looks like this:

Shadowdale: (type help prompt) H:41 M:120 V:200>

If you choose, you can customize your prompts to provide more information to you. This can include adding color to the prompt to highlight important info. Type "help prompt" for more on the various prompt options.

An example is the custom prompt I like to use. It looks like this:

H:356/374 M:319/319 V:301/340 G:318444 XP:125162316 DWITY <*> <*>

Except that each bit is highlighted in a different color. To try this prompt for yourself, just copy the following command and paste it in your command line:

prompt $kRH:%h/%H $kCM:%m/%M $kMV:%v/%V $kYG:%g $kBXP:%x $kW%S $kG<%c> $kg<%C>

(I'll leave it to you to work out what that command does, using the info from "help prompt")

If you have a prompt you like, feel free to add it here in a reply to this post so that others may try it out.

Re: Prompts

PostPosted: Sat Aug 19, 2017 9:43 pm
by Dell
I use for my caster:

$kW($kR%h$kW/$kr%H$kW) ($kC%m$kW/$kc%M$kW) ($kG%v$kW/$kg%V$kW) ($kB%x$kW) C:<$kY%c$kW/$kR%C$kW> [$kC%T$kW]

The last thing is the IG time, useful for tracing spell-duration or shop times

Re: Prompts

PostPosted: Sun Aug 20, 2017 4:11 am
by Vertexvortex
I'm often playing from my phone client, so I like to keep mt prompt fairly compact. Here's what I have (cribbed colors off of Patches):

prompt $kr%h$kR/%H $kc%m$kC/%M $kg%v$kG/%V $kB%x $kl%s $km%T $ky%c$kw:$kR%C$kW>

Looks like this (colors are not exact)
122/122 125/125 289/320 98850 ----I-T- 12am *:*>

Re: Prompts

PostPosted: Mon Aug 28, 2017 10:52 am
by George74
Hello. I m using this prompt and it is fine for all my characters:
prompt %h[%H] %m[%M] %v[%V]~%x~%C>

Re: Prompts

PostPosted: Mon Aug 28, 2017 1:42 pm
by faet
Heres my prompt

prompt < %h/%Hhp %m/%Mmp %v/%Vmv %ggp %xfl %C >

< 1000/1000hp 1000/1000mp 1000/1000mv 1000000000gp -249999fl badly wounded >

Re: Prompts

PostPosted: Mon Aug 28, 2017 10:30 pm
by Tyme
Mine is fairly close to Faet's...

Tyme - HP:%h/%H MP:%m/%M MV:%v/%V GP:%g XP:%x MOB:%C

I like having the name first because when you have 5-10 characters sometimes it's easy to forget who you're playing!

When I max out in levels, I just remove the XP section.

I don't use any special colors, too many would give me a headache...I like the soothing grays of mudlet, and miss the soothing greens of zmud!

Re: Prompts

PostPosted: Tue Jan 21, 2020 12:25 am
by Mercedes
I have a very nice prompt, if I do say so myself. It's similar to Vax's so what I can share that adds to the conversation is the regex to have a client recognize it for monitoring critical variables (HP, etc).

Mercedes CE 192295 214/214 262/262 320/320 10pm ----WI---T-. *::* ))

It looks very nice in color:
Code: Select all
prompt $kWcharactername $kW%a $ky%g $kR%h$kw/%H $kC%m$kw/%M $kG%v$kw/%V $kW%T $kC%s. $kR%c$kw::$kR%C $kW))

Here's the regex that I use for my client (Mudlet) to monitor:
Code: Select all
^(\w+) (\w+) (\d+) (\d+)\/(\d+) (\d+)\/(\d+) (\d+)\/(\d+) (\d+)(\w+) (.+)\. (.+)\:\:(.+) \)\)
^\[AFK\] (\w+) (\w+) (\d+) (\d+)\/(\d+) (\d+)\/(\d+) (\d+)\/(\d+) (\d+)(\w+) (.+)\. (.+)\:\:(.+) \)\)
^\[MAIL\] (\w+) (\w+) (\d+) (\d+)\/(\d+) (\d+)\/(\d+) (\d+)\/(\d+) (\d+)(\w+) (.+)\. (.+)\:\:(.+) \)\)

Since creating this trigger, I've learned how to manipulate regex so the . after the spell effects is no longer necessary but there's no need to go back and change everything. It works beautifully.

Now, while I'm sharing, my Prompt Reader triggers is:
Code: Select all
--good place to put troubleshooting stuff

--prompt reading follows
toon = matches[2]

if (matches[3] ~= toonalign) then
toonalign = matches[3]

if (toongold > tonumber(matches[4])) then
  local toongoldloss = toongold - tonumber(matches[4])
  echo("\nI lost "..toongoldloss.." gold.")
toongold = tonumber(matches[4])

if (toonhp > tonumber(matches[5])) then
  local toonhploss = toonhp - tonumber(matches[5])
  echo("\nI lost "..toonhploss.." hps.")
toonhp = tonumber(matches[5])
toonhpmax = tonumber(matches[6])
toonmana = tonumber(matches[7])
toonmanamax = tonumber(matches[8])
toonmov = tonumber(matches[9])
toonmovmax = tonumber(matches[10])

if (mudtime ~= tonumber(matches[11])) then
  if ticktimer then
  ticktimer = tempTimer(55, [[echo("Tick in roughly 5 seconds.")]])
mudtime = tonumber(matches[11])
mudampm = matches[12]

if (matches[13] ~= buffs) then
  if string.find(buffs, "D") then
    echo ("")
  if string.find(buffs, "A") then
    echo ("")
  if string.find(buffs, "S") then
    echo ("")
  if string.find(buffs, "M") then
    echo ("")
  if string.find(buffs, "W") then
    echo ("")
  if string.find(buffs, "I") then
    echo ("")
  if string.find(buffs, "B") then
    echo ("")
  if string.find(buffs, "C") then
    echo ("")
  if string.find(buffs, "F") then
    echo ("")
  if string.find(buffs, "T") then
    echo ("")
  if string.find(buffs, "Y") then
    echo ("")
buffs = matches[13]

Hope that's useful to someone.