Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Rexxon
Beginner


Joined: 28 Oct 2000
Posts: 24
Location: USA

PostPosted: Wed Dec 04, 2002 9:02 pm   

Using ZMud to color my prompts.
 
My Current prompt:(2 Lines Long)

<1000/1000hp 1000/1000mana 1000/1000move 1000Xp/1000Lv>

(For some reason, My second line won't show in this thread, But it is there.)

<Align:1000 QCurrent:99 QNext:99 Location>

Current Colors I use:
hp:light green, maxhp:dark green
mana:light blue, maxmana:dark blue
move:light yellow, maxmove:dark yellow
exp:light white, Lvl:dark white
align:light cyan, qcurrent:light red
qnext:dark red, location:light white

I currently use my mud's function to color the prompts, But a new mud I play on only allows 5 colors, Which isn't enough. Thus I had to ask: Could someone help walk me through using ZMud to color each variable? And is there a way I can set up a trigger to change the color under certain circumstances, Like being down to 1/4 health (To have it change color, bold, blink, other options)?

Thank you for any help you can give me.

When the world needs a hero...
Rexxon the Mighty.
Reply with quote
moshe_be
Wanderer


Joined: 19 Nov 2002
Posts: 72
Location: Israel

PostPosted: Wed Dec 04, 2002 11:41 pm   
 
I was wondering that too, I think we are playing the same MUD, aardwolf? :)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Dec 04, 2002 11:55 pm   
 
quote:

My Current prompt:(2 Lines Long)

<1000/1000hp 1000/1000mana 1000/1000move 1000Xp/1000Lv>

(For some reason, My second line won't show in this thread, But it is there.)

<Align:1000 QCurrent:99 QNext:99 Location>

Current Colors I use:
hp:light green, maxhp:dark green
mana:light blue, maxmana:dark blue
move:light yellow, maxmove:dark yellow
exp:light white, Lvl:dark white
align:light cyan, qcurrent:light red
qnext:dark red, location:light white

I currently use my mud's function to color the prompts, But a new mud I play on only allows 5 colors, Which isn't enough. Thus I had to ask: Could someone help walk me through using ZMud to color each variable? And is there a way I can set up a trigger to change the color under certain circumstances, Like being down to 1/4 health (To have it change color, bold, blink, other options)?

Thank you for any help you can give me.

When the world needs a hero...
Rexxon the Mighty.




If you are using 6.16 (doesn't it have the default option?), I'd suggest using a #SUB command with a bunch of %ansi() functions wherever you need the color to change (unlike MXP, though, %ansi() doesn't close itself off until the end of the line so you need to issue another %ansi() function when you want to return to original color before the end of the line).

For instance, something like this:

#trigger {~<(%d)/(%d)hp (*)~>} {#sub {~<%ansi(blue,bold)%1%ansi(default)/%ansi(blue)%2%ansi(green,bold)hp %ansi(default)%3~>}}

li'l shmoe of Dragon's Gate MUD
Reply with quote
itsmarty
Novice


Joined: 29 Jan 2002
Posts: 37
Location: USA

PostPosted: Thu Dec 05, 2002 12:53 am   
 
I'd take each section individually, ie. to color '1000/1000hp' as cyan, I would use:

#TRIGGER {(%d)~/(%d)hp} {#CW Cyan}

To make the color depend on how many hitpoints you have I would use (this turns the hitpoint section red when you fall below 1/3rd hp, else cyan):

#TRIGGER {(%d)~/(%d)hp} #IF (%1 < %2/3) {#CW Red} {#CW Cyan}

You need to make the trigger fire on prompt instead of newline under options, which I really hope isn't beta functionality. If so I apologize for brining it up on this board.

Martin
http://mywebpages.comcast.net/itsmarty/

(edit: I didn't see Matt's response when I wrote mine, so I'm not saying I'd use mine instead of his! In fact you're probably better off using his, since I don't play a mud with a prompt like this and only logged into one quickly to test my trigger)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Dec 05, 2002 2:12 am   
 
heh, if prompt triggers were beta functionality, none of us would be able to autologin to our MUDs.

li'l shmoe of Dragon's Gate MUD
Reply with quote
spotlight
Beginner


Joined: 15 Jan 2002
Posts: 27
Location: USA

PostPosted: Thu Dec 05, 2002 7:52 pm   
 
quote:

I was wondering that too, I think we are playing the same MUD, aardwolf? :)





eh a fellow aardwolfer
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net