Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - D&D 5th Edition SRD (http://forums.wolflair.com/forumdisplay.php?f=89)
-   -   Headband of mental prowess (http://forums.wolflair.com/showthread.php?t=63257)

Swampyjim September 28th, 2019 06:45 AM

Headband of mental prowess
 
Hi All

I am trying to convert the headband of Intellect to something closer to the PF Headband of Mental Prowess. When worn both Int & Cha are 18.
I can see how I can adjust the Int to 18 but how do I add the Cha element.

Cheers Jim

dungeonguru September 28th, 2019 09:09 AM

I assume you've done a copy and you're looking at the script and are seeing:

hero.child[aINT].field[Minimum].value = maximum(19,hero.child[aINT].field[Minimum].value)

and you can tell that INT is being set.

If you wanted to additionally set CHA you would need to copy that line and change INT to CHA like:

hero.child[aCHA].field[Minimum].value = maximum(19,hero.child[aCHA].field[Minimum].value)

You would also want to change the 19 to an 18 in your example.

The code here sets the scores to 19 unless you have a higher score, so basically if you change to 18 the same would apply.

The ability scores are aSTR, aDEX, aCON, aINT, aWIS, aCHA

Mergon September 28th, 2019 09:09 AM

Just go into the builder and make a copy of the Headband of Intelect.
Then open the script and change the bonus for INT from 19 to 18. After that highlight an copy the INT line. Pase that to a new line. Then change the references from INT to CHA (Charisma)

Give the item the name you want.

Add your own tag. Then save the file to whatever you want. Don't try to sdave it to the original file.

That should create the item.

Mergon September 28th, 2019 09:10 AM

lol, Dungeonguru beat me to it by a hair. :)


All times are GMT -8. The time now is 03:01 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.