Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
I am trying to compile smaugfuss1.8
May 20, 2013, 11:18 am
By Tyro
Resets not working.
May 19, 2013, 5:57 am
By Remcon
Compendium of bugs in SmaugFUSS
May 18, 2013, 8:42 am
By Remcon
SIGCONT?
May 13, 2013, 9:49 am
By Aurin
Try/Catch function?
May 10, 2013, 10:36 am
By Zeno
QSF Portal
Author: QSF Portal Team
Submitted by: Samson
Raspberry Pi Diff File
Author: Dretzile
Submitted by: Dretzile
Replacement mp_*_passage funcs
Author: Andril
Submitted by: Andril
g++ 4.6 unused variables patch
Author: diff
Submitted by: Andril
LOP 1.43
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Google, Baiduspider

Members: 0
Guests: 22
Stats
Files
Topics
Posts
Members
Newest Member
440
3,570
18,318
607
StanleyLM
Today's Birthdays
There are no member birthdays today.
Related Links
Smaug Building Institute
» 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
Posts181
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
Posts143
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
Posts252
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 >>

 
Contact Us