|
Dyron Apprentice
Joined: 08 Apr 2004 Posts: 103 Location: USA
|
Posted: 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? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Dec 04, 2008 10:36 am |
#sub %line SB: @var | PB: @var
etc etc |
|
|
|
Dyron Apprentice
Joined: 08 Apr 2004 Posts: 103 Location: USA
|
Posted: Thu Dec 04, 2008 6:51 pm |
hrmm.. DOn't get what you're saying to do..
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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.
|
|
|
|
Dyron Apprentice
Joined: 08 Apr 2004 Posts: 103 Location: USA
|
Posted: 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? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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 |
|
|
|
Dyron Apprentice
Joined: 08 Apr 2004 Posts: 103 Location: USA
|
Posted: Thu Dec 04, 2008 9:49 pm |
Ahh darn.. thanks anyway
|
|
|
|
|
|