• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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]

The calculation of hp from base stats done by the calchp code in the Pokémon-Pokémon section of the Essentials scripts. It happens everywhere, constantly. I am determining this by using the same script with and without the Deluxe Battle Kit added to my game.

No matter what you change the numbers to in the return section, it does not change how much hp the pokémon has.

# @return [Integer] the maximum HP of this Pokémon
def calcHP(base, level, iv, ev)
return 1 if base == 1 # For Shedinja
iv = ev = 0 if Settings::DISABLE_IVS_AND_EVS
return (((base * 2) + iv + (ev / 4)) * level / 100).floor + level + 10
end
Oh, so the issue isn't that DBK is overwriting stat calculations. The issue is that *you* are trying to overwrite stat calculations, and your overwrites aren't being recognized.

This is because DBK overwrites calcHP to allow for Boss/Dynamax HP. So youll have to make your edits in the plugin.
 
I followed the instructions for installing this (and enhanced UI) multiple times, but the sprites for mega evolved pokemon are still missing in my files. What part did I miss? Grateful for help.
 
I followed the instructions for installing this (and enhanced UI) multiple times, but the sprites for mega evolved pokemon are still missing in my files. What part did I miss? Grateful for help.
This plugin doesn't include any Pokemon sprites.
 
Report:In a battle with "battleBGM" rule I set a custom BGM but after low HP music fades it returns to default battle BGM.
Im fairly certain this was fixed in v1.0.9
 
Minor Update (v1.1.1)
  • Fixed damage calculations related to certain Gen 9 abilities.
  • Removed Relic Castle link from the meta file.
 
Hello again, I believe I may have run into a problem with using the variables feature. I was making a battle with speech playin after the player sends out a grass type pokemon, which works, but I decided to try out the variable feature. I couldn't make it work, so I decided to make another trainer battle using the code in the Gitbook tutorial, and it worked. I'm not sure if I messed something up, so help will be appreciated.

Ruby:
setBattleRule("Single")
setBattleRule("midbattleScript", {
  "RoundStartCommand" => {
   "setVariable" => 1
  },
  "AfterSendOut_GRASS_player_repeat" => {
    "speech"   => "Works!", 
    "addVariable" => 1   
  },
  "Variable_2" => {
    "speech"   => "Works again!" 
  }
})
TrainerBattle.start(:YOUNGSTER, "Ben")
 
Hello again, I believe I may have run into a problem with using the variables feature. I was making a battle with speech playin after the player sends out a grass type pokemon, which works, but I decided to try out the variable feature. I couldn't make it work, so I decided to make another trainer battle using the code in the Gitbook tutorial, and it worked. I'm not sure if I messed something up, so help will be appreciated.

Ruby:
setBattleRule("Single")
setBattleRule("midbattleScript", {
  "RoundStartCommand" => {
   "setVariable" => 1
  },
  "AfterSendOut_GRASS_player_repeat" => {
    "speech"   => "Works!",
    "addVariable" => 1  
  },
  "Variable_2" => {
    "speech"   => "Works again!"
  }
})
TrainerBattle.start(:YOUNGSTER, "Ben")
Can you clarify what is and isn't working? I copy/pasted your code and it works fine for me. I'm not sure what the problem is, exactly.
 
BGM set in setBattleRule one can't be restored although I have installed v1.1.1. Midbattle ones can be restored as expected.
Was the opposite before. Sigh. I guess fixing one broke the other.
 
BGM set in setBattleRule one can't be restored although I have installed v1.1.1. Midbattle ones can be restored as expected.
Ok, it should be fixed now.
 
hi wondering if you could help me, i keep getting this error code when fighting gastly, haunter and gengar. ive worked out that it seems to be when they've learnt SPITE. i thought it was the dbk z power but deleting that hasnt got rid of it.


ive now deleted spite from gastly and everything is working fine for the time being
this is the pbs file which seems normal and the error is attached.
thanks
#-------------------------------
[SPITE]
Name = Spite
Type = GHOST
Category = Status
Accuracy = 100
TotalPP = 10
Target = NearOther
FunctionCode = LowerPPOfTargetLastMoveBy4
Flags = CanProtect,CanMirrorMove,ZPower_HealUser
Description = The user unleashes its grudge on the move last used by the target by cutting 4 PP from it.
#-------------------------------

[PokeCommunity.com] Deluxe Battle Kit [v21.1]
 
hi wondering if you could help me, i keep getting this error code when fighting gastly, haunter and gengar. ive worked out that it seems to be when they've learnt SPITE. i thought it was the dbk z power but deleting that hasnt got rid of it.


ive now deleted spite from gastly and everything is working fine for the time being
this is the pbs file which seems normal and the error is attached.
thanks
#-------------------------------
[SPITE]
Name = Spite
Type = GHOST
Category = Status
Accuracy = 100
TotalPP = 10
Target = NearOther
FunctionCode = LowerPPOfTargetLastMoveBy4
Flags = CanProtect,CanMirrorMove,ZPower_HealUser
Description = The user unleashes its grudge on the move last used by the target by cutting 4 PP from it.
#-------------------------------

View attachment 157588
Seems like it might just be an Essentials bug, tbh. Because nothing plugin related seems to be called here. Ill take a look later.
 
Can you clarify what is and isn't working? I copy/pasted your code and it works fine for me. I'm not sure what the problem is, exactly.
Hello, sorry for not clarifying. My problem is that when the first speech starts, it increases the variable to 2 which will trigger another speech, but it does not happen.
 
Hello, sorry for not clarifying. My problem is that when the first speech starts, it increases the variable to 2 which will trigger another speech, but it does not happen.
Yeah but like I said, the code you posted works perfectly fine for me though, which is why I'm not understanding what the problem is that you're having.

>Every time a Grass-type is switched in, the message "Works!" appears.
>When the variable reaches 2, the message "Works again!" appears.

What else are you expecting to happen that isn't happening?
 
Back
Top