• 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

Size Change

AndrewD2

Well-known member
I've got a class that causes a race to get bigger as it levels. I set it up using the call SizeChange procedure and it gets the space and reach right, but it doesn't change the size so when I try to use larger weapons they're not legal. I fear it may be a timing issue, but I'm not sure how to fix it. It's currently running at Post-Levels/5000. I looked at the enlarge person spell adjustment and that runs at First/1000, but I need the levels to determine the size.
 
Can you do an if then statement?

Something like

If we are level xx
then perform hero.assign[Enter Size Here]
 
Yeah that did it, I think I was working on it too late last night (I was up until almost 3AM) Thanks bodrin. Oh and happy 1000th post!
 
Looks like I spoke too soon. The size and everything shows up right, but I still can't wield appropriately sized weapons.
 
Looks like I spoke too soon. The size and everything shows up right, but I still can't wield appropriately sized weapons.
Yea size changes have to happen early I think around First/600-First/1000 actually.

But the "Classes.?" tags should be on the hero at that point and you can go after them to get the level. It means the ability is not as generic as it should be but sometimes the timing required demands that.
 
Hmm, so here is my modified code running at First/1000 but it's still not doing anything.

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

      ~ only perform the rest on the first copy
      doneif (tagis[Helper.FirstCopy] = 0)

      ~ Count class tags for Dahren Paragon and figure out the size based on that.
      var size as string
      var sizemod as number
      ~perform hero.delete[Size.?]
      debug hero.tagcount[Classes.DahrParag]
      if (hero.tagcount[Classes.DahrParag] < 3) then
        ~perform hero.assign[Size.Medium]     
      elseif (hero.tagcount[Classes.DahrParag] < 9) then
        ~perform hero.assign[Size.Large]
        sizemod = 1
        size = "Large"
      elseif (hero.tagcount[Classes.DahrParag] < 16) then
        ~perform hero.assign[Size.Huge]
        sizemod = 2
        size = "Huge"
      elseif (hero.tagcount[Classes.DahrParag] < 20) then
        ~perform hero.assign[Size.Gargantuan]
        sizemod = 3
        size = "Gargantuan"
      else
        ~perform hero.assign[Size.Colossal]
        sizemod = 4
        size = "Colossal"
        endif

      field[livename].text = field[name].text & " (" & size & ")"
      call SizeChange
 
I am not near HL to help anymore. But I know their was a bunch of Size Adjustment spells I did for UM. They where the Undead Anatomy spell adjustments and they do lots of different sizes. Take a look at those and see what is different....
 
Looks like my problem was the
Code:
~ only perform the rest on the first copy
      doneif (tagis[Helper.FirstCopy] = 0)

Doesn't make any sense to me, but if I remove it it works fine.
 
The firstcopy tag isn't assigned until early in the Post-Levels phase, so that line of code would always exit the script if you use it before then.
 
Back
Top