View Single Post
Gumbytie
Senior Member
 
Join Date: Jun 2010
Location: Florida
Posts: 242

Old August 16th, 2023, 02:30 PM
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?
Gumbytie is offline   #1 Reply With Quote