- Joined
- Apr 5, 2019
- Messages
- 9
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMVXA
I've been scouring the internet for an answer to this for awhile with no clear result, so I'll make it as clear as possible so there's no confusion.
I need a way/method to hide/remove/disable the Items Command while in the middle of a battle (imperative), and also to turn it back on again (less important). Also, unless there's a pre-built-in script call to remove :item from the commands list after it's added, that won't work for this.
If "Items" is just not selectable without a toggle of some sort, that's fine too (if not better).
I've been experimenting with Yanfly Battle Commands a bit, but yielded no clear results. Closest I got is:
The only conclusion being if I set it to FALSE, "Items" option appears. Set it to TRUE, "Items" doesn't appear. Either way it disregards whether the switch[#98] is actually on or off, before or in battle.
I'm willing to try this with or without an additional material script, so any help or suggestions are welcome.
I need a way/method to hide/remove/disable the Items Command while in the middle of a battle (imperative), and also to turn it back on again (less important). Also, unless there's a pre-built-in script call to remove :item from the commands list after it's added, that won't work for this.
If "Items" is just not selectable without a toggle of some sort, that's fine too (if not better).
I've been experimenting with Yanfly Battle Commands a bit, but yielded no clear results. Closest I got is:
Code:
return if $game_switches[98] = false
add_item_command
I'm willing to try this with or without an additional material script, so any help or suggestions are welcome.