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
Silanus
Beginner


Joined: 25 Nov 2005
Posts: 13

PostPosted: Sun Dec 04, 2005 1:01 am   

Capturing and Coloring Prompt info.
 
I’m sure this is one of those questions I could have researched better to answer myself but I tried and could not find it.

I want to color a part of my prompt to black (so it won’t show up on my display) and capture it to a variable and display that on my customized status bar. I already know how to display variable information there but am having trouble capturing the variable information and coloring it.

Here’s what I have.
< prompt stuff blah blah > 234#gold 134#silv

I’m trying to use:
#TRIGGER {(%d)#gold (%d)#silv} {#VAR %1 gold; #VAR %2 silv; #CW black}

But as you know, it’s not working.
Am I even going about this the right way?

My only code experience is with the stuff I’ve managed to hack together for Zmud. Can you recommend a good hard print book to help with some coding? Is this similar to C or some other code language? The help files are great but some things are confusing, like should I use #PCOL or #CW for the above problem? Having no code knowledge to draw from make those help files indecipherable for me.

Thanks again.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Dec 04, 2005 2:39 am   
 
Cple of problems like backwards variable assignments etc and you can use PSUB! and other hacks :p

#TRIGGER {(&%d{gold}~#gold &%d{silv}~#silv)} {#Psub {""} %x1} "" {prompt|nocr}


Edit: TonDiening added the # to #Psub
_________________
Zmud Support Library
Zmud Knowledge Base
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