Trap Chest Tutorial Request

So, I'm trying to figure out how to make a chest that will give your party a random state as opposed to giving you an item. I've watched tutorials on how to make "random item loot" chests to see if I can pull anything from them, but I can't figure out how to implement this for state changes. Can anyone provide a tutorial for this?
The Change State command doesn't have a "Variable" option [edit: well it does, but only for the target, not the state], but you can still use branches to pick a random outcome in a similar way. E.g.

◆Control Variables:#0001 Trap Type = Random 1..3 ◆If:Trap Type = 1 ◆Change State:Entire Party, + Poison ◆ :End ◆If:Trap Type = 2 ◆Change State:Entire Party, + Blind ◆ :End ◆If:Trap Type = 3 ◆Change State:Entire Party, + Sleep ◆ :End
The Change State command doesn't have a "Variable" option, but you can still use branches to pick a random outcome in a similar way. E.g.

◆Control Variables:#0001 Trap Type = Random 1..3 ◆If:Trap Type = 1 ◆Change State:Entire Party, + Poison ◆ :End ◆If:Trap Type = 2 ◆Change State:Entire Party, + Blind ◆ :End ◆If:Trap Type = 3 ◆Change State:Entire Party, + Sleep ◆ :End

Thank you so much! This is incredibly helpful!

Original thread: https://forums.rpgmakerweb.com/threads/trap-chest-tutorial-request.156354/