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:
My code is currently divided up into a few scripts as such:
First/500
First/600
Post-Levels/10000
Post-Levels/5000
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
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