egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CofD Resource Tracker

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Steamwolf
Voice


Joined: 08 May 2017
Posts: 8

PostPosted: Mon May 08, 2017 5:58 pm    Post subject: CofD Resource Tracker Reply with quote

Hello! Smile

As with my previous post, please bear with my incredible lack of experience. I've tried searching for an answer to this, and I've tried muscling through tutorials on tcl, but I have a long way to go before I even begin to understand what I'm doing.

I've recently started up my very first private irc server to run a game (Chronicles of Darkness) with some friends, which is great fun and a total adventure in learning technical things I've never thought I'd be able to do. That said, I have a few resources (Willpower and Fuel) that I would very much like my Eggdrop bot to track for me in a file I can manipulate manually if need be, but I simply don't have the experience with tcl required to do so.

If anyone could possibly help me out, I'd be most appreciative.

Ultimately, this is what I'm looking to accomplish (I'm sorry if this is a big request, I'm simply not sure where else to turn)

Willpower & Fuel tracking script

For each registered Handle, stored in a file I can manipulate manually:

Store Variables

- Handle.wp
- Handle.wpmax
- Handle.fuel
- Handle.fuelmax

Commands sent to bot in a private message by me, only if I’ve identified to my Handle:

getwp Handle
- Replies with “Handle.wp currently #”

setwp Handle #
- Sets Handle.wp to #
- Replies with “Handle.wp set to #”

getwpmax Handle
- Replies with “Handle.wpmax currently #”

setwpmax Handle #
- Sets Handle.wpmax to #
- Replies with “Handle.wpmax set to #”

getfuel Handle
- Replies with “Handle.fuel currently #”

setfuel Handle #
- Sets Handle.fuel to #
- Replies with “Handle.fuel set to #

getfuelmax Handle
- Replies with “Handle.fuelmax currently #”

setfuelmax Handle #
- Sets Handle.fuelmax to #
- Replies with “Handle.fuelmax set to #”

Commands sent by users in public channel:

!wp # Explanation
- Checks that something is written as an explanation
- - If not, returns “((You must explain your reason for spending Willpower))”
- - - (Regardless if they’re Identified or not)
- - - (In text on the channel)
- Decreases Handle.wp by #
- - Only if an explanation exists
- - Only if user is Identified to Handle
- - - Otherwise, send a Notice to Handle that they must Ident first
- Sends a Notice to Handle telling them the current value of Handle.wp
- - Only if an explanation exists
- - Only if user is Identified to Handle
- - Otherwise, send a Notice to Handle that they must Ident first

!getwp / !getw / !gw / !gwp
- Sends a Notice to Handle telling them the current value of Handle.wp
- - Only if user is Identified to Handle
- - - Otherwise, send a Notice to Handle that they must Ident first

!fuel # Explanation
- Checks that something is written as an explanation
- - If not, returns “((You must explain your reason for spending Fuel))”
- - - In text on the channel
- - - Regardless if they’re Identified or not
Decreases Handle.wp by #
- Only if an explanation exists
- Only if user is Identified to Handle
- - Otherwise, send a Notice to Handle that they must Ident first
Sends a Notice to Handle telling them the current value of Handle.wp
- Only if an explanation exists
- Only if user is Identified to Handle
- - Otherwise, send a Notice to Handle that they must Ident first

!getfuel / !getf / !gf / !gfuel
- Sends a Notice to Handle telling them the current value of Handle.fuel
- - Only if user is Identified to Handle
- - - Otherwise, send a Notice to Handle that they must Ident first

Event triggered automatically at 8:00 AM, Eastern Standard Time
- Increase the value of each Handle.wp by 1
- - Only if Handle.wp is less than Handle.wpmax
Back to top
View user's profile Send private message
Steamwolf
Voice


Joined: 08 May 2017
Posts: 8

PostPosted: Mon May 15, 2017 1:03 pm    Post subject: Reply with quote

A script has been made! Thank you willyw.
Back to top
View user's profile Send private message
caesar
Ass Kicker


Joined: 14 Oct 2001
Posts: 3403
Location: Area 51

PostPosted: Tue May 16, 2017 12:46 am    Post subject: Reply with quote

Can you share the code so others have the game? Smile
_________________
You may say anything about me, but don't misspell my name.
Back to top
View user's profile Send private message
willyw
Owner


Joined: 15 Jan 2009
Posts: 925

PostPosted: Tue May 16, 2017 8:31 am    Post subject: Reply with quote

caesar wrote:
Can you share the code so others have the game? Smile


No... it's a mess. heheeh

We "got it to work" and stopped working on it, so it is more like a first draft.
There's a lot of room to clean it up and improve it.

But I'll pm you here about it.
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
Steamwolf
Voice


Joined: 08 May 2017
Posts: 8

PostPosted: Tue May 16, 2017 8:33 am    Post subject: Reply with quote

Well, it does everything I needed it to do, and it does it well. Thanks again, willyw! Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber