Help - Search - Members - Calendar
Full Version: Custom Prompt
Achaea's Forums > Everything Achaea > The Golden Dais of Creation
Firey
Can we please have this, despite how Imperian already got it? For something as trivial as this, it's not really an argument that other games have it... It's like saying we can't have the "jump" emote, because other games have it, too. tongue.gif

QUOTE
4.26 Custom Prompt

In addition to the standard prompts described in HELP PROMPT, you have
the option of specifying your own custom prompt that you would like to
use.

CONFIG PROMPT CUSTOM <text> configures such a prompt. Using any other
CONFIG PROMPT option disables the custom prompt.

The following special sequences are recognized and expanded in the
custom prompt text:

- *h = Your current health.
- *m = Your current mana.
- *e = Your current endurance.
- *w = Your current willpower.

- *H = Your maximum health.
- *M = Your maximum mana.
- *E = Your maximum endurance.
- *W = Your maximum willpower.

- %h = Your current health, shown as percentage.
- %m = Your current mana, shown as percentage.
- %e = Your current endurance, shown as percentage.
- %w = Your current willpower, shown as percentage.

- *i = Information about state (prone, flying, etc.)
- *I = Same as *i, but a space is added at the beginning if the text is
not empty
- *b = Information about your balance and equilibrium.
- *l = Information about your limb balance (Only Monks and Wardancers
use this).

- *n = Your character's name.
- *x = Your current experience (percentage from your current level to
your next one).

- *k = Your current kai (Monks only).
- *d = Your current devotion (Devotion users only).

- *a = Your current attunement (Mages only).
- *s = Your current essence or sanguis (Necromancers and Summoners
only).

- &n = Revert color back to normal.
- &d = Make the following text dark grey.
- &W = Make the following text bright white.
- &r = Make the following text red.
- &g = Make the following text green.
- &y = Make the following text yellow.
- &b = Make the following text blue.
- &m = Make the following text magenta.
- &c = Make the following text cyan.
- &R = Make the following text bright red.
- &G = Make the following text bright green.
- &Y = Make the following text bright yellow.
- &B = Make the following text bright blue.
- &M = Make the following text bright magenta.
- &C = Make the following text bright cyan.

Note that certain special sequences (such as current health/mana)
specify their own color, overriding the one set by these colorisation
sequences.

Specifying any of the special symbols twice (**, &&, %%) will output one
such symbol. Duplicating the symbol is only necessary if the symbol is
followed by a character that would form one of the recognized special
sequences.

Example:

The following custom prompt will create the same result as the regular
prompt:
CONFIG PROMPT CUSTOM H:*h M:*m <*b*I>


See also: HELP PROMPT, HELP SCORE


Thank you very much when you implement this.

-Firey-
Tael
QUOTE (Firey @ Aug 19 2009, 05:46 AM) *
Thank you very much when you implement this.
Soludra
Yes please. Unfortunately this is also going to kill predictable prompt matching. laugh.gif Part of me really wants this though... wacko.gif

EDIT: Oh, and I remember Kunin (tears of polaris guy) saying the Imperian guys wouldn't budge on giving him their prompt code, so it sounds like Achaea might need to derive its own rather than go off of Imperian's.
Metzger
Heh. Watch as people use this, and then die in massive numbers because they no longer match Vadi's prompt trigger.

On a side note, no. Because being able to tell what your xp is without doing SCORE would be tremendously overpowered and would destroy Achaea's combat balance. (Translation: Why not.)
Belus
QUOTE
- *i = Information about state (prone, flying, etc.)
- *I = Same as *i, but a space is added at the beginning if the text is
not empty


I like everything but this. It could restrict a good number of illusion strategies depending on what was included (eg. prone).
Lana
QUOTE (Belus @ Aug 19 2009, 07:39 PM) *
QUOTE
- *i = Information about state (prone, flying, etc.)
- *I = Same as *i, but a space is added at the beginning if the text is
not empty


I like everything but this. It could restrict a good number of illusion strategies depending on what was included (eg. prone).

I'm assuming the quote was copy-pasted directly from Imperian, which already have those things in the prompt. I doubt it was intended that it would come to Achaea (which I very much agree with, keep it out).
Firey
QUOTE (Lana @ Aug 19 2009, 08:03 PM) *
QUOTE (Belus @ Aug 19 2009, 07:39 PM) *
QUOTE
- *i = Information about state (prone, flying, etc.)
- *I = Same as *i, but a space is added at the beginning if the text is
not empty


I like everything but this. It could restrict a good number of illusion strategies depending on what was included (eg. prone).

I'm assuming the quote was copy-pasted directly from Imperian, which already have those things in the prompt. I doubt it was intended that it would come to Achaea (which I very much agree with, keep it out).


