Open ynohtna92 opened 9 years ago
Looks good.
A few things that need to be considered/answered before approval:
Let's see v2, before accepting.
Updated log:
[ VScript ]: {"rounds":{"0":{"players":[{"isWinner":"0","steamID32":66998815,"connectionState":2}]}},"schemaVersion":2,"modIdentifier":"708fc3881df6e26b45fa78ba2529af01","gameDuration":68.499298095703,"matchID":1161865,"authKey":"YDWHOJLNAG"}
[ VScript ]: -------- GAME DATA --------
[ VScript ]: {
[ VScript ]: dth = 0 (number)
[ VScript ]: ch = 0 (number)
[ VScript ]: rnd = 1 (number)
[ VScript ]: }
[ VScript ]:
[ VScript ]: -------- PLAYER DATA --------
[ VScript ]: {
[ VScript ]: 1 = table: 0x033a4b90 (table)
[ VScript ]: {
[ VScript ]: lvl = 1 (number)
[ VScript ]: abl = "0,1,0,0" (string)
[ VScript ]: dth = 0 (number)
[ VScript ]: nt = 100 (number)
[ VScript ]: scr = 0 (number)
[ VScript ]: steamID32 = 66998815 (number)
[ VScript ]: il = "potion_of_speed" (string)
[ VScript ]: abn = "antimage_leap_of_faith,antimage_thaw,antimage_entangling_roots,antimage_brilliance_aura" (string)
[ VScript ]: ph = "antimage" (string)
[ VScript ]: }
[ VScript ]: }
[ VScript ]: -------------------------------------
[ VScript ]: Stat Collection: Match stats were successfully recorded!
The scr field is the save-to-death ratio which is an integer and can be negative.
I have concat the ability names and levels into their own strings.
Was that a yes to all ninjas having same skills?
Yes except when spongebob mode is active where the abilities are changed.
Here is my suggestion. Make sure to test that Lua. I probably did something stupid.
lua doesn't use semicolons jimmy :rage4:
Settings: https://github.com/ynohtna92/SlideNinjaSlide/blob/a3bdc1d828e97dae69aec00da8f87cd7f015be93/game/dota_addons/slideninjaslide/scripts/vscripts/statcollection/settings.kv
Schema: https://github.com/ynohtna92/SlideNinjaSlide/blob/master/game/dota_addons/slideninjaslide/scripts/vscripts/statcollection/schema.lua
Addon: https://github.com/ynohtna92/SlideNinjaSlide/blob/master/game/dota_addons/slideninjaslide/scripts/vscripts/slide_ninja_slide.lua