athletics should be practiced by 1 point per 10 tiles traversed, but for at least 1 point.
[code]
local squares_per_train = 10 --TODO: make this variable configurable or implement some smarter formula for trained_amount
local trained_amount = squares_walked_delta / squares_per_train
if (trained_amount > 0 and trained_amount < 1) then
trained_amount = 1
end
MOD.PracticeSkill(“athletics”, trained_amount)
[/code][/quote]
Actually if say I think the lua failed to load or something like that what would I do to try and re activate the lua. I ask cause since I first used it on a save without it causing an aparantly critical load failure it gave an error but it did not show up any more later. Anyways I ask because I have literally walked miles and athletics did not tick once. Maybe I need to turn them off and back on again.[/quote]
There is some initialization which is done on new player creation - some zero values are being saved withing the player.
PARAM.save(“squares_walked_total”, 0)
PARAM.save(“stats_squares_walked”, 0)
PARAM.save(“speed_bonus”, 0)
If you add mod to existing save you can try to run these statements in debug lua console.
You can also can provide error text/screenshot or provide savegame, so I could check what’s wrong.