TobyFox2002
Well-known member
I am working on heavily modified size alteration adjustment, and have run into a few issues with how I want to code it. It is based on content from Microsized Adventures.
I am using the default size adjustment as a base with
First/20000 Index: 1
However, I am running into some issues with the timing of several aspects of what I want to do. First I want to OVERRIDE the use of DEX for Climb and Swim.
I have the code
But, I cant get the timing right, I know I'm doing something wrong but I cant find what timing HL is overriding the attribute to reverse it.
I am using the default size adjustment as a base with
First/20000 Index: 1
Code:
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
var sizemod as number
sizemod = field[pAdjust].value
~call another procedure to handle the size change
~procedure copied from SizeChange, removed gSize change to prevent
~weapons/armor from shifting in size.
call ChgSize2
However, I am running into some issues with the timing of several aspects of what I want to do. First I want to OVERRIDE the use of DEX for Climb and Swim.
I have the code
Code:
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
debug "Our size is " & herofield[tSize].value
~ Overrides the normal small or smaller size rules for DEX.
~ A diminished creature is not allowed to use DEX for swim/climb
if (herofield[tSize].value <= -2) then
~ Change the attributes on Climb and Swim
perform hero.child[skClimb].delete[SkillOver.?]
perform hero.child[skSwim].delete[SkillOver.?]
endif
But, I cant get the timing right, I know I'm doing something wrong but I cant find what timing HL is overriding the attribute to reverse it.