I mean showing player sprite, I wanna make dialogue where firstly the opposing trainer is shown and he says something and then the player sprite is shown
Is this actually compatible with 21.1? I get an error in MBD.rb saying "pbCanSwitchLax" is an unknown method.
Nothing seems to set "checkLaxOnly" to true, but I'm not familiar with how the Ruby compiler works. Does it check things in an entire method only when that method is called?
It appeared when attempting to switch in a pokemon when one fainted (with two pokemon in party).
I'm not sure if this is a bug but when I set trainer's battle order, it works however, when using moves like baton pass or u-turn, the same Pokemon always comes back out rather than changing. Anyone knows if there's a fix?
It requires to make an exception for those moves in the mbd version of pbSwitchInBetween. If someone has a clean solution, I would be happy to hear it, else, I will find a crappy one
On a whim, I had previously archived the old version of this post with all your commands and copied a bunch over and commented them out on my own plugin. Let me just say: Best decision ever. These past couple months I've done so much with your script and used that archive frequently. This is great.
Anyway, I had one possible improvement you might consider, but feel free to ignore completely. So, I use your script to change the trainer's sprite when they talk. To this end, I'll have multiple sprites of a trainer and then change it for each line of dialogue. For instance, I do something like this:
Ruby:
TrainerDialogue.changeTrainerSprite("RIVAL_flex",battle.scene)
pbMessage("\\c[11]Rival GARY wants to fight!\\1")
TrainerDialogue.changeTrainerSprite("RIVAL_snark_laugh",battle.scene)
pbMessage("\\c[20]Well,\\.\\. well,\\.\\. well!\\.\\. Look what the Pikachu hacked up!\\1")
TrainerDialogue.changeTrainerSprite("RIVAL_forward_talk",battle.scene)
pbMessage("\\c[20]\\PN!\\.\\. I'm impressed you managed to crawl out of your mom's basement!\\1")
TrainerDialogue.changeTrainerSprite("RIVAL_snark_laugh",battle.scene)
pbMessage("\\c[20]But it doesn't matter!\\.\\. Because I'm going to murder your stupid waifu!\\1")
However, one minor nuisance I've found is that you can't just swap sprites because this throws an error. Rather, you have to swap to the sprite of a predefined trainer type. As a result, if one wants to use a bunch of sprites for one trainer, they have to define a lot of dummy trainer classes. Hence, my trainer_types.txt has this corresponding section:
Ruby:
[RIVAL_shock]
[RIVAL_point]
[RIVAL_forward_talk]
[RIVAL_snark_laugh]
[RIVAL_laugh]
[RIVAL_chide]
[RIVAL_flex]
Name = Rival
Gender = Male
BaseMoney = 16
BattleBGM = Plok SNES Boss Theme Ultra HD Remastered
That said, if you do make any tweaks in the future, it might be nice to find a way for the player to switch to sprites that aren't in pre-defined trainer classes. However, I also know this may break some things between the versions and might be a little complicated, when there's otherwise a simple fix. So, feel free to ignore this if you want. But at very least, thanks again for the wonderful resource!
You are totally right about this. It was like this in the original version of Golisopod User, it's still working so I never put my nose into this part of the code, except for minor compatibility changes. If I have some time for it, I'll see what I can do
after looking at it, it's not something I can change without breaking existing battlesprites. But you can do it for your copy of the plugin. Look for the changeTrainerSprite in the MBD.rb script. replacing GameData::TrainerType.front_sprite_filename(name) by
"Graphics/Trainers/{name}" might work though
This section is for the discussion of the tutorials and resources on Eevee Expo. To find tutorials and resources, check out the Tutorial and Resource Manager for optimal navigation.