- Pokémon Essentials Version
- v21.1 ✅
- Also compatible with
- v21.1
I recommend the base by TechSkylander1518 Battle Size Options if you want the player to have full control.
My addition merely adds a very simple trainer check that the player can toggle on and off if you allow that option.
Essentially, if you type pbTripleBattleSet before you run the trainer conditional, if the player has 3 or 6 pokemon the NPC will attempt a triple battle. If the conditions are not met however, the trainer will run a single battle.
If you need a simple block of code to run based on trainer version to check this, here is what I've been using. Split it in two and place it in an event, or make your own pbTrainerCheck for it (I'll be releasing my Quick-Trainer-Adjustments plugin later which will include this code, but that won't be for a while).
In my game, I have a code that checks what your alloted max party size is and changes the version based on that, from there each version has a specific number of pokemon (2→3→4 for standard trainers and 2→4→6 for non-optional double battles) so I then run pb?BattleSet based on how many pokemon that version has, and then my conditional contains this script
If you'd like to run this without having to deal with checking player party you can just set
And type out the conditional as you normally would only replacing the version part
My addition merely adds a very simple trainer check that the player can toggle on and off if you allow that option.
Essentially, if you type pbTripleBattleSet before you run the trainer conditional, if the player has 3 or 6 pokemon the NPC will attempt a triple battle. If the conditions are not met however, the trainer will run a single battle.
If you need a simple block of code to run based on trainer version to check this, here is what I've been using. Split it in two and place it in an event, or make your own pbTrainerCheck for it (I'll be releasing my Quick-Trainer-Adjustments plugin later which will include this code, but that won't be for a while).
Ruby:
if pbGetMaxPartySize <= 2
$tr_V = ""
pbDoubleBattleSet
elsif pbGetMaxPartySize <= 4
$tr_V = ", 1"
pbTripleBattleSet
else
$tr_V = ", 2"
pbDoubleBattleSet
$tr_type = "LADY"
$tr_img = $tr_type
$tr_name = "Aria"
$tr_ex = $tr_name + $tr_V
end
In my game, I have a code that checks what your alloted max party size is and changes the version based on that, from there each version has a specific number of pokemon (2→3→4 for standard trainers and 2→4→6 for non-optional double battles) so I then run pb?BattleSet based on how many pokemon that version has, and then my conditional contains this script
Ruby:
TrainerBattle.start($tr_type, $tr_ex)
If you'd like to run this without having to deal with checking player party you can just set
Ruby:
$tr_V = ", 2"
pbDoubleBattleSet
And type out the conditional as you normally would only replacing the version part
- Credits
- Credit if Used
Ivory (Trainer Check code)