Working on fixing the Dwarves to the Birthright standard, they get an ability called Increased Density: DR 5/ Slash or Pierce. How exactly would I go about adding that?
Found the DR script but am not sure how to go about setting it correctly...
Code:
~until we've set a positive value, there's nothing we can do
doneif (field[abUserVal].value <= 0)
~this script reminds the user to select a value for this ability, so
~the doneif just above represents the failure condition
@valid = 1
~because I don't want "DR 10/evil" or "Damage Reduction (10/evil)" to
~show up in the list of DR types that the user selects for this item,
~I've set this up rather oddly - the user selects the DRs as things,
~and then this script finds the corresponding pick and modifies that.
~if we've selected a first DR, apply our value to that
if (field[usrChosen1].ischosen <> 0) then
perform hero.findchild[Ability,field[usrChosen1].chosen.tagids[thingid.?]].setfocus
if (state.isfocus <> 0) then
focus.field[abValue].value = maximum(focus.field[abValue].value,field[abUserVal].value)
field[livename].text = focus.field[shortname].text
perform state.clearfocus
endif
~if we've selected a 1st DR, the second one is optional
perform assign[Helper.NoPick]
endif
~if we've selected a second DR, apply our value to that
if (field[usrChosen2].ischosen <> 0) then
perform hero.findchild[Ability,field[usrChosen2].chosen.tagids[thingid.?]].setfocus
if (state.isfocus <> 0) then
focus.field[abValue].value = maximum(focus.field[abValue].value,field[abUserVal].value)
field[livename].text = splice(field[livename].text,focus.field[shortname].text," and ")
endif
endif
field[livename].text = "DR/" & field[livename].text & " " & field[abUserVal].value