MZ I need some help with Random loot

Hey, so I am trying to have some chests spawn random loot on one of my maps, it seems to work for a short time, but then just keep giving the first option after about two or three chests on the map. I am doing this through a common event, and the images below are the contitional branch tree I am using.
Random Loot 1.png
Random Loot 2.png
Random Loot 3.png
Random loot 4.png


I have slo highlighted the relevant section of my stream to show what it is doing. When it is done I will either edit this post, or put it in a comment below. Thanks for any help you can give, and I am sorry if this has been asked before, I did look to see if it has been answered, but I could not find a post about it.

Edit: Here is the link to the stream Highlight:
youre adding to your variable instead of setting it. eventually only the branch that would be ran is that first one
youre adding to your variable instead of setting it. eventually only the branch that would be ran is that first one
...Thank you. This is what happens when I decide to go for 4 and a half hours after getting home from work. You are awesome.

I can't believe I missed that.
As a followup question, If I used the same variable for a different random loot event, would it bugger everything up, or no? [I want to try and avoid variable bloat.]
Considering as you set the variable every time you activate the event, no.
just one tip:
you can simplify the event to work without the elses and without the double boundary check, if you sort the numbers correctly and use exit event processing after each loot section, something like:

if loot >= 90
>> give loot90+
>> exit event processing
if loor >= 80
>> give loot80+
>> exit event processing

and so on. that can be read a lot easier and has the same result
just one tip:
you can simplify the event to work without the elses and without the double boundary check, if you sort the numbers correctly and use exit event processing after each loot section, something like:

if loot >= 90
>> give loot90+
>> exit event processing
if loor >= 80
>> give loot80+
>> exit event processing

and so on. that can be read a lot easier and has the same result
THnks, tbf the double boundary check was becasue I had thought [wrongly, obv.] it would fix it, the first was just a grip of nested entries with the bottom boundary selected.

But I will keep this in mind in the future, thanks.

Original thread: https://forums.rpgmakerweb.com/threads/i-need-some-help-with-random-loot.178092/