PDA

View Full Version : 5e Combat stats



Stv
March 25th, 2020, 14:31
An extension for FGC to show dice and damage statistics for 5e Campaigns.
Download the attached file and put it into your FG extensions folder to use.
The extension will show as '5e Battlestats' in the extension list.


By using the extensions slash commands, it will do the following for you :


/stathelp will display the available slash commands for this extension
/statme will display damage, healing and kills for each character and also damage done for each npc
/victims will display a list of what you've killed
/dieresults will display the number of ones and 20's rolled by each character
/crits will display the number of critical hits and fumbles by each character
/heals will display the highest heal and also the overall total heal done by a character
/clearstats will clear the currently stored data, as if Fg had just started
/victims will also take a line of text after the slash command to change the text displayed by the command.

Hopefully this new version is fully working, and will resolve some compatability issues with other extensions.
It *may* work with FGU, but is untested by me.

Feel free to let me know if something isn't working, or if there's a conflict with other extensions you use.


Cheers, Steve.

*Edit* Version 2.1 posted for compatibility with other extensions

damned
March 25th, 2020, 14:44
Nice work Stv!

LordEntrails
March 25th, 2020, 16:14
I like it! I'm going to use it tonight and stun my players :)

Stv
March 25th, 2020, 19:01
Let me know how you get on :)
I have a couple of ideas for additions, but would welcome other feedback also.

Cheers, Steve.

Stv
March 29th, 2020, 12:58
Updated the extension so it tracks damage done from the bad guys as well.
Link is in the 1st post.

Cheers, Steve.

damned
March 29th, 2020, 13:27
Updated the extension so it tracks damage done from the bad guys as well.
Link is in the 1st post.

Cheers, Steve.

A popular request is for dice stats full stop.
How many 20s and how many 1s did Ghandi roll?

Stv
March 29th, 2020, 13:58
I should think I can add something along those lines into the extension without too much trouble. I'll see what I can do.

Cheers, Steve.

LordEntrails
March 30th, 2020, 07:29
*ooh ooh ooh* I'm waiting!

Stv
March 30th, 2020, 13:57
Hopefully I'll get a 1st draft out this week sometime, not promising anything though ;)

Cheers, Steve.

Houndy
March 31st, 2020, 21:42
Loving the idea behind this extension!

I know its not debugged etc but some things I have noticed just in case you wanted to look for FDU :).

For me, the villain bit doesn't appear (Only added today, is the extensions in the first post definitely up to date?)
Also if you attack an enemy that is dying, it counts as a second kill.
Would love the ability to reset the stats at will if possible (for example so I could do stats per encounter, or just leave it and do it for the whole session).

Thank you so much!

Stv
March 31st, 2020, 23:42
Hey Houndy,
The link in the 1st post is the most up to date at the moment.
Not sure why the villains part isn't appearing for you, if any bad guys in the combat tracker have done damage/made kills then they should show up :S
I know abut the double kill count, I'll deal with that at some point (hopefully), in the meantime, don't attack dying enemies :P
And I agree with you regarding the stat count reset.. it's on my todo list :)

Thanks for the feedback.

Cheers, Steve.

Rachael Kunkel
April 1st, 2020, 01:07
What a neat extension, thank you for sharing!

Houndy
April 1st, 2020, 09:35
Hey Houndy,
The link in the 1st post is the most up to date at the moment.
Not sure why the villains part isn't appearing for you, if any bad guys in the combat tracker have done damage/made kills then they should show up :S
I know abut the double kill count, I'll deal with that at some point (hopefully), in the meantime, don't attack dying enemies :P
And I agree with you regarding the stat count reset.. it's on my todo list :)

Thanks for the feedback.

Cheers, Steve.

Thank you Steve,

I have no clue why it wasnt working yesterday. i resintalled the extension (but I really did only install it yesterday anyway) and its now working. Maybe, there was some weird sequence that caused it or some weird state, but I cant recreate it haha. Anyway, its a great little extension :).

Stv
April 1st, 2020, 20:15
New version uploaded with a few improvements.
All details in post #1.

Cheers, Steve.

Stv
April 2nd, 2020, 12:24
Another revised version uploaded, for bugfixes and x-compaibility.

