View Full Version : Quick item effect coding question
MartianXi
June 17th, 2023, 17:36
Just trying to code an effect to change a PC's Strength from whatever it is to 19.
From what I can tell SSTR:19; should do it but it doesn't seem to be working.
LordEntrails
June 17th, 2023, 18:06
Depends on the ruleset... when posting in the generic help forum, please let us know what ruleset.
For D&D 5E, you have to add the effect for the additional strength to be added, not the total you want. And the Strength on the character sheet will not show the change. So, if the character strength is currently 16, add the effect "STR: 3" on the combat tracker. It will be accounted in your rolls (and I think shows in the chat output) but will not show a change on the character sheet.
MartianXi
June 17th, 2023, 18:11
Sorry... 5e Ruleset yes... that's what I've been doing so far and functionally it works. There are third party extensions that use SSTR successfully within the ruleset, so thought it might work. Must be some extra behind the scenes coding involved.
Thanks for the reply...
Zacchaeus
June 17th, 2023, 19:20
In the 5e ruleset the keyword you need is STR and you'll need to calculate the difference to get the correct result. SO if the character's strength is currently 16 then you want STR: 3.
See here for some videos on creating effects https://www.fantasygrounds.com/forums/showthread.php?74212-Updating-5e-effects-videos&p=654177#post654177
And the wiki here https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996642031/5E+Effects+for+Advanced+Automation
Bonkon
June 17th, 2023, 19:29
Good Day MartianXi :)
For 5E there is an Extension that does exactly what you want called Better Combat Effects in the Forge. There is a free version and an upgraded pay version. The free version is here:
https://forge.fantasygrounds.com/shop/items/76/view
I find it an great asset added to my gaming. Hope this helps :)
MartianXi
June 18th, 2023, 00:42
Good Day MartianXi :)
For 5E there is an Extension that does exactly what you want called Better Combat Effects in the Forge. There is a free version and an upgraded pay version. The free version is here:
https://forge.fantasygrounds.com/shop/items/76/view
I find it a great asset added to my gaming. Hope this helps :)
Thanks, I’ll check it out
MartianXi
June 18th, 2023, 02:10
Good Day MartianXi :)
For 5E there is an Extension that does exactly what you want called Better Combat Effects in the Forge. There is a free version and an upgraded pay version. The free version is here:
https://forge.fantasygrounds.com/shop/items/76/view
I find it an great asset added to my gaming. Hope this helps :)
I added the extension, but the dialogue window that pops up spooked me a bit... Says "This is a destructive operation with no undo. Back up your data before you proceed."... don't think I'm brave enough to apply it 2 hours before game time... haha.
I like the looks of the extra options it provides though...
Thanks
Bonkon
June 18th, 2023, 04:13
Good Day MartianXi :)
If I remember correctly the destructive operation was for any things, you had already set there was a possibility of it not working. If you have 2 hours before game, you can test it in a clean game and not affect your live game. :)
Griogre
June 18th, 2023, 18:15
Just a FYI that's for converting a prior version to the current on old characters. As you have never had the prior version on characters its fine. But if it did make you nervious then that's a good reminder you *should* back up your campaigns regularly. :)
The v4.4.0 update for FGU said the same thing, so if you backed up then you are good to go.
MartianXi
June 18th, 2023, 18:30
Good Day MartianXi :)
For 5E there is an Extension that does exactly what you want called Better Combat Effects in the Forge. There is a free version and an upgraded pay version. The free version is here:
https://forge.fantasygrounds.com/shop/items/76/view
I find it an great asset added to my gaming. Hope this helps :)
I added the extension but the effect example I copied isn't working....
The effect coding attached to the belt of giant strength example is [STR:19-X] Which doesn't seem to update the character's strength on the main sheet. Unless X is something I'm supposed to change for another parameter/number?
Does this work for you?
Zacchaeus
June 18th, 2023, 18:57
Effects don't change the abilities on the character sheet; but are taken into account when the character uses the ability for something like an attack, or casts a spell, or make a saving throw. So in your case when the character makes an attack with a melee weapon that uses strength you will see in chat that there is an [EFFCTS +x] where x is the additional ability score bonus they get for having a strength of 19. Same thing will be visible if they make a strength saving throw or use a skill which has strength as its ability modifier.
Griogre
June 18th, 2023, 18:58
Like Zacchaeus says the stat change is not shown on the character sheet.
Keep in mind the way this thing works is you first create the effect on the effect list (or character sheet) and then drop it on the PC on the tracker. When it is dropped the proper strength bonus to add to the character is calculated based on the character's strength. You can't just type the effect on the combat tracker.
LordEntrails
June 18th, 2023, 19:15
One of Mad Nomad's extensions, I think Character Sheet Tweaks, will update the character sheet ability scores based upon combat tracker effects. But otherwise as said by others, the character sheets will not update based upon the effects on the CT.
MartianXi
June 19th, 2023, 00:53
I was trying this extension because of issues with Critically Awesome Essentials, which does swap out all stats/AC/HP on the character sheet for Wildshape forms with the One click druid mod.
It's easy enough to add a STR:5 and boost the PC's strength to 19, but the hope was to have it reflected on the character sheet.
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.