Senior Member
Join Date: Jul 2012
Location: Texas
Posts: 707
|
Quote:
Phase:Post-attributes Priority: 10000 Index: 3 ~Modifier to account for additional Intelligence~~ hero.child[aINT].field[aFinalVal].value += round(field[kUserPts].value, 0, -1) D&D> Pre 1e White Box Edition, 1e, 2e, 3.5 Currently, Set in the World of Greyhawk (The first, longest running and Best Campaign Setting) Software>Extensive use of all forms of MS Products, Visual Studio 2012, DAZ 3d, AutoCAD, Adobe Products. Gaming Specific>Campaign Cartographer, D20 Pro Alpha & BattleGrounds Beta Tester, World Builder, Dungeon Crafter, LWD Hero Lab, Realm Works, Inkwell Ideas Citybuilder & Dungeon Builder, Auto-Realm, Dundjinni Contributing Writer for TSR, WOC, & Canonfire |
|
#31 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
PS. I think you must be trying to add these two numbers together, which you can do with a variable: Code:
var bonus as number bonus = hero.child[aINT].field[aFinalVal].value + round(field[kUserPts].value, 0, -1) Last edited by Sendric; September 21st, 2018 at 09:31 AM. |
|
#32 |
Senior Member
Join Date: Jul 2012
Location: Texas
Posts: 707
|
I presume the KUserPts?
We should be taking the total that the Intelligence attribute (instead of just the modifier by checking the box) lets say 12, and adding the Points in the Secret Sign Skill points assigned, lets say 6, totaling that number and dividing it by 2 to account for cross class skill to get the modifier. (12+6)/2=9 ranks in the skill D&D> Pre 1e White Box Edition, 1e, 2e, 3.5 Currently, Set in the World of Greyhawk (The first, longest running and Best Campaign Setting) Software>Extensive use of all forms of MS Products, Visual Studio 2012, DAZ 3d, AutoCAD, Adobe Products. Gaming Specific>Campaign Cartographer, D20 Pro Alpha & BattleGrounds Beta Tester, World Builder, Dungeon Crafter, LWD Hero Lab, Realm Works, Inkwell Ideas Citybuilder & Dungeon Builder, Auto-Realm, Dundjinni Contributing Writer for TSR, WOC, & Canonfire |
#33 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
Code:
~Modifier to account for additional Intelligence~~ var bonus as number bonus = hero.child[aINT].field[aFinalVal].value + round(field[kUserRanks].value, 0, -1) field[Bonus].value += bonus |
|
#34 |
Senior Member
Join Date: Jul 2012
Location: Texas
Posts: 707
|
Quote:
The script above is close, but does not cross class the intelligence points. Seems to add them down stream of the Cross Class Calculations... So I just added a / 2 behind the aFinalVal Value and that seems to work D&D> Pre 1e White Box Edition, 1e, 2e, 3.5 Currently, Set in the World of Greyhawk (The first, longest running and Best Campaign Setting) Software>Extensive use of all forms of MS Products, Visual Studio 2012, DAZ 3d, AutoCAD, Adobe Products. Gaming Specific>Campaign Cartographer, D20 Pro Alpha & BattleGrounds Beta Tester, World Builder, Dungeon Crafter, LWD Hero Lab, Realm Works, Inkwell Ideas Citybuilder & Dungeon Builder, Auto-Realm, Dundjinni Contributing Writer for TSR, WOC, & Canonfire |
|
#35 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
Code:
~Modifier to account for additional Intelligence~~ var bonus as number bonus = hero.child[aINT].field[aFinalVal].value + round(field[kUserRanks].value/2, 0, -1) field[Bonus].value += bonus PS. Check that. Based on your equation above ((12+6)/2=9), it should be: Code:
~Modifier to account for additional Intelligence~~ var bonus as number bonus = hero.child[aINT].field[aFinalVal].value + field[kUserRanks].value bonus = round(bonus/2, 0, -1) field[Bonus].value += bonus Last edited by Sendric; September 21st, 2018 at 09:56 AM. |
|
#36 |
Senior Member
Join Date: Jul 2012
Location: Texas
Posts: 707
|
Quote:
adding 1 point gives the result 6 1/2 as it should adding 2 point gives the result 7 as it should adding 3 point gives the result 7 1/2 as it should adding 4 point gives the result 9 which is not as it should adding 5 point gives the result 9 1/2 which is not as it should adding 6 point gives the result 10 which is not as it should Not sure where 8 went or what is causing the skip D&D> Pre 1e White Box Edition, 1e, 2e, 3.5 Currently, Set in the World of Greyhawk (The first, longest running and Best Campaign Setting) Software>Extensive use of all forms of MS Products, Visual Studio 2012, DAZ 3d, AutoCAD, Adobe Products. Gaming Specific>Campaign Cartographer, D20 Pro Alpha & BattleGrounds Beta Tester, World Builder, Dungeon Crafter, LWD Hero Lab, Realm Works, Inkwell Ideas Citybuilder & Dungeon Builder, Auto-Realm, Dundjinni Contributing Writer for TSR, WOC, & Canonfire |
|
#37 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
Incidentally, kUserRanks is already accounting for cross-class skill. Looking at the fields on the skill, I see the following when adding 8 points to the skill: kUserPts = 8 kUserRanks = 4 This means we probably don't want to divide that number again, so I've modified the script to this: Code:
~Modifier to account for additional Intelligence~~ var bonus as number bonus = hero.child[aINT].field[aFinalVal].value/2 + field[kUserRanks].value bonus = round(bonus, 0, -1) field[Bonus].value += bonus User Points - User Ranks - Bonus - Total 1 - 0 - 6 - 6 2 - 1 - 7 - 8 3 - 1 - 7 - 8 4 - 2 - 8 - 10 5 - 2 - 8 - 10 6 - 3 - 9 - 12 User Points = total points applied to this skill by player User Ranks = 1/2 User Points Bonus = 1/2 INT score + User Ranks Total = Bonus + Ranks PS Sorry the table isn't cleaner. Let me know if it's confusing. Last edited by Sendric; September 21st, 2018 at 10:45 AM. |
|
#38 |
Spy
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220
|
Not really sure what you guys are doing.
I'm assuming that the Gnarley Secret Sign is actually a skill, correct? Then this line kinda bugs me. Code:
field[Bonus].value += bonus This code probably only needs to add half the INT into the bonus, and nothing more than that. There is no need to round if the kUserRanks are already cross class. Code:
~Modifier to account for additional Intelligence~~ field[Bonus].value += hero.child[aINT].field[aFinalVal].value/2
I believe this is what you are trying to get to, or am I misunderstanding this? |
#39 |
Senior Member
Join Date: Jul 2012
Location: Texas
Posts: 707
|
Quote:
Kendall, Yes, Spot on.... the intent is to make it a "language" that is applied as a skill. As mentioned it originated as a 2e "language" with a % roll to determine success. While I "could" choose to say its all or none like a "druid secret language" I Was trying to remain faithful to the origins that had some degree of variable that could be modified with a greater degree of intelligence on the character's part AND bring that application to a usable mechanic in a D20 3.5 Rule structure. This is the reasoning behind taking the 1/2 value of the whole of intelligence and not just the modifier (since origin applied the actual attribute number not just the bonus). This approach puts the character with an 18 in intelligence and NO additional skill points at slightly less than 50/50% chance in 3.5e just like 2e. (Base 30% +18= 40% for 2e vs Skill Ranks untrained (18/2=)9 vs DC20 (45% for 3.5e)) And then allows the player a chance to improve the skill with anything after allowing the character to improve their chance of success by adding ranks as a cross class for everyone EXCEPT a Ranger (which I will handle independent of this part of the code once it works). The reason I employ "language" as a moniker is because it is how it was viewed originally in 2e AND I add some code to have it show up in Herolab on personal tab under the languages for the player out of convenience as a reminder it's there for use. The snap shot provided below ( {text 00FF} )also adds some HTML color coding to the text descriptor that tells the player items in "Green" are not core rules but additional "homebrew or previous edition rules" not in 3.5e PHB. **Sidebar not anything to do with this piece of code but bigger picture of why I'm doing this. ** Generally, IMC we take language knowledge to a progressive level. While you can learn a language, you also develop a degree of expertise in that language. So to Speak Quenya (a form of elven in our campaign) you gain a basic conversational understanding (in this case a Language>Quenya - Ranks[1] shows in skills to go along with the language itself in the personal tab. This allows the character the ability to have some basic communication skills in the language, but not proficient in writing it or speaking without an accent. Mastery of reading and writing it is at [5] ranks in that language. For basic communication this is a non-impact other than some roleplay confusions to word choices at times. But when it comes to writings, and ancient languages this really comes into play. With bards, and scholars become far more valuable when going through old tomes and maps when ancient dialects have old forgotten languages. So mastery of base languages as a prerequisite to read them (with a reasonable DC), makes those classes invaluable to access special spells and lost info that might not be known to the less learned. Without the additional training in those language skills, the DC to read the item becomes increasingly difficult. Hope that clarifies. D&D> Pre 1e White Box Edition, 1e, 2e, 3.5 Currently, Set in the World of Greyhawk (The first, longest running and Best Campaign Setting) Software>Extensive use of all forms of MS Products, Visual Studio 2012, DAZ 3d, AutoCAD, Adobe Products. Gaming Specific>Campaign Cartographer, D20 Pro Alpha & BattleGrounds Beta Tester, World Builder, Dungeon Crafter, LWD Hero Lab, Realm Works, Inkwell Ideas Citybuilder & Dungeon Builder, Auto-Realm, Dundjinni Contributing Writer for TSR, WOC, & Canonfire |
|
#40 |
|
|