View previous topic :: View next topic |
Author |
Message |
Steamwolf Voice
Joined: 08 May 2017 Posts: 8
|
Posted: Mon May 08, 2017 5:58 pm Post subject: CofD Resource Tracker |
|
|
Hello!
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 |
|
 |
Steamwolf Voice
Joined: 08 May 2017 Posts: 8
|
Posted: Mon May 15, 2017 1:03 pm Post subject: |
|
|
A script has been made! Thank you willyw. |
|
Back to top |
|
 |
caesar Ass Kicker

Joined: 14 Oct 2001 Posts: 3450 Location: Area 51
|
Posted: Tue May 16, 2017 12:46 am Post subject: |
|
|
Can you share the code so others have the game?  _________________ You may say anything about me, but at least don't misspell my name. xD |
|
Back to top |
|
 |
willyw Owner
Joined: 15 Jan 2009 Posts: 957
|
Posted: Tue May 16, 2017 8:31 am Post subject: |
|
|
caesar wrote: | Can you share the code so others have the game?  |
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 |
|
 |
Steamwolf Voice
Joined: 08 May 2017 Posts: 8
|
Posted: Tue May 16, 2017 8:33 am Post subject: |
|
|
Well, it does everything I needed it to do, and it does it well. Thanks again, willyw!  |
|
Back to top |
|
 |
|
|
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
|
|