• 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

Help with size altering adjustment

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
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.
 
Back
Top