• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Deluxe Battle Kit [v21.1]

Resource Deluxe Battle Kit [v21.1] v1.2.9

Because you are supposed to create the Mid Battle themselves, in a folder inside the Plugin itself, but that's only if you know what you're doing and have a minimum knowledge of Ruby.

Second, no Script Plugin will appear in the Script Editor, there it is only for the Kit's base Scripts, not custom scripts. Despite placing it above Main, but unless mentioned to do so, you should never do this with a plugin's Scripts if you don't want errors
oh ok thank you! I will look into ruby now xD
 
Lucidious89 updated Deluxe Battle Kit [v21.1] with a new update entry:

v1.2.6 Update

  • 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.

Read the rest of this update entry...
 
Animated Trainer Intros doesn't work properly if the @introText / battleIntroText rule hasn't been defined. In pbStartBattleSendOut , @scene.pbAnimateTrainerIntros is only called if it is.
I see, it works if the Improved Mementos plugin is installed, because I updated the method to work there. Just not when the normal vanilla battler send out code is called.

I updated the plugin to fix this, you can reinstall it now.
 
I just started using this resource, but now battles without mid-battle scripts will pop up with this message, while battles with mid-battle scripts will be fine.

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 2 (coords 13,7), map 88 (Dabricellia Town)
Exception: NoMethodError
Message: undefined method `length' for nil:NilClass

***Full script:
TrainerBattle.start(:RIVAL1A, "Kasey", 1)
Backtrace:
[Deluxe Battle Kit] [002] Midbattle Triggers.rb:25:in `has_any?'
[Deluxe Battle Kit] [001] Midbattle Overwrites.rb:48:in `pbDeluxeTriggers'
[Deluxe Battle Kit] [001] Midbattle Overwrites.rb:865:in `pbResetCommandsIndex'
151:Battle_ActionSwitching:293:in `block in pbSendOut'
151:Battle_ActionSwitching:292:in `each'
151:Battle_ActionSwitching:292:in `pbSendOut'
148:Battle_StartAndEnd:240:in `block in pbStartBattleSendOut'
148:Battle_StartAndEnd:197:in `each'
148:Battle_StartAndEnd:197:in `pbStartBattleSendOut'
[Deluxe Battle Kit] [003] Deluxe Battle Rules.rb:530:in `pbStartBattleSendOut'
 
I just started using this resource, but now battles without mid-battle scripts will pop up with this message, while battles with mid-battle scripts will be fine.

[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Script error in event 2 (coords 13,7), map 88 (Dabricellia Town)
Exception: NoMethodError
Message: undefined method `length' for nil:NilClass

***Full script:
TrainerBattle.start(:RIVAL1A, "Kasey", 1)
Backtrace:
[Deluxe Battle Kit] [002] Midbattle Triggers.rb:25:in `has_any?'
[Deluxe Battle Kit] [001] Midbattle Overwrites.rb:48:in `pbDeluxeTriggers'
[Deluxe Battle Kit] [001] Midbattle Overwrites.rb:865:in `pbResetCommandsIndex'
151:Battle_ActionSwitching:293:in `block in pbSendOut'
151:Battle_ActionSwitching:292:in `each'
151:Battle_ActionSwitching:292:in `pbSendOut'
148:Battle_StartAndEnd:240:in `block in pbStartBattleSendOut'
148:Battle_StartAndEnd:197:in `each'
148:Battle_StartAndEnd:197:in `pbStartBattleSendOut'
[Deluxe Battle Kit] [003] Deluxe Battle Rules.rb:530:in `pbStartBattleSendOut'
Did you make edits to the DBK plugin? Some of these error lines just dont match up with whats in the plugin. It also doesnt make any sense how there could be a situation where no midbattle scripts exist (since global scripts are always present), unless you physically removed them from the code.
 
