Strange request. Well, I tested here and worked. Try:
overworld = [
"BRANDEN"
]
battle = [
"POKEMONTRAINER_BRANDEN"
]
r = startCharacterSelection(overworld, battle)
pbChangePlayer(r + 1)If it doesn't work, try using the plugin's latest version.
I don't get it. The original script has these features. What is missing?
Remember: The original script allows changing levels and other stuff, use it together with the code that I gave you to limit bag access.
A tip: AIs may make everything worse if you don't know how to use it or know little...
Try using my version and changing the selected variable (variable 90 to 3, if you didn't change the script default values). If it didn't work, maybe some other script was messing, try testing on a vanilla Essentials.
Use code tags when posting code here. I don't know what is "imath" here.
I tested my script with
class Battle::Scene
alias hardmode_no_items_pbItemMenu pbItemMenu
def pbItemMenu(idxBattler, firstAction)
if pbGet(DifficultyModes::VARIABLE)==3 && @battle.trainerBattle...
DifficultyModes.hard_mode? doesn't work (without changes). hard_mode is a local variable in a method, not a method/property itself, much less a class method (to be called without an instance).
Use pbGet(DifficultyModes::VARIABLE)==3 instead.
There is a big "Installation" at the main link. It links to another file, with it own "Installation" part. If you didn't understand the instructs at this second file, feel free to ask.
Strange, I tested now with MUI v2.0.1 and v2.0.9 (latest) and both are working here. Try to recompile the plugins (hold shift when restarting the game).