Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I tried setting the max weight of an actor to reflect stats rather than a simple value, and, max weight in return, becomes 'NaN'.
Formula:
<maxWeight:((this.dex/3)*(this.level+1))+12>
(I have 'dex' set up as a custom stat as a parallel to 'def'.)
Just curious if I have to set this up a different way.

(+1)

Hi there,

Thanks for your interest in my work! The note tag only accepts simple number values. So this won't work. NaN, stands for Not a Number because that's what the note tag value was expecting.

Yes, I know what 'NaN' means. Just glad that's all it does is return that instead of crashing.
So, I can't even plug in a variable?
Hm. This definitely throws a wrench into things... Ah, well...