Ok, new question...I am working on a template that will give the creature a choice of energy resist (acid, cold, electricity or fire). I am basing this loosely off of the elemental bloodline and ShadowChemosh's work on the shifter racial traits.
Let me start with the code for the core racial ability and a sample of one of the subtypes
Here is the core ability:
And here is one of the sub abilities (for acid)
What works:
The template creates a field on the background tab, under racial abilities to choose the energy type.
I don't get any errors.
What doesn't work:
Everything else
The drop down field is showing the full name "Energy Resistance (Acid)" for the energy type, although I just want it to show "Acid".
It does not apply the energy resistance at all.
It adds an additional racial ability "Energy Resistance (Acid)" that is showing a long name in the help popup of "Acid (Energy Resistance: Energy Resistance (Acid))". I was expecting the added racial ability due to how the Shifter abilities worked on ShadowChemosh's data files, but this particular error is beyond me.
Any help on this would be much appreciated. Lack of sleep made me overlook that #applydr doesn't work with spell resistance, but I can't use that as an excuse for the rest of this. I'm just a lil lost
Rob
Let me start with the code for the core racial ability and a sample of one of the subtypes
Here is the core ability:
Code:
<thing id="raGmGargER" name="Energy Resistance" description="You have resistance 10 to acid, cold, electricity, or fire (choose one)." compset="RaceSpec" summary="You have resistance 10 to one energy type.">
<fieldval field="usrCandid1" value="thingid.raGGrgERAc|thingid.raGGrgERCd|thingid.raGGrgEREl|thingid.raGGrgERFi"/>
<tag group="ChooseSrc1" tag="Thing"/>
<bootstrap thing="raGGrgERAc">
<containerreq phase="First" priority="500">Custom.GemAcid</containerreq>
</bootstrap>
<bootstrap thing="raGGrgERCd">
<containerreq phase="First" priority="500">Custom.GemCold</containerreq>
</bootstrap>
<bootstrap thing="raGGrgEREl">
<containerreq phase="First" priority="500">Custom.GemElec</containerreq>
</bootstrap>
<bootstrap thing="raGGrgERFi">
<containerreq phase="First" priority="500">Custom.GemFire</containerreq>
</bootstrap>
<eval phase="First" priority="10000"><![CDATA[~First 10,000
if (field[usrChosen1].ischosen <> 0) then
perform field[usrChosen1].chosen.pulltags[Custom.?]
endif]]></eval>
<eval phase="PostLevel" priority="10000" index="2"><![CDATA[~Post-Levels 10,000
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
~ If we are not activated get out now
doneif (field[abilActive].value = 0)
if (hero.tagis[Custom.GemAcid] <> 0) then
#applyresist[xDamRsAcid, 10]
endif
if (hero.tagis[Custom.GemCold] <> 0) then
#applyresist[xDamRsCold, 10]
endif
if (hero.tagis[Custom.GemElec] <> 0) then
#applyresist[xDamRsElec, 10]
endif
if (hero.tagis[Custom.GemFire] <> 0) then
#applyresist[xDamRsFire, 10]
endif]]></eval>
</thing>
And here is one of the sub abilities (for acid)
Code:
<thing id="raGGrgERAc" name="Energy Resistance (Acid)" description="You have resistance 10 to acid." compset="RaceSpec" summary="You have resistance 10 to acid">
<tag group="Custom" tag="GemAcid"/>
<tag group="SpecType" tag="Resist"/>
<eval phase="PreLevel" priority="10000" index="2"><![CDATA[field[livename].text = "Acid"]]></eval>
<eval phase="PostLevel" priority="1000"><![CDATA[~Post-Levels 1,000
if (hero.tagis[Custom.GemAcid] <> 0) then
perform assign[Helper.ShowSpec]
endif]]></eval>
</thing>
What works:
The template creates a field on the background tab, under racial abilities to choose the energy type.
I don't get any errors.
What doesn't work:
Everything else

The drop down field is showing the full name "Energy Resistance (Acid)" for the energy type, although I just want it to show "Acid".
It does not apply the energy resistance at all.
It adds an additional racial ability "Energy Resistance (Acid)" that is showing a long name in the help popup of "Acid (Energy Resistance: Energy Resistance (Acid))". I was expecting the added racial ability due to how the Shifter abilities worked on ShadowChemosh's data files, but this particular error is beyond me.
Any help on this would be much appreciated. Lack of sleep made me overlook that #applydr doesn't work with spell resistance, but I can't use that as an excuse for the rest of this. I'm just a lil lost

Rob