Did you make edits to the DBK plugin? Some of these error lines just dont match up with whats in the plugin. It also doesnt make any sense how there could be a situation where no midbattle scripts exist (since global scripts are always present), unless you physically removed them from the code.
I just redownloaded everything, and it works just fine now
 
Does DBK allow you to force the player to select less than 6 Pokemon from their party for a battle (ie, selecting 3 Pokemon for a gym battle)? I know I could make a check that disallows the player from starting the battle if they have more than the allowed number in their party, but it'd feel more elegant gameplay-wise for there to be a screen that pops up before the battle that says "select 3 Pokemon" rather than forcing the player to go rearrange their party.
 
Does DBK allow you to force the player to select less than 6 Pokemon from their party for a battle (ie, selecting 3 Pokemon for a gym battle)? I know I could make a check that disallows the player from starting the battle if they have more than the allowed number in their party, but it'd feel more elegant gameplay-wise for there to be a screen that pops up before the battle that says "select 3 Pokemon" rather than forcing the player to go rearrange their party.
This was literally added in the last update. Check the update notes.
 
Thank you so much for adding the functionality to select the number of Pokemon used in the battle.
Are there any plans to add other challenge-like functions such as, Level Adjustment, Restricted Species, Banned Species, Duplicate Species, or Duplicate Items?
 
Thank you so much for adding the functionality to select the number of Pokemon used in the battle.
Are there any plans to add other challenge-like functions such as, Level Adjustment, Restricted Species, Banned Species, Duplicate Species, or Duplicate Items?
Nope. This was a throwaway addition that got put in on a whim only because it took like 30 seconds to make. Ive put zero thought into it beyond that and have no plans on expanding on it.

All of that stuff sounds like Battle Frontier features, anyway, and would be better off as part of a more dedicated battle facility overhaul. Though I feel like half of those things are already present in Essentials.
 
Nope. This was a throwaway addition that got put in on a whim only because it took like 30 seconds to make. Ive put zero thought into it beyond that and have no plans on expanding on it.

All of that stuff sounds like Battle Frontier features, anyway, and would be better off as part of a more dedicated battle facility overhaul. Though I feel like half of those things are already present in Essentials.
Yeah all of that stuff is in the Battle Frontier. It's just not easily available for non-frontier battles... at least from I can see.

But thanks again for all your work.
 
Yeah all of that stuff is in the Battle Frontier. It's just not easily available for non-frontier battles... at least from I can see.

But thanks again for all your work.
Well, the party selection code I added was directly lifted from the Battle Frontier code. Thats why I say it took like 30 seconds to add, I literally just copy/pasted what already exists in Essentials. I see no reason why you can just do the same with all the Battle Frontier rules.
 
Hi, first of all, congratulations Lucidious89 (and the rest of the participants) for the incredible resource you've created.
I recently downloaded the latest version of the plugin, 1.2.6, and I've been reading almost all of the documentation.
I intend to use the RaidBoss battles feature, so that it's a story-based battle from which you can't escape and must defeat the boss.

To do this, I've combined this three Battle Rules:
  • [vanilla] setBattleRule("cannotRun")
  • [vanilla] setBattleRule("disablePokeBalls")
  • [DBK] Pokemon.immunities = [:OHKO, :ESCAPE, :ITEMREMOVAL]
And as the DBK documentation clearly states:
  • Immunity::ESCAPE: "Effects that would cause the user to force themselves to flee from battle, such as through the effects of Teleport, Emergency Exit, or Wimp Out, will also fail to work."
But this only affects the RaidBoss, not the player. Is there a way to make it so the player can't escape the fight and must defeat it to continue? Something like:
  • setBattleRule("cannotEscape")
And somehow disable Teleport, Emergency Exit, and Wimp Out for the player as well?
So far, I've tried using Teleport with a Kadabra, and the fight effectively ends.

