• 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

Swim speed = Pace

Gumbytie

Well-known member
So I want to track Swim Speed to Pace.

Traits/5000

Code:
var swim as number
swim = hero.child[trPace].value
if (#resmax[resLoadLim] < hero.child[resEncumb].field[resSpent].value) then
swim -= 2
endif
hero.child[trPace].field[trtSpecial].value = swim

If I assign a number to the swim variable works just fine. But I want the swim speed to equal the character's current Pace. The above gives me an error regarding the [trPace], so I am obviously calling that with the wrong syntax. Any suggestions?
 
Hmm, I used the Debug trick you used me to double-check. Simplified code a bit to tes.

Code:
if (tagis[Equipped.Equipped] <> 0) then
var swim as number
swim = #trait[trPace]

debug #trait[trPace]

hero.child[trPace].field[trtSpecial].value = swim
endif

The Debug shows the value for #trait[trPace] is 0. So it that code doesn't pull any value. Any other ideas?
 
Back
Top