[EDIT: sorry for not putting "question" in the title, I always forget]
Hi guys, I've been stuck on a seemingly simple coding issue for a few hours. I just need the down and up buttons to scroll through the menu at the bottom right.
if Input.trigger?(Input::LEFT) && (curindex&1)==1
elsif Input.trigger?(Input::RIGHT) && (curindex&1)==0
elsif Input.trigger?(Input::UP) && (curindex&2)==2
elsif Input.trigger?(Input::DOWN) && (curindex&2)==0
I'm not very code savvy, so I tried to make sense of it and tried various number/button combos, but nothing came to fruition. I'm sure it's because the original menu does not scroll all the way through, but alas I can't figure it out.
Any help would be awesome, because the system works 100% otherwise.
Now that I look at it, it's a bit odd how the battle commands work. Rather than using the perfectly valid built-in controls, it instead made the new def pbNextIndex to do the exact same thing.
Actually, it's probably a remnant from an older way it used to work, before it used Window_CommandPokemon. I'm not sure how it all makes sense, as it appears that both ways are working at once.
Anyway, try this:
The only downside to this is that this also applies to the fight menu. If you wanted that to be a straight list too, then problem solved, but if you wanted it to be 2x2, you'd have to do something extra to keep it the way it is.