|
Caled Sorcerer
Joined: 21 Oct 2000 Posts: 821 Location: Australia
|
Posted: Tue Nov 06, 2007 9:08 am
Qu. regarding #SUBS (possible feature suggestion) |
#TR {Trig pattern} {#SUBS {%trigger}}
This should make no change at all, but it discards the ansi colours. I would really love it if it could conserve them. I don't know if there is a way to make it keep them. The reason I ask is..
H:3223|3157 100|100 100% Exp:56 <csdb> <eb> <lr> < 08:54:24:546 >
My prompt. I use a third-party hook program to create this prompt, and it is able to keep the ansi colours as sent by my mud. These colours change depending on the levels of each value, so it is not simple (nor speed efficient) to simulate this with a script in cmud. (Aetolia).
I have a prompt trig of course, but I do not use a #SUBS on it, I just capture a few variables from it. I would like to be able to do..
Code: |
<trigger priority="9770" prompt="true" id="977">
<pattern><![CDATA[H:%d~|%d %d~|%d %d~% Exp:%d ~<(%x)~> ~<(%x)~> ~<(%x)~>]]></pattern>
<value>pstats=%1
eqbal=%2
armb=%3
#SUBS {%trigger ~<@additionalstats~>}</value>
</trigger> |
To create the prompt:
H:3223|3157 100|100 100% Exp:56 <csdb> <eb> <lr> <1123 PbHetc> < 08:59:13:421 >
(That is, add useful things to it from my curing system, or wherever I like, ).
What I will end up doing, is discarding the colours that come with the prompt, and subbing the whole thing with my own colours. Its a biggish job though, and its seems messy. It'd be such a neat and simple way to do it if only the colours could carry over.
I'm sure that would be popular..? |
|
_________________ Athlon 64 3200+
Win XP Pro x64 |
|
|
|
Caled Sorcerer
Joined: 21 Oct 2000 Posts: 821 Location: Australia
|
Posted: Tue Nov 06, 2007 10:08 am |
Like an idiot, I completely ignored the existence of #PSUB with all of this. That is to say, I forgot it existed.
While I still think an option for the preservation of ansi colour codes would be kinda nice, it doesn't seem so useful now that I think about it, with PSUB in mind.3
|
|
_________________ Athlon 64 3200+
Win XP Pro x64 |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|