Cheers, Steve.

Houndy
April 2nd, 2020, 12:29
Thank you so much Stv, this is great :D

Stv
April 2nd, 2020, 12:32
Glad you like it :)
Let me know if you find any issues.

Cheers, Steve.

Stv
April 6th, 2020, 19:22
Gaaahhhh!!!!!

New version posted to fix a typo that was throwing errors.

Cheers, Steve.

Dax Doomslayer
April 7th, 2020, 22:56
I'm trying to get this extension to work. I have it activated and it does show that when initially booting into the campaign. However, when I type in the command: /statme nothing happens. I get no error messages or anything indicating it is an illegal '/' command and then showing the list of the slash commands. There's nothing. Would this extension potentially conflict? Usually you would get an error message if that was the case. Any help would be greatly appreciated as I know my players would absolutely love to have this as they are always trash talking how 'unclutch' certain characters are - lol...

Stv
April 7th, 2020, 23:32
Hi Dax,
/statme will show you the stats providing there has been some damage/kills done in the current session. If there has been no 'action' then nothing will be shown.
There is always potential that different extension will conflict, so try running it as the only extension to start with, then add in the extensions you normally use. If one of these then stops the stat extension working, let me know and I'll see if it's possible to work around it.

Hope it works out for you.

Cheers, Steve.

Dax Doomslayer
April 8th, 2020, 04:03
Hi Dax,
/statme will show you the stats providing there has been some damage/kills done in the current session. If there has been no 'action' then nothing will be shown.
There is always potential that different extension will conflict, so try running it as the only extension to start with, then add in the extensions you normally use. If one of these then stops the stat extension working, let me know and I'll see if it's possible to work around it.

Hope it works out for you.

Cheers, Steve.

Ahhh - that would be it then. Thanks Steve. I thought it kept cumulative stats but it is nightly. I just fooled around with it and it works. My players loved it. They asked if there was any way to list who rolls the most criticals and fumbles also. I'm not sure if that's doable but I figured I'd throw that out there. Also, not knowing anything, is there a way to have like a campaign summary (I'm imagining this would be a no way). That's just a couple of ideas. They did absolutely love this though. Bragging rights are always great motivation - lol...Thanks for making this extension!!

LordEntrails
April 8th, 2020, 04:30
There is already a campaign summary. It's stored in your campaign folder and its called chatlog.html :)

Stv
April 8th, 2020, 16:05
Hi Dax,
Glad you found the extension useful.
At the moment, typing /dieresults will also show the number of 1'2 and 20's rolled by players (total of skillchecks, saves, attacks and stat checks).
I may well add critfs/fumbles into the mix at some point also.

And as LordEntrails says, chatlog stores the campaign summary. I'm far too useless to parse that into something useful which is one of the reasons I wrote this extension :P

Cheers, Steve.

Dax Doomslayer
April 8th, 2020, 18:32
Yeah, I was just wondering if it could possibly total the rolls in a cumulative fashion. Looking at the chatlog, I can see why that wouldn't be easy. I wish this type of thing was basic functionality of the program as it does log it but c'est la vie. Criticals and Fumbles added to this would be terrific if you ever get around to doing that. I appreciate your work on this and I hope you are happy to hear that this extension contributes to the trash talking of my players (which can be pretty funny) - lol!!

johnshep
April 26th, 2020, 21:50
can't seem to get it to work, please help

Stv
April 26th, 2020, 23:11
I'm working on an update for this atm.
Can you please elaborate a little on what's not working for you johnshep?....I know in testing with my current group that we've identified some of the newer functions causing issues but I'm hoping I can fix that shortly.

Cheers, Steve.

kilma.ard.venom
May 2nd, 2020, 21:50
Hello Steve!

Possible bug on counting 1's and 20's: 34789

Stv
May 2nd, 2020, 21:58
Hello Steve!


Possible bug on counting 1's and 20's: 34789



Yeah, I've noticed that somethings a bit screwey there. I'm working on a new version at the moment that should hopefully address this.
Thanks for reporting it.

Cheers, Steve.

kilma.ard.venom
May 2nd, 2020, 22:02
Happy to help!
Thank you a lot for this nice-n-fun extension! ^__^

