Junior Member
Join Date: Jun 2018
Posts: 4
|
Hi all,
I'm trying to create a ring that gives a general proficiency bonus to a char. But i have tried to find out the coding behind it but i'm not too great in programming, could someone provide me the code to insert so the bonus is Added to all the stats where proficiency comes into play ? Thanks in advance, Imastir |
#1 |
Senior Member
Join Date: May 2016
Posts: 608
|
This is a head scratcher.
It should be as easy as: Code:
hero.child[ProfBonus].field[Bonus].value += 1 You can try a workaround like: Timing - post-attributes/10000 Code:
doneif (field[gIsEquip].value = 0) doneif (field[gIsAttuned].value = 0) foreach pick in hero where "Helper.Proficient" eachpick.field[Bonus].value += 1 nexteach |
#2 |
Senior Member
Join Date: May 2016
Posts: 608
|
Followup, I figured out you can manipulate the end total directly, just not the way that makes the most sense:
Post-levels/10000 timing: Code:
doneif (field[gIsEquip].value = 0) doneif (field[gIsAttuned].value = 0) ~ add 1 to total proficiency bonus. hero.child[ProfBonus].field[tProfBonus].value += 1 |
#3 |
Junior Member
Join Date: Jun 2018
Posts: 4
|
Wow, thanks for the quick response, the last code seems to work
Saves, abilities, spell casting,... all seem to change correctly. Thanks for that, wouldn't have figured it out by myself Ty, Imastir |
#4 |
Senior Member
Lone Wolf Staff
Join Date: Jun 2019
Posts: 166
|
Awesome! Thanks Dungeonguru!
|
#5 |
Senior Member
Join Date: Sep 2017
Posts: 600
|
Guru, I'm curious how your code will interact with stuff like Jack of All Trades and Remarkable Athlete. Granted, I'm not sure OP has thought about that either. Just something to mull over.
Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub. Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts! |
#6 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
One way to find out is to play with the Proficincy adjustment added by ShadowChemosh.
Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#7 |
Senior Member
Join Date: May 2016
Posts: 608
|
@Fenris477: Jack of all Trades & Remarkable Athlete add the tag Helper.ProfHalf to the skills at post-level 10000. The timing of my example is set at the same time, so I suspect it would be better to run the proficiency adjustment earlier than Post-Level 10000.
@Mergon: I forget about the adjustments, but I see ShadowChemosh put his in during the First timing phase. ALSO, as a disclaimer, I don't use the community files so I forget to look at them unless I hit something I can't figure out after fooling with it for a while. End of day, should probably run it when ShadowChemosh puts it in timing although in my mind there are some reasons to run it post-levels (maybe at 5000). Last edited by dungeonguru; September 26th, 2019 at 06:19 AM. Reason: Edited timing statement for clarification |
#8 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
<smile>
Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#9 |
|
|