Is it on the DBK roadmap? Or should I find a way to do it myself? (So I don't have to do the work twice).

Thank you very much, greetings.
 
Hi, first of all, congratulations Lucidious89 (and the rest of the participants) for the incredible resource you've created.
I recently downloaded the latest version of the plugin, 1.2.6, and I've been reading almost all of the documentation.
I intend to use the RaidBoss battles feature, so that it's a story-based battle from which you can't escape and must defeat the boss.

To do this, I've combined this three Battle Rules:
  • [vanilla] setBattleRule("cannotRun")
  • [vanilla] setBattleRule("disablePokeBalls")
  • [DBK] Pokemon.immunities = [:OHKO, :ESCAPE, :ITEMREMOVAL]
And as the DBK documentation clearly states:
  • Immunity::ESCAPE: "Effects that would cause the user to force themselves to flee from battle, such as through the effects of Teleport, Emergency Exit, or Wimp Out, will also fail to work."
But this only affects the RaidBoss, not the player. Is there a way to make it so the player can't escape the fight and must defeat it to continue? Something like:
  • setBattleRule("cannotEscape")
And somehow disable Teleport, Emergency Exit, and Wimp Out for the player as well?
So far, I've tried using Teleport with a Kadabra, and the fight effectively ends.

Is it on the DBK roadmap? Or should I find a way to do it myself? (So I don't have to do the work twice).

Thank you very much, greetings.
The "cannotRun" battle rule in vanilla Essentials already does what you want. The "cannotRun" rule doesn't just prevent the player from clicking the "Run" option; it prevents all methods of fleeing, such as Teleport, Emergency Exit, and even being hit by the opponent's Roar/Whirlwind.
 
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: TypeError
Message: no implicit conversion from nil to integer

Backtrace:
[Deluxe Battle Kit] [001] Midbattle Overwrites.rb:329:in `pbMessagesOnReplace'
Battle_ActionSwitching:224:in `pbRecallAndReplace'
[[DBK] Dynamax] [011] Battle.rb:207:in `pbRecallAndReplace'
Battle_ActionSwitching:196:in `block (2 levels) in pbEORSwitch'
Battle_ActionSwitching:151:in `each'
Battle_ActionSwitching:151:in `block in pbEORSwitch'
Battle_ActionSwitching:149:in `loop'
Battle_ActionSwitching:149:in `pbEORSwitch'
Battle_EndOfRoundPhase:705:in `pbEndOfRoundPhase'
Battle_Clauses:41:in `pbEndOfRoundPhase'


I get this error after a pokemon fainted and switched and only then I think the issue is idxParty but I have no clue from there
 
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: TypeError
Message: no implicit conversion from nil to integer

Backtrace:
[Deluxe Battle Kit] [001] Midbattle Overwrites.rb:329:in `pbMessagesOnReplace'
Battle_ActionSwitching:224:in `pbRecallAndReplace'
[[DBK] Dynamax] [011] Battle.rb:207:in `pbRecallAndReplace'
Battle_ActionSwitching:196:in `block (2 levels) in pbEORSwitch'
Battle_ActionSwitching:151:in `each'
Battle_ActionSwitching:151:in `block in pbEORSwitch'
Battle_ActionSwitching:149:in `loop'
Battle_ActionSwitching:149:in `pbEORSwitch'
Battle_EndOfRoundPhase:705:in `pbEndOfRoundPhase'
Battle_Clauses:41:in `pbEndOfRoundPhase'


I get this error after a pokemon fainted and switched and only then I think the issue is idxParty but I have no clue from there
You need to provide a lot more information than this, because I just tested a 1v1 battle with a trainer and let them KO my entire party, and could not replicate this error.
 
It exclusively does this in wild battles
Again, I need a lot more details. I let a Lvl 100 Mewtwo one-shot my entire party and couldn't replicate the error. So what you're providing me isn't nearly the full picture in regards to what is causing the error.

What plugins are installed, what Pokemon is KOing you, what's your party, what battle size (Single? Doubles? Triples? etc), does the player have a partner, if not then how large is the party, etc...

On and on and on. The more details that may be relevant, the better.
 
Back
Top