|
Serael Newbie
Joined: 29 May 2006 Posts: 8
|
Posted: 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. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
Serael Newbie
Joined: 29 May 2006 Posts: 8
|
Posted: 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? |
|
|
|
saet Apprentice
Joined: 12 Jun 2006 Posts: 106
|
Posted: 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. |
|
|
|
Serael Newbie
Joined: 29 May 2006 Posts: 8
|
Posted: Mon Aug 07, 2006 6:27 pm |
Thanks again!
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
saet Apprentice
Joined: 12 Jun 2006 Posts: 106
|
Posted: 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.
|
|
|
|
|
|