So I've set up a chest where you get five random items, it works perfect everytime until I add switch 1 to change to the next page, with the switch 1 active you get six items instead of five and one of the items is guaranteed everytime, even though there is a 1/29 chance of it showing. All other items are random.
The chest is set up with just conditional branches, as follows: (I've made it so you can't get the same item twice)
◆Control Variables:#0002 Items = 0
◆Label:Choose Items
◆If:Items = 5
◆
:Else
◆Label:Reroll
◆Control Variables:#0001 Dice = Random 1..29
◆If:Dice = 1
◆If:Party has Potion
◆Jump to Label:Reroll
◆
:Else
◆
:Else
◆Control Variables:#0002 Items += 1
◆Change Items:Potion + 1
◆Jump to Label:Choose Items
◆
:End
◆
:End
◆
:End
:End (It then continues exactly like this until all 29 possible items have been chosen)
I fixed this by changing to switch 2 instead but I don't understand why switch 1 wont work, its not being used by anything this is a new game with no plugins active, can plugins still use switches while they are inactive? Should I just give up on switch 1 and avoid using it through out the game?
The chest is set up with just conditional branches, as follows: (I've made it so you can't get the same item twice)
◆Control Variables:#0002 Items = 0
◆Label:Choose Items
◆If:Items = 5
◆
:Else
◆Label:Reroll
◆Control Variables:#0001 Dice = Random 1..29
◆If:Dice = 1
◆If:Party has Potion
◆Jump to Label:Reroll
◆
:Else
◆
:Else
◆Control Variables:#0002 Items += 1
◆Change Items:Potion + 1
◆Jump to Label:Choose Items
◆
:End
◆
:End
◆
:End
:End (It then continues exactly like this until all 29 possible items have been chosen)
I fixed this by changing to switch 2 instead but I don't understand why switch 1 wont work, its not being used by anything this is a new game with no plugins active, can plugins still use switches while they are inactive? Should I just give up on switch 1 and avoid using it through out the game?