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
Dyron
Apprentice


Joined: 08 Apr 2004
Posts: 103
Location: USA

PostPosted: Thu Dec 04, 2008 2:05 am   

Sub question maybe?
 
H:99% M:96% E:98% W:64% B:23% XP:67% [csdb eb]

I've got a prompt on my mud like that.. I want to be able to do this though..

H:99% M:96% E:98% W:64% B:23% XP:67% [csdb eb] SB: @variable | PB: @variable 2 | Eating: @variable 3

how would I go about doing that?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Dec 04, 2008 10:36 am   
 
#sub %line SB: @var | PB: @var

etc etc
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Dyron
Apprentice


Joined: 08 Apr 2004
Posts: 103
Location: USA

PostPosted: Thu Dec 04, 2008 6:51 pm   
 
hrmm.. DOn't get what you're saying to do..
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Dec 04, 2008 6:53 pm   
 
I'm saying put that in a trigger on that text and see what happens, and then play with it until you get it working the way you'd like.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Dyron
Apprentice


Joined: 08 Apr 2004
Posts: 103
Location: USA

PostPosted: Thu Dec 04, 2008 8:32 pm   
 
ahh.. that actual command was
#sub {%line SB: @var | PB: @var}

Hrmm. any way to do this without it over riding the muds color codes?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Dec 04, 2008 8:47 pm   
 
Not in zMUD. You'll have to find out what they were, if they vary (say, based on health value - the easiest way to do that is to use %if on the health value, putting the right colour in yourself - trying to extract the ANSI codes from the text stream is more hassle than it's worth) and put them back in with the %ansi function, like:

#sub %ansi(green)@health
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Dyron
Apprentice


Joined: 08 Apr 2004
Posts: 103
Location: USA

PostPosted: Thu Dec 04, 2008 9:49 pm   
 
Ahh darn.. thanks anyway
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