Correct!
Citrus
Yes please.
shalishaska
It's not hard to substitute your prompt with whatever you want.
Quoren
That's always the argument, but I don't recognize its validity unless we're discussing something that is really really small. This is a fairly big thing which exists in two other IRE games. Clearly they thought it was a good idea. (So do I.)
shalishaska
QUOTE (Quoren @ Aug 19 2009, 02:52 PM) *
That's always the argument, but I don't recognize its validity unless we're discussing something that is really really small. This is a fairly big thing which exists in two other IRE games. Clearly they thought it was a good idea. (So do I.)


I think coding time should be spent on things that are actually needed, not things that are easily done client-side.
Belus
QUOTE (shalishaska @ Aug 19 2009, 01:42 PM) *
It's not hard to substitute your prompt with whatever you want.

I don't use the flash client much, but doing a prompt substitution on it seems difficult.
shalishaska
QUOTE (Belus @ Aug 19 2009, 02:53 PM) *
QUOTE (shalishaska @ Aug 19 2009, 01:42 PM) *
It's not hard to substitute your prompt with whatever you want.

I don't use the flash client much, but doing a prompt substitution on it seems difficult.


I have no idea how the flash client works, but with any real client it's just a regex trigger and a #sub or a #gag and #echo.
Soludra
QUOTE (shalishaska @ Aug 19 2009, 01:54 PM) *
QUOTE (Belus @ Aug 19 2009, 02:53 PM) *
QUOTE (shalishaska @ Aug 19 2009, 01:42 PM) *
It's not hard to substitute your prompt with whatever you want.

I don't use the flash client much, but doing a prompt substitution on it seems difficult.


I have no idea how the flash client works, but with any real client it's just a regex trigger and a #sub or a #gag and #echo.


True, and doing it client-side would avoid the issues I mentioned about the horrors of creating a prompt omni-trigger. You can already get most of the data on that listing from various ATCP messages, or just plain triggering on other bits of output.

It would be a nice touch, but now I'm more leaning to "cute, but unneeded". unsure.gif
Veldrin
how do you even use that ATCP stuff? I've been looking in the manual and all I've become is just more confused
Irion
QUOTE (shalishaska @ Aug 19 2009, 04:54 PM) *
QUOTE (Belus @ Aug 19 2009, 02:53 PM) *
QUOTE (shalishaska @ Aug 19 2009, 01:42 PM) *
It's not hard to substitute your prompt with whatever you want.

I don't use the flash client much, but doing a prompt substitution on it seems difficult.


I have no idea how the flash client works, but with any real client it's just a regex trigger and a #sub or a #gag and #echo.


You can do all of this with the flash client. It's actually quite nice.
Trevize
This sounds fine.

For prompt triggers, except for systems (which if you want you can deal with the normal prompt), matching would be a breeze. We can just set up some sort of standard... I've always had the idea that if this goes in, I'm going to add a second prompt trigger that matches any line ending in [prompt], and I'll add a plugin that subs it out.
Soludra
QUOTE (Veldrin @ Aug 19 2009, 03:11 PM) *
how do you even use that ATCP stuff? I've been looking in the manual and all I've become is just more confused


Your client needs to support ATCP, either directly (Nexus, Fmud) or indirectly (a third-party plugin for MUSHclient). Nexus and Fmud won't let you do anything with the data, but other clients will; my ATCP plugin for MUSH enables messages based on what other plugins say they want, and it ships off the ATCP data to whatever other scripts want to use it.


QUOTE (Trevize @ Aug 19 2009, 03:40 PM) *
I'm going to add a second prompt trigger that matches any line ending in [prompt]


I always wondered why MUSHclient couldn't just add the \n on instead of replacing IAC EOR/GA with it. We could just match on IAC EOR/GA and it would be a cinch.
Gorlasintan
I don't actually see this being at all useful, actually. :X
Citrus
Seems useful to me. Oh man I'd love to see my XP in my prompt when bashing, or seeing Essence/Karma/Devotion without having to use the command? Specific limb balance? HMEW as a percentage? You could do most of these with clients, but as quickly or easily as this system? No. Would it take a lot of code and time to do? Doubtful since it's already in the other games.
Firey
QUOTE (Soludra @ Aug 19 2009, 11:29 PM) *
QUOTE (shalishaska @ Aug 19 2009, 01:54 PM) *
QUOTE (Belus @ Aug 19 2009, 02:53 PM) *
QUOTE (shalishaska @ Aug 19 2009, 01:42 PM) *
It's not hard to substitute your prompt with whatever you want.

I don't use the flash client much, but doing a prompt substitution on it seems difficult.


I have no idea how the flash client works, but with any real client it's just a regex trigger and a #sub or a #gag and #echo.


True, and doing it client-side would avoid the issues I mentioned about the horrors of creating a prompt omni-trigger. You can already get most of the data on that listing from various ATCP messages, or just plain triggering on other bits of output.


As stated in previous replies, the 'help custom prompt' file was quoted directly from Imperian. Of course, those prompt omni-trigger you were thinking about won't exist, as the only information you would get about your current state, is what you already get, with perhaps added such things as experience, devotion, karma, essence.

