PDA

View Full Version : 5E Extension - Change an NPC's damage output with the mouse wheel from the CT



fxg42
June 14th, 2021, 00:17
Inspired by Alphastream's article How to Challenge Players? Just Add Damage! (https://alphastream.org/index.php/2021/06/10/how-to-challenge-players-just-add-damage/), this a very small extension that allows the DM to change an NPC's "offense" abilities by hovering over them in the CT entry's and then scrolling up or down.

How to

On the combat tracker, while holding the Ctrl key and hovering an Offence ability, use the mouse
wheel to increment or decrement either:
- the attack bonus;
- the number of damage or healing dice;
- the save DC;
- the recharge dice.

Hold the Alt key and use the mouse wheel to cycle through:
- the damage and healing die type (d4, d6, d8, d10 or d12);
- the saving throw's ability (str, dex, con, int, wis, cha).

Automatic cantrip increment for spellcasters

When added to the CT, NPC's with the "Spellcasting" trait will have their cantrip's DMG and HEAL die expressions automatically incremented based on their spellcasting level. Dice count is incremented once if 5th-level or above, twice starting at 11th-level and three times after 17th.

Links
- Forge: https://forge.fantasygrounds.com/shop/items/198/view
- Source code: https://github.com/fxg42/npc-scroll
- Issue tracker: https://github.com/fxg42/npc-scroll/issues
- Releases: https://github.com/fxg42/npc-scroll/releases

--
Lot's of "firsts" with this... First time posting anything here, first extension ever and even first time writing Lua! :) Any helpful feedback is welcomed!

SirMotte
June 14th, 2021, 00:21
Hey pal, thanks for contributing! This looks promising, will give it a try during the week.
Cheers

Zacchaeus
June 14th, 2021, 00:33
Well done. Thanks for sharing.

MeAndUnique
June 14th, 2021, 01:38
Really great work, even more so for being your first foray into FG extensions!

damned
June 14th, 2021, 02:16
Nice one fxg42.

fxg42
June 15th, 2021, 02:00
Thank you all for the kind words and warm welcome!

spoonhead
June 15th, 2021, 07:27
This is so great for NPC spell casters where their cantrip damage should higher due to their level.

Great but so simple.

fxg42
June 15th, 2021, 13:58
This is so great for NPC spell casters where their cantrip damage should higher due to their level.

Thanks! That's a good idea... Since the Spellcasting trait usually states the spellcaster level, it might be possible to automate the damage bump to cantrips...

BlazingAzureCrow
June 17th, 2021, 23:48
Would it be possible to expand this out to other parts of effects, like HEAL effect, damage buffs, etc?

fxg42
June 18th, 2021, 00:14
Would it be possible to expand this out to other parts of effects, like HEAL effect, damage buffs, etc?

Absolutely! I'll try to find NPCs from the monster manual with the correct traits. Do you already have an example monster in mind?

BlazingAzureCrow
June 18th, 2021, 00:17
Pretty much anything with healing spells or whatnot on the combat tracker would have this~ I randomly pulled the Acolyte onto the CT when seeing if it would work, for example. Its cure wounds and bless were what made me think of it. This would be useful for creatures with higher spell slots, auto-generated warlocks, etc that only have the base amount of healing or what-have-you parse in when their spells are filled out.

fxg42
June 20th, 2021, 23:28
Updated first post with new version information :)

fxg42
July 1st, 2021, 02:31
This is so great for NPC spell casters where their cantrip damage should higher due to their level.

Just added a feature that automatically increments cantrip damage when adding a spellcaster to the CT :)

fxg42
August 25th, 2021, 14:08
Added the extension to the Forge and updated the first post:
https://forge.fantasygrounds.com/shop/items/198/view

rocketvaultgames
November 7th, 2023, 19:45
The cantrip incrementing feature does not seem to be working. I just tried it with the Monster Manual Archmage (5e) as the only extension loaded: CT Scroll v0.4. Control/Alt + Mousewheel work correctly.

Thank you.

daddyogreman
November 8th, 2023, 05:30
Nice!
If you're interested there's an unofficial developers guild discord server (https://discord.com/invite/uhWHka36) that quite a few of us are on to help each other out. Always happy to have more.

fxg42
November 10th, 2023, 18:04
The cantrip incrementing feature does not seem to be working.

Hi! Thank you for the bug report! I've just published the fix in the forge (v0.4.1).

It looks like in the past 2 years (!) FG changed some functions I was using to hook into its behaviour :)

Thanks again!

fxg42
November 10th, 2023, 18:05
Nice!
If you're interested there's an unofficial developers guild discord server (https://discord.com/invite/uhWHka36) that quite a few of us are on to help each other out. Always happy to have more.

Sounds awesome! Thanks!

rocketvaultgames
November 10th, 2023, 18:28
Sorry to say, it still doesn't seem to be working on my end...

Screenshot:

https://www.dropbox.com/scl/fi/5fhz16srrg0q8k36bl7ds/Screenshot-2023-11-10-122625.png?rlkey=nv16zrckdv5ua8axfrv0lh4z7&dl=0

fxg42
November 10th, 2023, 21:30
Sorry to say, it still doesn't seem to be working on my end...

All good now! Thanks for the help in fixing all this :)

rocketvaultgames
November 13th, 2023, 03:56
Sorry to be a pain, but the new version (which is working correctly) seems to be preventing GEONE's Old Resistance Effects from functioning (https://forge.fantasygrounds.com/shop/items/742/view).

I'm not terribly surprised as I believe they are both parsing NPCs as they are being added to the CT. Is there any way you can make CT-Scroll compatible?

Thanks much!