Brolthemighty
Well-known member
Alright, so a while back I put in a bug report on the Golden Legionnaire's ability Defy Danger. One of the options is to choose a type based on the Ranger's FE list, and you get +2 vs. their Sp's and Su's. Here's the relevant text from the pfsrd
The innate magical powers option is missing. Instead of waiting around for a fix, since this came out so long ago, I figured I would work on the coding...and I think I have most of it, I just can't figure out how it all goes together. Here is what I have:
The problem is that I'm not sure how to plug in the FE selection in order to complete the situationals. It's been a while since I've worked with the editor...and I admittedly was never very good. Anyone want to help?
A Golden Legionnaire gains a +2 bonus on saving throws against one of the following dangers: charms and compulsions, curses, diseases, fear, poisons, traps, or the innate magical powers (spell-like abilities and supernatural abilities not gained from class levels) of one creature type (and subtype, if applicable) chosen from the ranger favored enemy list. At 5th level, and again at 9th level, a Golden Legionnaire gains an additional +2 bonus against a different danger; alternatively, she may increase the bonus against a previously selected danger by +2.
The innate magical powers option is missing. Instead of waiting around for a fix, since this came out so long ago, I figured I would work on the coding...and I think I have most of it, I just can't figure out how it all goes together. Here is what I have:
~First we pick from the Favored Enemy list
component.BaseCustUs & !Helper.Secondary
First Eval
Render: 10,000, Index: 2
if (field[abValue].value <> 0) then
field[livename].text = field[thingname].text & " +" & field[abValue].value
#situational[hero.child[svAll], "+" & field[abValue].value & " vs. innate magical powers (Sp and Su abilities)", field[thingname].text]
field[abSumm].text = "+" & field[abValue].value & " to save vs. innate magical powers (Sp and Su abilities)
Endif
Second Eval
Post-Level, 10,000, Index 1
~see if a quickfind has been created by another copy of this ability
perform quickfind.setfocus
~if we didn't find a redirection, we're the first copy of this ability to run this script, so we'll make ourselves the FirstCopy.
if (state.isfocus = 0) then
perform quickadd
perform assign[Helper.FirstCopy]
~add +2 to our value
field[abValue].value += 2
~otherwise, redirect hero.child[] to the FirstCopy, and make us an upgrade
else
perform focus.redirect
perform assign[Helper.SpecUp]
~add +10 to the focus's value
focus.field[abValue].value += 2
endif
The problem is that I'm not sure how to plug in the FE selection in order to complete the situationals. It's been a while since I've worked with the editor...and I admittedly was never very good. Anyone want to help?