• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Help converting 3.5 to pathfinder

jkthomsen9

Well-known member
I am trying to convert a 3.5 class feature to pathfinder. The folloeing code has changed in pathfinder. I am not sure what it changed to. Can anyone help.

if (field[xTotalLev].value >= 9) then
perform assign[Helper.ShowCharge]
field[hTotal].value += 1
endif


The full code is below. I know I have to change xSumm to abSumm.

var HP as number
HP = 10 + hero.child[aCHA].field[aModBonus].value

var dodge as number
dodge = maximum(hero.child[aCHA].field[aModBonus].value, 1)

if (hero.pickexists[cDPiHonRep] <> 0) then
field[livename].text = "Fight to the Death"
field[xSumm].text = "Rallied allies gain Diehard, " & HP & " temp Hp, +" & dodge & " dodge bon to AC."
field[CustDesc].text = "At 9th level and higher, an honorable dread pirate can inspire his allies to carry on against tremendous odds. Each ally affected by the dread pirate’s rally the crew ability (see above) also gains temporary hit points equal to 10 + the dread pirate’s Cha bonus (minimum 10), gains a dodge bonus to Armor Class equal to the dread pirate’s Cha bonus (minimum +1), and is treated as having the Diehard feat even if he doesn’t meet the prerequisites. These effects are lost if the dread pirate loses consciousness."

elseif (hero.pickexists[cDPiDisRep] <> 0) then
field[livename].text = "Motivate the Scum"
field[xSumm].text = "1/day, execute man, +2 morale bon to dam for 24 hr, +4 & -2 Will if crewmate."
field[CustDesc].text = "Once per day, a dishonorable dread pirate of 9th level or higher can motivate his allies by killing a helpless individual. All allies of the dread pirate who see the act gain a +2 morale bonus on damage rolls. This effect lasts for 24 hours.{br}{br}Most dishonorable dread pirates don’t care whether the victim is a prisoner or one of their own crew. In fact, if the slain individual is one of the dread pirate’s crew, the morale bonus on damage rolls improves to +4, but the allies also take a –2 penalty on Will saves for the duration of the effect."
if (field[xTotalLev].value >= 9) then
perform assign[Helper.ShowCharge]
field[hTotal].value += 1
endif
endif


Thank you in advance.

James
 
Rereading my post I realized I did not say exactly what I am having problems with. I am not sure what the hTotal field is or what it changed to. Can any one help?
 
Back
Top