#how does data storage in Krunscript work?

1 messages · Page 1 of 1 (latest)

hard spoke
#

I tried GAME.STORAGE.set but it is kinda weird, like i set the key 'test' for a player but it ends up setting 'V_test', and when i try GAME.STORAGE.load for both 'V_test' and 'test', it doesn't work. So how does it work? (triggers do work btw)

lost violet
#

Oh it does work. but its really spotty. In your example krunkscript will load data under "test", but from triggers or objects in the editor you would have to use "V_test". I haven't found out yet what exactly makes it work in a particular map, but you have to save some data first and just give it some time before load function starts returning that data instead of DATA_NOT_FOUND or whatever it prints in the console. Just be wary to properly set up the callback for that load function.