Stv
May 2nd, 2020, 22:24
Hi Kilma,
Can you let me know what other extensions you are running at the same time also please.
It would help a great deal in bug finding and cross-compatability checking.

Cheers, Steve.

kilma.ard.venom
May 2nd, 2020, 22:38
Sure thing!
I'm currently playing The Lost Mines of Phandelver (DnD 5ed) using FGU. Here is the list:

Advanced Effects (https://www.fantasygrounds.com/forums/showthread.php?40833-5E-Advanced-Effects-(items-npcs-characters)&highlight=advanced+effects)
Language Fonts - Wizzards
Weapon Handling (https://www.fantasygrounds.com/forums/showthread.php?47341-Extension-Weapon-Handling-Versatile-and-Offhand-attack)
Combat Stats
Quick Reference Desktop Decals (https://www.fantasygrounds.com/forums/showthread.php?27165-Quick-Reference-Decal)
Sword Coast Adventurer Guide
LAE: expanded options (https://www.fantasygrounds.com/forums/showthread.php?47946-LAE-ExpandedOptions-v1-1-for-5E&highlight=expanded+options)
Message of the Day (https://www.fantasygrounds.com/forums/showthread.php?22369-Message-of-the-Day-%28MOTD%29-Extension)

Also it worked fine on the previous session with the same extensions enabled. I didn't check the exact numbers, but overall it seemed correct.

Stv
May 2nd, 2020, 22:43
Thanks for the information.
Good to know it worked previously too, shows the extension is not totally wrong :)

I'll carry on with my update, hopefully have it done within the week if I get the time.

Thanks again for your quick reply.

Cheers, Steve.

Dax Doomslayer
May 10th, 2020, 17:22
Hi Stv,
I know for certain that this conflicts with the 5E Advantage Display extension at https://www.fantasygrounds.com/forums/showthread.php?57460-5E-Advantage-Display. On the list above from kilma, I can tell you that I've used your extension and had no issues running Language Fonts - Wizards; Weapon Handling and Message of the Day in a previous campaign.
Thanks.

Stv
May 10th, 2020, 17:27
HI Dax, thanks for the info.
Looking at what the Advantage Display extension does, I think it probably overrides one of the same functions that my Stats extension does.
I'm still in the middle of a re-write on the stats extension. Once I've ironed out the (many) issues in it, I'll see if I can make it compatible with the Advantage Display extension.

Cheers, Steve.

Dax Doomslayer
May 10th, 2020, 17:29
Ahhh - cool. Well I'm looking forward to the update with your next extension!! I appreciate your work on this!

tmandeville
May 24th, 2020, 19:43
Great idea. we just had a bad luck with rolling over 40 plus 1's in a 6 hour session so trying to find a good parser to see. I downloaded the ext and put it in the folder but when loading up the program and before loading the game i am not seeing it in the ext list. Is this written for just FG or also for FGU? and if for FGU any assistance trying to load it?

Stv
May 24th, 2020, 21:00
Hi tmandeville,
I have a new version written, which will be pushed to the forum either today or tommorrow.
I'll get post #1 updated when I do with full instructions for use, and what you should be looking for in the extensions list to enable it.

Cheers, Steve.

Dax Doomslayer
May 24th, 2020, 21:15
This sounds good Stv. Were you able to resolve the conflict with the extension that I mentioned?

Stv
May 24th, 2020, 21:39
I hope so Dax :D
I'm posting the new version soon, maybe you can be my guinea pig and try it for me :)

Cheers, Steve.

Stv
May 24th, 2020, 21:54
New version of the extension has been uploaded to the 1st post of this thread.
Some new functionality has been added, and hopefully ironed out some bugs in the coding.

Cheers, Steve.

dotsoncs
May 25th, 2020, 21:26
Another couple of incompatibilities - not complaining, just sharing my testing. The /dieresults failed to report any rolls when I had the following enabled.

5e - Halfing Luck
5e - Automatic Mirror Image

I'm sure both of these are trapping for 1s and/or 20s.

Stv
May 25th, 2020, 21:35
Thanks for the heads up dotsoncs.
I'll see if there's anything I can do about it.

Cheers, Steve.

Stv
May 25th, 2020, 21:45
I have neither of those extension available to me, as they are a paid resource on the DM's Guild unfortunately.

Did the /dieresults show nothing at all when you invoked it, or did it just miss the 1's ?

Cheers, Steve.

dotsoncs
May 25th, 2020, 22:49
It missed both the 1s and 20s. I'm guessing the Mirror Image spell is trapping the 20s because of the spell text:

"Each time a creature targets you with an attack during the spell's duration, roll a d20 to determine whether the attach instead targets one of your duplicates"

Stv
May 25th, 2020, 22:55
That's odd really, all my coding also calls the previous functions so it *should" all still work ok.
I'll ping a message to the other author and see if he has any ideas, but I can't promise we can get the extensions to work together.

Cheers, Steve.

kentmccullough
May 26th, 2020, 18:15
We'll get them working together!

Stv
May 26th, 2020, 21:45
New version attached to post #1, should now work alongside
5e - Halfing Luck.

Thanks to Kentmccullough for helping with that :)

ThingsCouldGetDicey
August 6th, 2020, 17:53
can you put this on dms guild as a pay as you want type thing so i can get alerts on updates ty :)

Stv
August 6th, 2020, 19:14
I may well do that, but this seems to be throwing a few odd errors for my group that I can't track down at the moment. Once I can fix it I will post it there as well as on the FG forums.

Cheers, Steve.

LordEntrails
August 6th, 2020, 22:48
Stv, be aware... if chose to move or post this to the DMsGuild you need to be aware of the implications to the CCA and how that will effect you intellectual property rights. Including that you will no longer be able to distribute this anywhere else, ever. And that you may be granting WotC and all other DMsG authors to use your code without permission or attribution.

damned
August 6th, 2020, 23:51
DMsGuild doesnt send notifications for updated community content.

toadmar
August 7th, 2020, 03:08
love your ext.
can you add stats for the other numbers rolled 1 - one, 3 two's, 5 threes, 3 fours or ones 1% two's 3% threes 6% and so on.

Stv
August 7th, 2020, 07:20
I add that stuff in to the next update @toadmar.

Cheers, Steve.

Dax Doomslayer
August 7th, 2020, 22:35
Oooo that will be very nice and helpful Stv!! :)

toadmar
August 12th, 2020, 05:03
Thank you

Stv
August 12th, 2020, 14:14
Don't hold your breath for a new update though guys, I'm in the middle of something else atm, but I *will* get around to it at some point.

Cheers, Steve.

Dax Doomslayer
August 12th, 2020, 16:13
Totally understand Steve! This ain't no payin' gig - lol!! I appreciate you adding some functionality though. My players look forward to the end of night tallies...

Stv
August 22nd, 2020, 17:46
Stv, be aware... if chose to move or post this to the DMsGuild you need to be aware of the implications to the CCA and how that will effect you intellectual property rights. Including that you will no longer be able to distribute this anywhere else, ever. And that you may be granting WotC and all other DMsG authors to use your code without permission or attribution.

I've only just seen this post LordEntrails, don't know how I missed it.
From what you've written I think this extension can stay firmly in the FG message boards :)
Thanks for the heads up.

Cheers, Steve.

Rades
August 22nd, 2020, 19:59
This extension seems very fun. Would there be a way to include some other combat stats (in addition to Healing done) like Damage Dealt, and Damage Received? These both seem like stats players would be entertained knowing.

Stv
August 22nd, 2020, 21:15
Hi Rades,
I'm pretty sure I catered for damage dealt in the extension already. When I get around to looking at this extension again, I should be able to add in damage received I think.

Cheers, Steve.

Rades
August 23rd, 2020, 04:11
Oh I see it now, my bad! I missed that it was included in the statme command, and only noticed heals had its own separate command. :) Thanks!

Stv
August 23rd, 2020, 08:54
Awesome, thought I was going mad for a moment :P

Cheers, Steve.

daggertx
October 10th, 2020, 22:31
For those that care, this mostly works for 2e in Unity, just the Crits/Fumbles is not working...

Stv
October 11th, 2020, 14:41
This on is on my radar for a rewrite at some point, hopefully it'll look a bit better, and the bugs will get squashed.

@Daggertx, nice to know it works in 2e also, thanks for the info.

Cheers, Steve.