Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Coding question (http://forums.wolflair.com/showthread.php?t=21810)

asvaldson June 30th, 2012 03:09 PM

Coding question
 
Trying to code a new race my roomate and I created using Oread as a base.

The race counts their charisma as 2 points higher if they have the draconic bloodline as a sorcerer. the script for Oread is as follows


Quote:

field[abValue].value += 2

~if we have the elemental: earth bloodline
if (hero.tagis[Ability.cSorElem] + hero.tagis[BloodEner.Acid] >= 2) then
~show us on the special tab
perform assign[Helper.ShowSpec]

~add 2 to the effective attribute for the sorcerer class
hero.childfound[cHelpSor].field[cSplAttVal].value += field[abValue].value
endif

~find all of the cleric's earth domain powers, and add +1 extra level
foreach pick in hero from BaseClSpec where "SpecSource.cHelpClr"
if (eachpick.root.tagis[HasDomain.cdEarth] <> 0) then
eachpick.field[xEffectLev].value += 1
endif
nexteach

~note that there are a few bloodline powers that depend on CHA for their uses/day or DC. Those modifications are made on the individual abilities.


What changes to do I need to make to make it fit for my race?

Lord Magus June 30th, 2012 05:55 PM

I would try this

Code:

field[abValue].value += 2

~if we have the Draconic bloodline
if hero.tagis[Ability.cSorDracon]  >= 1 then
~show us on the special tab
perform assign[Helper.ShowSpec]

~add 2 to the effective attribute for the sorcerer class
hero.childfound[cHelpSor].field[cSplAttVal].value += field[abValue].value
endif

~note that there are a few bloodline powers that depend on CHA for their uses/day or DC. Those modifications are made on the individual abilities.

You basically have to adjust the bloodline requirement (the Oread requirement was double: one for the Elemental bloodline, and one for Earth), and remove the part about improving cleric DCs.

asvaldson June 30th, 2012 09:27 PM

I feel stupid, thank you so much for your help. I actually found a race to steal their coding that was more accurate to what I wanted. The Tiefling's Fiendish sorcery was EXACTLY what I needed, and was worded in such a way that I just had to replace the Infernal and Abyssal bloodlines with Draconic and Linnorm in the coding.

I wish I knew more about script languages. I can do data entry, but tearing apart the script in Hero Labs and putting something together that does what I want is TIME CONSUMING lol.


All times are GMT -8. The time now is 08:02 PM.

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