Page 1 of 1

Problems with Misc.score(number)

Posted: Mon Nov 09, 2020 12:55 am
by baenyth
I'm trying to use Misc.score(number) in my levels to set the score value, but they don't seem to work. I've tried using it in coroutines, in onTick(), and in onStart(). Here's how I encoded it:
Misc.score(18)
Misc.score(120)
But the score never changes. Is there something I'm doing wrong here?

Re: Problems with Misc.score(number)

Posted: Mon Nov 09, 2020 1:27 am
by Emral
The feature was mistakenly documented when it didn't exist. It'll be in the next version, now that I've added it. For the time being you can manipulate SaveData._basegame.hud.score directly.