QUOTE
"e" you have equilibrium. "x" you have balance.
"b" you are blind. "k" you have ingested a kola nut.
"d" you are deaf. "c" you have a magical cloak up.


I'll add an edited 'help custom prompt' to show what it would contain for Achaea:

QUOTE
4.26 Custom Prompt

In addition to the standard prompts described in HELP PROMPT, you have the option of specifying your own custom prompt that you would like to use.

CONFIG PROMPT CUSTOM <text> configures such a prompt. Using any other
CONFIG PROMPT option disables the custom prompt.

The following special sequences are recognized and expanded in the custom prompt text:

- *h = Your current health.
- *m = Your current mana.
- *e = Your current endurance.
- *w = Your current willpower.

- *H = Your maximum health.
- *M = Your maximum mana.
- *E = Your maximum endurance.
- *W = Your maximum willpower.

- %h = Your current health, shown as percentage.
- %m = Your current mana, shown as percentage.
- %e = Your current endurance, shown as percentage.
- %w = Your current willpower, shown as percentage.

- *i = Information about state (Blind, deaf, kola and cloak)
- *I = Same as *i, but a space is added at the beginning if the text is not empty
- *b = Information about your balance and equilibrium.
- *l = Information about your limb/voice balance (Only Monks and Bards use this).

- *n = Your character's name.
- *x = Your current experience (percentage from your current level to your next one).

- *k = Your current kai (Monks only).
- *d = Your current devotion (Devotion users only).

- *a = Your current open channels (Mages and Priests only).
- *s = Your current essence (Necromancers only).

- &n = Revert color back to normal.
- &d = Make the following text dark grey.
- &W = Make the following text bright white.
- &r = Make the following text red.
- &g = Make the following text green.
- &y = Make the following text yellow.
- &b = Make the following text blue.
- &m = Make the following text magenta.
- &c = Make the following text cyan.
- &R = Make the following text bright red.
- &G = Make the following text bright green.
- &Y = Make the following text bright yellow.
- &B = Make the following text bright blue.
- &M = Make the following text bright magenta.
- &C = Make the following text bright cyan.

Note that certain special sequences (such as current health/mana)
specify their own color, overriding the one set by these colorisation
sequences.

Specifying any of the special symbols twice (**, &&, %%) will output one
such symbol. Duplicating the symbol is only necessary if the symbol is
followed by a character that would form one of the recognized special
sequences.

Example:

The following custom prompt will create the same result as the regular
prompt:
CONFIG PROMPT CUSTOM H:*h M:*m <*b*I>


See also: HELP PROMPT, HELP SCORE
Soludra
QUOTE (Firey @ Aug 20 2009, 05:41 AM) *
those prompt omni-trigger you were thinking about won't exist, as the only information you would get about your current state, is what you already get, with perhaps added such things as experience, devotion, karma, essence.

I'm not really sure what you're saying here. If you want to trigger on the prompt, you need to know what the prompt looks like. If you can put arbitrary characters and data in arbitrary order, it's nigh-impossible to write a trigger that will work for anyone reliably, without also triggering on non-prompt data. This is what I have for the current prompt:

CODE
^(?:\(p\) )?(?:\d+h,? )(?:\d+m,? )?(?:\d+e,? )?(?:\d+w,? )?(?:\d{1,3}\%,? )?c?e?x?k?d?b?(?: Vote)?-



EDIT: Belatedly, I realize you could probably derive a working trigger at runtime by telling it the custom prompt template you passed to CONFIG PROMPT CUSTOM, but...

EDIT 2: And there's more reason to match on the prompt than just to get data from it. It's also useful as a watchdog line, to disable anything that was enabled prior, in case something went wrong. You don't want your triggers to be left in an inconsistent state.
Quoren
He's saying that you won't be able to trigger prone from your prompt.
Soludra
By 'omni' I didn't mean 'get any information', I meant 'match any prompt'. Sorry if that wasn't clear.
Valaria
I want my custom prompt now. Nuff said by me.
Belus
QUOTE (Valaria @ Aug 20 2009, 01:28 PM) *
I want my custom prompt now. Nuff said by me.

Valaria Salt?
Ashen
I want a prompt that will tell me the square root of the number of mobile mobs in the area divided by the number of stationary mobs in the area to the power of the maximum number of mobs in that area under normal circumstances.
Soludra
QUOTE (Ashen @ Aug 20 2009, 09:55 PM) *
I want a prompt that will tell me the square root of the number of mobile mobs in the area divided by the number of stationary mobs in the area to the power of the maximum number of mobs in that area under normal circumstances.


42.
Pentharian
It's an argument against things that distinguish one game has having something special that may be a draw to make you want to try that one. This is a very OOC technical thing that really makes sense for us to have, so I'm listing it.
Ashen
Shouldn't this be closed, then?
Pentharian
Yes.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.