All-bones Jones :verified: on Nostr: this is the jankiest fucking solution imaginable jesus fucking christ this is so ...
this is the jankiest fucking solution imaginable jesus fucking christ this is so cursed
this is SO FUCKING CURSED
so to explain a bit
i wanted to have a weighted loot distribution table that's easily scalable and not hardcoded without resorting to a plugin that reads an external json.
so i wrote a short script that
1) goes through a defined common event id (in this case, 18, which this is a screencap of)
2) looks for every command that adds a static value to variable 37 (eg, += 10)
3) adds each of those values together to get a cumulative weight for items in the pool
4) compares those weights against the prand that's calculated off gameseed
5) and writes that to variable 36
then i just compare variable 36 in the common event to get nice clean easy to write to and edit loot table common events
variable 37 isn't actually used for anything during calculation, it's just there to denote item weights, and after a long playthrough it's going to hit the engine's max integer size (999999) but it doesn't fucking matter because it's not actually USED FOR ANYTHING
Published at
2026-01-14 23:49:42 UTCEvent JSON
{
"id": "afa078aebbc8ed6abbf7a90909f29c3ecc6199f81012938e1728e1028901217d",
"pubkey": "583210442b7fdbb0d7afb1e9325a4c103ad9cc0995660babcd3e553a943f6db5",
"created_at": 1768434582,
"kind": 1,
"tags": [
[
"imeta",
"url https://media.shitposter.world/shitposter.club/f7/da/ad/f7daadd814cf762b9ff4e7603c6f3a493bc13a472e133292ed5dc9b9febbae62.png?name=uOXb3piJFAQc6w.png",
"m image/png"
],
[
"proxy",
"https://shitposter.world/objects/40b826e7-9386-44fb-a7b4-dfdd84ce89a9",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "this is the jankiest fucking solution imaginable jesus fucking christ this is so cursed\nthis is SO FUCKING CURSED\n\nso to explain a bit\n\ni wanted to have a weighted loot distribution table that's easily scalable and not hardcoded without resorting to a plugin that reads an external json. \n\nso i wrote a short script that\n\n1) goes through a defined common event id (in this case, 18, which this is a screencap of)\n2) looks for every command that adds a static value to variable 37 (eg, += 10)\n3) adds each of those values together to get a cumulative weight for items in the pool\n4) compares those weights against the prand that's calculated off gameseed\n5) and writes that to variable 36\n\nthen i just compare variable 36 in the common event to get nice clean easy to write to and edit loot table common events\n\nvariable 37 isn't actually used for anything during calculation, it's just there to denote item weights, and after a long playthrough it's going to hit the engine's max integer size (999999) but it doesn't fucking matter because it's not actually USED FOR ANYTHING\n\nhttps://media.shitposter.world/shitposter.club/f7/da/ad/f7daadd814cf762b9ff4e7603c6f3a493bc13a472e133292ed5dc9b9febbae62.png?name=uOXb3piJFAQc6w.png",
"sig": "881e37efded7ba2d689c0dc57df39caf863b1e0951dc317e4f82b70159e7af385df9f6093dee303b47142da4df521797ad467333c1e5d9f832fc7dcdb6556ff9"
}