View Single Post
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old July 18th, 2020, 09:16 AM
More Rifts stuff...

There are some melee weapons that have multiple dice (2d6, 3d4, etc.) for their damage value. Would it be possible to add a Helper.DieMult# tag and modify the finalize scropt of the wpShowDmg field to add that in front of the die value? Such as:
Code:
~use the weapon die to display the damage, else use the explicit damage
        if (tagis[component.WeapMelee] + tagis[WeaponDie.?] < 2) then
          @text = field[wpDamage].text
        else
          var die as number
          var mult as number
          if (@ispick = 0) then
            die = tagvalue[WeaponDie.?] * 2
          else
            die = field[wpDie].value * 2
            endif
          mult = tagvalue[Helper.DieMult?]
          if (mult > 1) then
            @text = "Str+" & mult & "d" & die
          else
            @text = "Str+d" & die
            endif
          endif

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post

Last edited by TCArknight; July 18th, 2020 at 09:29 AM.
TCArknight is offline   #277 Reply With Quote