Thread:がか/@comment-1915363-20170316045301/@comment-1915363-20170318030042

Currently CodeHK is porting the CharacterStat module and AbilityText in Flower Knight Wikia to Lua.

Is it possible to consolidate the related elements into an array? For example from this: ["BasicHPheartBonus"] = 840, ["BasicHPheart2Bonus"] = 1644, ["BasicHPlv1"] = 1750, ["BasicHPlv60"] = 5400, ["BasicATKheartBonus"] = 840, ["BasicATKheart2Bonus"] = 1248, ["BasicATKlv1"] = 750, ["BasicATKlv60"] = 2350, ["BasicDEFheartBonus"] = 360, ["BasicDEFheart2Bonus"] = 528, ["BasicDEFlv1"] = 450, ["BasicDEFlv60"] = 1000,

to this: ["BasicHeartBonus"] = { 840, 840, 360 } ["BasicHeart2Bonus"] = { 1644,1248,528 } ["BasicLv1"] = { 1750,750,450 } ["BasicLvMax"] = { 5400,2350,1000 }