{"id":"al-ex427/weighter-rbx","name":"weighter-rbx","scope":"al-ex427","platform":"roblox","description":"Simple and easy weight system","version":"1.0.0","latest":"1.0.0","versions":["1.0.0"],"license":"MIT","licenseRating":"safe","licenseCaveats":["License identified from the packaged LICENSE file; the manifest declared none."],"licenseVerified":true,"dependencies":{},"integrity":"4541809b46a2b0386515fe7a77fca854c33a9ec3dbba15e56ada600a8fece9dc","likes":0,"downloads":0,"install":"forest install al-ex427/weighter-rbx","url":"https://forest.dev/p/roblox/al-ex427/weighter-rbx","files":"https://api.forest.dev/ai/package/roblox/al-ex427/weighter-rbx/files","readme":"# Weighter\nEasy, simple syntax, for making a weight system\n\n\nSyntax:\n\nCreate a weight class.\n```lua\nlocal WeightClass = weighter {\n\t{Name = \"Low\", Weight = 10};\n\t{Name = \"Mid\", Weight = 50};\n\t{Name = \"High\", Weight = 1000};\n}\n\nlocal WeightClass2 = weighter {\n\t{Name = \"RandomA\", Weight = 70};\n\t{Name = \"RandomB\", Weight = 15};\n\t{Name = \"RandomC\", Weight = 60};\n}\n```\nMerge two weight classes\n```\nlocal CombinedClass = WeightClass + WeightClass2\n```\nGet a weight object of a weight class\n```lua\nprint(CombinedClass.RandomA)\n```\nMultiply all weights in the weight class by a specified number\n```\nWeightClass = WeightClass*2\n```\nConvert a weight class into a string format which shows its properties\n```\nprint(tostring(WeightClass))\n```\nRoll using weights\n```\nfor i=1,100 do\n\tprint(WeightClass())\nend\n```\nRoll using %\n```\nfor i=1,100 do\n\tprint(WeightClass:RollNormalized())\nend\n```\n","readmeTruncated":false}