I've set up a custom menu with pictures, and the menu itself functions perfectly but I'm struggling when it comes to showing the right item pictures. There are only three items that the player can have at one time and they're supposed to have a priority order (item A before item B, item B before item C).
The priority works fine in any other case, but I realized that the way I wrote my code means that if the player only has items B and C, the item with the higher priority will occupy both the first and second slots. I can't think of a way to fix this so if anyone can offer a solution I would appreciate it! I've attached the code.
The section of code in question that is giving me issues is the Conditional Branch for "variable [cursor position] == 2", otherwise the priority order for positions 1 and 3 are perfectly fine. If more info is needed, I'd be happy to explain.
The priority works fine in any other case, but I realized that the way I wrote my code means that if the player only has items B and C, the item with the higher priority will occupy both the first and second slots. I can't think of a way to fix this so if anyone can offer a solution I would appreciate it! I've attached the code.
The section of code in question that is giving me issues is the Conditional Branch for "variable [cursor position] == 2", otherwise the priority order for positions 1 and 3 are perfectly fine. If more info is needed, I'd be happy to explain.