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
Serael
Newbie


Joined: 29 May 2006
Posts: 8

PostPosted: Mon Aug 07, 2006 5:04 pm   

Working with Numbers
 
Hello, everyone.

I'm currently playing a MUD in which potions are refillable, and I'd like to be able to see how many sips I have left in my bottle without using inbuilt skills.

At refill, I'd like this number to get set to 100, and each time I sip health, a line under it to show "You have 99/98/97/etc sips left."

How would I do this?

Any help is appreciated.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Mon Aug 07, 2006 5:26 pm   
 
#TR {refilling message} {numsips=100}
#TR {sipping message} {#ADD numsips -1;#SAY You have @numsips left}
_________________
Discord: Shalimarwildcat
Reply with quote
Serael
Newbie


Joined: 29 May 2006
Posts: 8

PostPosted: Mon Aug 07, 2006 5:35 pm   
 
Thanks!

Another thing, if you can help out...

Is there a way to colorize #say/#echo/#show output?
Reply with quote
saet
Apprentice


Joined: 12 Jun 2006
Posts: 106

PostPosted: Mon Aug 07, 2006 5:48 pm   
 
You can use %ansi(color)jksjfkljsdl or you can use <color colorname>djkjflsdjl</color>

I suggest reading the %ansi help for all your options. Now with <color> tags the syntax checker will bug out on it, but it works fine.
Reply with quote
Serael
Newbie


Joined: 29 May 2006
Posts: 8

PostPosted: Mon Aug 07, 2006 6:27 pm   
 
Thanks again!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Aug 08, 2006 1:16 am   
 
Did the color info in the help get cleaned up? %ansi()'s help entry seems centered around #COLOR or #CW, whichever is the one with the color chart and explanation of how the numbers work.
_________________
EDIT: I didn't like my old signature
Reply with quote
saet
Apprentice


Joined: 12 Jun 2006
Posts: 106

PostPosted: Tue Aug 08, 2006 1:28 am   
 
I don't know. I never use %ansi, that's why I suggested the help file. Prefer <color> much more, because you can use more color names.
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