View Single Post
DeathSheep
Member
 
Join Date: Jun 2018
Posts: 83

Old October 27th, 2021, 02:29 PM
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"/>
3. I pulled that from the code for the Bear Totem feature for barbarians...figured I could just switch out the user chosen fields. I changed it to:
Code:
    <eval phase="First" index="3"><![CDATA[
       doneif (hero.tagis[Hero.Raging] = 0)

       doneif (tagis[Helper.Disable] <> 0)

      ~ If nothing chosen then get out now!
      doneif (field[usrChosen1].ischosen = 0)
      doneif (field[usrChosen2].ischosen = 0)
      doneif (field[usrChosen3].ischosen = 0)

       ~ Collect selected types of damage and pull the Resistance tags from them.
      perform field[usrChosen1].chosen.pulltags[DamageRes.?]
      perform field[usrChosen2].chosen.pulltags[DamageRes.?]
      perform field[usrChosen3].chosen.pulltags[DamageRes.?]

      perform hero.pushtags[DamageRes.?]]]></eval>
4. Where do I find the "Restrict First List To..." box? I've been hand typing these in the editor in the Fields section. If there's an easier way, I'd love to know!
5. Yes, it's the text editor. The "amp;" doesn't show up in the Editor.
DeathSheep is offline   #4 Reply With Quote