Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Bing

Members: 0
Guests: 8
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWFOTE FUSS » Looking for a snippet for an ...
Forum Rules | Mark all | Recent Posts

Looking for a snippet for an ooc meter in prompt
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jan 5, 2012, 2:53 pm
Go to the top of the page
Go to the bottom of the page

Xylam
Fledgling
GroupMembers
Posts3
JoinedJan 4, 2012

Hello, I am looking for a snippet for an ooc meter. Would look like [OOC: ||||||]. And every
time you use ooc or osay it goes down like this [OOC: |||---]. Any help is appreciated. Thanks
to Zeno for the help he gave me on Titles.
       
Post is unread #2 Jan 5, 2012, 4:29 pm
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

Just a thought, but create a meter field for players, then call ch->meter in ooc and osay, and make your adjustments to ch->meter wherever you want it adjusted.

i.e.
I use ooc to talk, it drops it by 1 bar out of the 6, so in the ooc command, have it update ch->meter to decrease by 1 and update the meter accordingly.

Could probably make a simple struct to hold the 6 meter stages and have it associated to a value.

If this isn't what you were looking for, sorry. Best I could think of off the top of my head. There's probably a better way to implement something like that.
       
Post is unread #3 Jan 5, 2012, 4:40 pm
Go to the top of the page
Go to the bottom of the page

Walldo
Fledgling
GroupMembers
Posts6
JoinedMay 25, 2009

To the best of my knowledge you won't be able to find a snippet for it but Aurin's suggestion is how you want to do it.
       
Post is unread #4 Jan 8, 2012, 12:32 am   Last edited Jan 8, 2012, 12:33 am by Andril
Go to the top of the page
Go to the bottom of the page

Andril
Magician
GroupMembers
Posts147
JoinedJun 9, 2009

Just don't forget to replenish their ooc channel uses. Would be pretty upsetting to only get to use that channel 6 times each log in.

And that's assuming you don't save the current value to their player file and reset it to max each time.
       
Post is unread #5 Mar 10, 2012, 6:04 am
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003

Alternatively, you could create that same field on the character and then an additional one in the command table. You could then define a range, say 1-100 for simplicity. Then set the "weight" certain OOC commands have. That would give more flexibility. The replenishment code could attach nicely into the general update code that also replenishes health and such.
       
Pages:<< prev 1 next >>