• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Script: Deluxe Battle Kit [v21.1]

yep, hopefully this showcases it well enough
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.
 
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.
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.
 

Attachments

  • [PokeCommunity.com] Deluxe Battle Kit [v21.1]
    example1.png
    12.1 KB · Views: 4
Minor Update (v1.2.5)
  • Fixed issues with midbattle scripting that could cause crashes when a battler faints in certain situations.
  • Fixed issues with raid-style captures vs a single wild Pokémon. It should no longer be possible to capture the Pokemon and lose the battle in the same turn.
  • Fixed how raid-style captures work vs multiple wild Pokémon. If you capture one wild Pokémon but lose the battle before defeating/capturing the remaining wild Pokémon, you will still be able to keep the Pokémon you did capture if the 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.
  • Fixed several awkward visual bugs related to raid-style captures when the Animated Pokemon System add-on is installed.
  • Tweaked some of the code for Shadow Pokemon patterns for better compatibility with the Following Pokemon EX 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 :/
 
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.
 
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 :/
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.

I generally do multiple midbattle script in a single battlerule command before the battle and it works for me.
 
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.

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.
 
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.
The gimmicks work on a priority system if multiple are available at once.

Ultra Burst > Z-Moves > Megas > Dynamax > Tera

It has to work this way because there is only a single gimmick button in battle that all of the mechanics share, so there can't be any situations where more than one gimmick is available at the same time. To implement what you wanted, youd have to restructure the whole battle UI to support multiple different on-screen gimmick buttons, and I dont care enough about such a niche feature to invest that much work into it.
 
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.
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 😅
 
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.

I generally do multiple midbattle script in a single battlerule command before the battle and it works for me.
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
 
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 😅
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.
 
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
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.
 
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.
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.
 
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.
Ok i will look into that again. Thank you very much!
 
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.
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.
 
That's so cool that will be such a big help! Can't wait to test it out when it releases 😄
Have you checked this plugin?

 
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.
That's so cool that will be such a big help! Can't wait to test it out when it releases 😄
Have you checked this plugin?

Oh i haven't seen this one yet. I'll check it out on the weekend but it looks like it would be perfect
 
Minor Update (v1.2.6)
  • Added a new battle call, 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.
  • Made various changes for compatibility for the upcoming Animated Trainer Intros add-on plugin.
 
Back
Top