Selectable Damage Resistances
I am trying to create a barbarian-like ability where you can choose three damage types, and when you are raging, you have resistance to them. I think I'm on the right track in terms of coding, but when I test the power, the dropdown has a ton of stuff but not the damage types. Additionally I only see 2 dropdowns. I'm sure it is something simple like having the wrong tag name, but I don't know exactly what to use. Here is the code:
Code:
<thing id="cBerPRDewbInst" name="Dewback's Instinct" description="Choose three damage types other than true damage. While raging, you have resistance to the chosen damage types." compset="CustomSpec" uniqueness="unique"> |
EDIT: Thinking about the third box thing; if all else fails, you can always make a second copy of this feature that just features the third box and bootstrap it to the first copy. It's less elegant, but it works. |
1. I wasn't sure if that could be done. Your workaround should do it once I get the first two working
2. Changed the formula to Code:
<fieldval field="usrCandid1" value="component.DamageType & (thingid.dtAcid|thingid.dtCold|thingid.dtFire|thingid.dtPRForce|thinid.dtPRIon||thingid.dtLightning|thingid.dtNecrotic|thingid.dtPoison|thingid.dtPsychic|thingid.dtPRSonic) & !Helper.Helper"/> Code:
<eval phase="First" index="3"><![CDATA[ 5. Yes, it's the text editor. The "amp;" doesn't show up in the Editor. |
1. I wasn't sure if that could be done. Your workaround should do it once I get the first two working
2. Changed the formula to Code:
<fieldval field="usrCandid1" value="component.DamageType & (thingid.dtAcid|thingid.dtCold|thingid.dtFire|thingid.dtPRForce|thinid.dtPRIon||thingid.dtLightning|thingid.dtNecrotic|thingid.dtPoison|thingid.dtPsychic|thingid.dtPRSonic) & !Helper.Helper"/> Code:
<eval phase="First" index="3"><![CDATA[ 5. Yes, it's the text editor. The "amp;" doesn't show up in the Editor. |
I see where the "Restrict First List To..." box s, but the "Select From..." box doesn't have damage types as an option.
|
Yeah the "select from" is useless 4/5 times, because it has so few things. If "select from" doesn't have what you need, you define your own tag expression in the next box, like you did.
|
First off, I REALLY appreciate your advice. I've learned a ton just reading your responses.
That said, that code doesn't seem to be working either. I'm still getting a list of random things that aren't the damage types I specified in the dropdown. I'm really baffled. Here is the code as it stands now: Code:
<thing id="cBerPRDewbInst" name="Dewback's Instinct" description="Choose three damage types other than true damage. While raging, you have resistance to the chosen damage types." compset="CustomSpec" uniqueness="unique"> |
Try taking "component.DamageType & " out. I'm assuming that dtPRIon and dtPRSonic are damage types you made?
|
Same problem if I take out "component.DamageType & ". Yes, those are new damage types I defined.
|
At least in the code you posted, I don't see "ChooseSrc1.Thing". Make sure you have that:
Code:
<tag group="ChooseSrc1" tag="Thing"/> |
All times are GMT -8. The time now is 04:46 PM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.