• 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

Issues with size change

AndrewD2

Well-known member
I'm working on a ability for a racial class that changes it's size. It's based off an ability I've done before (that had worked back when I did it).

The ability is as such:

You continue to grow in height and weight as you gain power at 3rd level you become size Large, at 10th you become size Huge, at 16th you become size Gargantuan, and at 20th level you become size Colossal. No ability score modifications arise as a result of the growth, though you do gain all the other associated penalties and benefits for the size change listed in the table below, the table lists the total bonus or penalty they are not cumulative. Your equipment also resizes to fit your new size as long as you are attending it at the time you gain the appropriate level.

You can as a full round action reduce your size back down one category, it also takes a standard action to increase your size back up one category.

My code is currently divided up into a few scripts as such:

First/500
Code:
      var size as string
      var sizetarget as number

      if (hero.tagcount[Classes.JotunPara] < 10) then
        sizetarget = 1
        size = "Large"
      elseif (hero.tagcount[Classes.JotunPara] < 16) then
        sizetarget = 2
        size = "Huge"

      elseif (hero.tagcount[Classes.JotunPara] < 20) then
        sizetarget = 3
        size = "Gargantuan"

      else
        sizetarget = 4
        size = "Colossal"

      endif

      field[livename].text = field[name].text & " (" & size & ")"
      call SetSizeTo

First/600
Code:
var sizemod as number

sizemod = -1

doneif (field[abilActive].value = 0)
call SizeChange

Post-Levels/10000
Code:
    ~ If we're not shown, just get out now
    doneif (tagis[Helper.ShowSpec] = 0)

    ~ only perform the rest on the first copy
      doneif (tagis[Helper.FirstCopy] = 0)
      doneif (field[xAllLev].value < 10)
      if (field[xAllLev].value < 16) then
         hero.child[Speed].field[tSpeed].value += 10
      elseif (field[xAllLev].value < 20) then
        hero.child[Speed].field[tSpeed].value += 20
      else
        hero.child[Speed].field[tSpeed].value += 30
      endif

Post-Levels/5000
Code:
      if (field[xIndex].value <= 1) then
        field[listname].text = "Large"
      elseif (field[xIndex].value = 2) then
        field[listname].text = "Huge"
      elseif (field[xIndex].value = 3) then
        field[listname].text = "Gargantuan"
      else
        field[listname].text = "Colossal"
        endif

It's changing the size category appropriately, but size and reach are staying at 5. Am I missing something using the SetSizeTo procedure? I was using the procedure because I need it to adjust the equipment size with the race. Is there a better way to do this?

Thanks,
Andrew
 
It's changing the size category appropriately, but size and reach are staying at 5.
Umm you say the size category is set correctly but then say the "size and reach" are staying at 5. So little confused by that statement. Is the size changing correctly nor not.

I am going to assume you mean to say that the size is changing but the "reach" value is not. If so that is true as the reach for a large creature is not always 10ft. Many creatures, animal like ones, have 5ft reach still. So I know for large if you need to have a 10ft reach then you need to add 5 to the reach.

I don't remember for larger sizes what HL does for default for reach. That would require some testing and I am not near HL.
 
I meant "space and reach" actually. Default space and reach for a Large creature is 10/10, Huge 15/15, Gargantuan 20/20 and Colossal 30/30.
 
Do you have a "race" selected? I know sometimes I test stuff without allot of things selected. But if you leave "Race" blank then you get strange results with the SetSizeTo/SizeChange procedures.
 
Back
Top