- 3
- Posts
- 8
- Years
- Seen Mar 14, 2025
yep, hopefully this showcases it well enoughCould you show an example of what you mean, exactly?
yep, hopefully this showcases it well enoughCould you show an example of what you mean, exactly?
Could you list the plugins you're using? I swear I remember one other person having this issue a long time ago, but I can't remember what the cause or solution was. It's definitely an obscure issue though, since you're one of two people who have ever encountered this. So I have to imagine the issue is something outside of the plugin itself.yep, hopefully this showcases it well enough
Here they are, It's not the end of the world since it doesn't break anything and most use cases of the mid battle scripts I've used don't cause the issue, but if there's a glaring conflict I wouldn't mind knowing either.Could you list the plugins you're using? I swear I remember one other person having this issue a long time ago, but I can't remember what the cause or solution was. It's definitely an obscure issue though, since you're one of two people who have ever encountered this. So I have to imagine the issue is something outside of the plugin itself.
cannotLose
Battle Rule is enabled. If this rule is not enabled, then all captured Pokémon in this battle will be lost, and the game will treat things as if you never captured the Pokemon.Don't know about choosing up to 3 pokémon. Maybe you could set a new variable in regular essentials and use it to modify the party maximum size.Does someone know how i can make the Player choose up to 3 pokemon before a fight, for like a gymbattle? Cant figure it out with this plugin.
Also im Kinda confused how to write a battle with more then one mid battle Script. I can only get 1 mid battle Script per battle to work. The example trainers arent helping me :/
Choosing Pokemon for a fight isn't a feature of this plugin.Does someone know how i can make the Player choose up to 3 pokemon before a fight, for like a gymbattle? Cant figure it out with this plugin.
Also im Kinda confused how to write a battle with more then one mid battle Script. I can only get 1 mid battle Script per battle to work. The example trainers arent helping me :/
The gimmicks work on a priority system if multiple are available at once.Is there a way to give the player a choice about which generational gimmick they want to use? From what I saw, the Tera plugin doesn't let you choose the dynamax option unless you already terastalized another pokemon if you have the option of using both dinamics. Also, if the pokemon can mega evolve or use a Z-move, neither the tera option or the dynamax option appear. I would like to let the player use the gimmick they think suits their situation better.
I tried putting multiple midbattle scripts in to one script but i probably cant get the right format when writing it, so it crashes all the time. I just wanted to have the enemie say something in different scenarios like battle start, last pokemon, used weak move and so on. Could you maybe give me an example how a code would look like with multiple midbattle commands in one script?Choosing Pokemon for a fight isn't a feature of this plugin.
Idk what you mean by "more than one" midbattle script. Why would you need more than one? Just put everything you want to happen in the battle in the one script.
Idk my head tells me it shouldnt be taht complicated because there is the battle tower example. Before you start that challenge it prompts you to pick 3 suitable Pokemon of your party but takingn that code and adding it to my gymleader makes the game crash. There is also this code called pbChoosePokemon(1,3) which also isnt working for me. so maybe it doesnt work on 21.1 i have no ideaDon't know about choosing up to 3 pokémon. Maybe you could set a new variable in regular essentials and use it to modify the party maximum size.
I generally do multiple midbattle script in a single battlerule command before the battle and it works for me.
There's already a dozen of different examples both in the guide and in the plugin itself. There's plenty that you can legit just copy/paste and edit with your content so you dont even have to worry about formatting at all.I tried putting multiple midbattle scripts in to one script but i probably cant get the right format when writing it, so it crashes all the time. I just wanted to have the enemie say something in different scenarios like battle start, last pokemon, used weak move and so on. Could you maybe give me an example how a code would look like with multiple midbattle commands in one script?
And im not sure if i need to put that code in the trainer event before battle or if i use the script file in the mod folder... Im not good at coding at all 😅
It's actually a lot more complicated than you'd think, but it sorta depends on how you want it to work. You can use pbChoosePokemon (which works fine in v21.1), but it's only designed to select one Pokemon from the party at a time. So it's not really suited to your needs, because it would be slow and clunky (opening and closing the party screen for each selection), and you would also have to implement some way for it to prevent the player from selecting the same Pokemon multiple times.Idk my head tells me it shouldnt be taht complicated because there is the battle tower example. Before you start that challenge it prompts you to pick 3 suitable Pokemon of your party but takingn that code and adding it to my gymleader makes the game crash. There is also this code called pbChoosePokemon(1,3) which also isnt working for me. so maybe it doesnt work on 21.1 i have no idea
yeah you're probably right xD well i will move that problem to the side then. Maybe at some point in the future i will be able to make it work.It's actually a lot more complicated than you'd think, but it sorta depends on how you want it to work. You can use pbChoosePokemon (which works fine in v21.1), but it's only designed to select one Pokemon from the party at a time. So it's not really suited to your needs, because it would be slow and clunky (opening and closing the party screen for each selection), and you would also have to implement some way for it to prevent the player from selecting the same Pokemon multiple times.
You could do it how the Battle Tower does it, which allows you to select multiple Pokemon to form a party with at once, but Battle Tower parties are temporary and are deleted after use. This usually doesnt matter, since Pokemon dont gain any Exp in the Battler Tower, but if you use this for a Gym Battle or something, then any exp, levels, new moves, evolutions, etc, that your battle party gains during the fight will be lost after the battle is over.
So to do what you want to do would require coding something completely unique that is built specifically for your purposes. I dont think it would be hard to do, but it would likely be outside of your current skill level.
Ok i will look into that again. Thank you very much!There's already a dozen of different examples both in the guide and in the plugin itself. There's plenty that you can legit just copy/paste and edit with your content so you dont even have to worry about formatting at all.
Im just gonna add it as a feature in DBK. I started tinkering with it out of curiosity and I already made something that works.yeah you're probably right xD well i will move that problem to the side then. Maybe at some point in the future i will be able to make it work.
That's so cool that will be such a big help! Can't wait to test it out when it releases 😄Im just gonna add it as a feature in DBK. I started tinkering with it out of curiosity and I already made something that works.
Have you checked this plugin?That's so cool that will be such a big help! Can't wait to test it out when it releases 😄
That's so cool that will be such a big help! Can't wait to test it out when it releases 😄Im just gonna add it as a feature in DBK. I started tinkering with it out of curiosity and I already made something that works.
Oh i haven't seen this one yet. I'll check it out on the weekend but it looks like it would be perfectHave you checked this plugin?
![]()
v21.1 - [v13+] Pokémon Selection
Pokémon selection system similar to Stadium/Battle Tower, where you can choose a certain number and order of pokémon. Tested on Essentials v13, v18.1, v19.1, v20.1 and v21.1. If this script isn't working on latest Essentials version, please...eeveeexpo.com
TrainerBattle.select_start(size, *args)
, which allows you to set up a trainer battle where the player must first select a specific number of party members to participate in battle. Set size
to the number of battlers the player must bring, where args
can be the normal trainer battle criteria.