Login    Register

Prompts

Got a guide to help out other players? Share it!
  • Author
    Message

Prompts

Postby Zax » Sat Aug 12, 2017 6:29 pm

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.
Zax...
Zax
 
Posts: 138
Joined: Fri Oct 02, 2015 6:35 am
Location: Western USA

Re: Prompts

Postby Dell » Sat Aug 19, 2017 9:43 pm

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
Dell
 
Posts: 22
Joined: Tue Aug 08, 2017 11:20 am

Re: Prompts

Postby Vertexvortex » Sun Aug 20, 2017 4:11 am

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 *:*>
Vertexvortex
 
Posts: 1
Joined: Sat Aug 19, 2017 1:02 pm

Re: Prompts

Postby George74 » Mon Aug 28, 2017 10:52 am

Hello. I m using this prompt and it is fine for all my characters:
prompt %h[%H] %m[%M] %v[%V]~%x~%C>
George74
 
Posts: 19
Joined: Mon Apr 27, 2015 11:08 am
Location: Greece

Re: Prompts

Postby faet » Mon Aug 28, 2017 1:42 pm

Heres my prompt

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

< 1000/1000hp 1000/1000mp 1000/1000mv 1000000000gp -249999fl badly wounded >
faet
 
Posts: 1
Joined: Mon Aug 28, 2017 1:35 pm

Re: Prompts

Postby Tyme » Mon Aug 28, 2017 10:30 pm

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!
Tyme
 
Posts: 6
Joined: Wed Jun 28, 2017 7:50 am

Re: Prompts

Postby Mercedes » Tue Jan 21, 2020 12:25 am

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
--echo()


--prompt reading follows
toon = matches[2]

if (matches[3] ~= toonalign) then
  echo("\nWATCH OUT FOR ALIGNMENT CHANGE\n")
end
toonalign = matches[3]


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

if (toonhp > tonumber(matches[5])) then
  local toonhploss = toonhp - tonumber(matches[5])
  echo("\nI lost "..toonhploss.." hps.")
end
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
  echo("\nTICK!")
  if ticktimer then
    killTimer(ticktimer)
  end
  ticktimer = tempTimer(55, [[echo("Tick in roughly 5 seconds.")]])
end
mudtime = tonumber(matches[11])
mudampm = matches[12]

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


Hope that's useful to someone.
Mercedes
 
Posts: 5
Joined: Sat Jan 18, 2020 5:19 am

Return to Player Guides

Who is online

Users browsing this forum: No registered users and 4 guests

cron