• 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

SR 5th ed. Need help on implementing a house rule

Sacrelicious2

New member
So there is a house rule I use when playing Shadowrun that I would like to see if I can implement in HeroLab. Essentially the rule is that there is a single damage track that can be filled with either stun or physical damage. If you've ever played and White Wolf games, it essentially works exactly like that.

What I need to be able to implement in HeroLab should be fairly easy to do. I need to remove the Stun damage track, or just reduce it to 0, and change the physical damage track to have 8 + (Body + Willpower) / 2 boxes. I think it would be easy to do as a zero cost quality, but I am not sure what the values I need to adjust are, since there seems to be no documentation for creating eval scripts. Can anyone help me out with this?
 
If you're just getting started, since this is a complex house rule that you've chosen to implement as your first project in the editor, it's probably easiest to just give you a script that should work, rather than guiding you through the process.

Phase: Traits
Priority: 12000
Code:
~hide the stun track
if (hero.childlives[cmStun] <> 0) then
  perform hero.child[cmStun].assign[Hide.Condition]
  endif

~add willpower to physical damage and to the grunt damage track,
~unless we're a vehicle (which doesn't have Willpower)
if (hero.tagis[Hero.Vehicle] = 0) then
  if (hero.childlives[cmPhysical] <> 0) then
    perform hero.child[cmPhysical].field[cmNormal].modify[+,round(#trait[attrWill] / 2,0,1),"Willpower/2"]
    endif
  if (hero.childlives[cmGrunt] <> 0) then
    perform hero.child[cmGrunt].field[cmNormal].modify[+,round(#trait[attrWill] / 2,0,1),"Willpower/2"]
    endif
  endif
 
Thanks, that helped. I ended up modifying it as follows, since I needed to make it 8 + (Body + Willpower) / 2, not 8 + Body/2 + Willpower/2 (subtle difference in at which point we are rounding).

Code:
~hide the stun track
if (hero.childlives[cmStun] <> 0) then
  perform hero.child[cmStun].assign[Hide.Condition]
  endif

~add willpower to physical damage and to the grunt damage track,
~unless we're a vehicle (which doesn't have Willpower)
if (hero.tagis[Hero.Vehicle] = 0) then
  if (hero.childlives[cmPhysical] <> 0) then
    perform hero.child[cmPhysical].field[cmNormal].modify[-,round(#trait[attrBod] / 2,0,1),"Removing Body/2"]
    perform hero.child[cmPhysical].field[cmNormal].modify[+,round(#trait[attrBod] / 2 + #trait[attrWil] / 2,0,1),"(Body + Will)/2"]
    endif
  if (hero.childlives[cmGrunt] <> 0) then
    perform hero.child[cmGrunt].field[cmNormal].modify[-,round(#trait[attrBod] / 2,0,1),"Removing Body/2"]
    perform hero.child[cmGrunt].field[cmNormal].modify[+,round(#trait[attrBod] / 2 + #trait[attrWil] / 2,0,1),"(Body + Will)/2"]
    endif
  endif
 
Back
Top