Login
User Name:

Password:



Register

Forgot your password?
I3 and IMC
Dec 26, 2024 3:27 am
By GatewaySysop
Hi - Clean SmaugFuss map/description issue..
Dec 15, 2024 7:29 pm
By Samson
AFKMud 2.2.4
Dec 10, 2024 4:09 pm
By Samson
Ubuntu 22.04.5 LTS
Dec 5, 2024 5:10 pm
By Remcon
SmaugFUSS 1.8/1.9
Nov 29, 2024 11:46 am
By Remcon
LOP 1.6
Author: Remcon
Submitted by: Remcon
SWFOTEFUSS 1.5.1
Author: Various
Submitted by: Samson
SWRFUSS 1.4.1
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.5
Author: Various
Submitted by: Samson
AFKMud 2.2.4
Author: AFKMud Team
Submitted by: Samson
Users Online
DotBot, Google

Members: 0
Guests: 17
Stats
Files
Topics
Posts
Members
Newest Member
495
3,802
19,702
594
Merlin0760

» SmaugMuds » 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 4: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 6: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 6: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 2:32 am   Last edited Jan 8, 2012 2: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 8: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 >>