• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Turning Off DR

Bishop37

Well-known member
I'm working on creating a template that will turn off the DR of Zombies. I can get the "Special" turned off, but the DR still displays on the character sheet.

Here is the initial code...
Code:
      ~find the copy of Damage Resistance added by the zombie template and disable it
      var searchexpr as string
      searchexpr = "(SpecSource.tmZombie) & thingid.xDamRdS"
      perform hero.findchild[Ability,searchexpr].assign[Helper.SpcDisable]
 
I'll put this on my to-do list to fix. In the meantime, you can do any of the following along with adding the Helper.SpcDisable tag:

delete[Helper.ShowSpec]
assign[Helper.SpecUp]
assign[Hide.Special]

P.S. Damage resistances are unique, which means that no matter how many copies are added, only one will show up on the character, so the SpecSource.tmZombie is redundant.

You can just use

Code:
hero.childfound[xDamRsS].assign[Helper.SpcDisable]
 
Back
Top