View Single Post
Gladiator66
Member
 
Join Date: Jul 2007
Location: Tennessee, USA
Posts: 52

Old September 3rd, 2017, 01:57 PM
Thanks, dungeonguru. That got me on the right track. I had to do a little bit of tweaking to get it to work since clicking the mainhand and offhand check boxes would cause the size to increase by 2 more to 4, which is "guargantuan". I added a check step to only make the change if "gSize" had not already been increased. I also increased the weapon size to automatically match the size of the creature.
Code:
     var size as number
     if (hero.tagis[Size.Large] <> 0) then
        size = 1
     elseif (hero.tagis[Size.Huge] <> 0) then
        size = 2
     elseif (hero.tagis[Size.Gargantuan] <> 0) then
        size = 3
     endif

     foreach pick in hero from BaseWep where "!wGroup.Natural"
        if (eachpick.field[gSize].value = 0) then
           eachpick.field[gSize].value += size
        endif
     nexteach

Last edited by Gladiator66; September 4th, 2017 at 06:35 AM.
Gladiator66 is offline   #6 Reply With Quote