• 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!
Generation 9 Resource Pack [v21.1] (Updated with Indigo Disk contents)

Resource Generation 9 Resource Pack [v21.1] (Updated with Indigo Disk contents) 3.3.2

Hi!

I'm trying to give Cosplay Pikachu in my game a custom Zero To Hero ability, so it would become Pikachu Libre when you switch it out.
I've gotten it to change when I switch it out and send it back in again, but despite having copied the code from Zero To Hero, the new ability, "Secret Identity", won't return Pikachu to its Cosplay Form.

Since you wrote the original code for Zero To Hero in this Gen 9 Resource Pack, I hoped you could help?

Ruby:
Expand Collapse Copy
#===============================================================================
# Zero To Hero
#===============================================================================
Battle::AbilityEffects::OnSwitchIn.add(:ZEROTOHERO,
  proc { |ability, battler, battle, switch_in|
    next if !battler.isSpecies?(:PALAFIN)
    next if battler.form == 0 || battler.ability_triggered?
    battle.pbShowAbilitySplash(battler)
    battle.pbDisplay(_INTL("{1} underwent a heroic transformation!", battler.pbThis))
    battle.pbHideAbilitySplash(battler)
    battle.pbSetAbilityTrigger(battler)
  }
)

Battle::AbilityEffects::OnSwitchOut.add(:ZEROTOHERO,
  proc { |ability, battler, endOfBattle|
    next if !battler.isSpecies?(:PALAFIN)
    next if battler.form == 1 || endOfBattle
    PBDebug.log("[Ability triggered] #{battler.pbThis}'s #{battler.abilityName}")
    battler.pbChangeForm(1, "")
  }
)

#===============================================================================
# Secret Identity
#===============================================================================
Battle::AbilityEffects::OnSwitchIn.add(:SECRETIDENTITY,
  proc { |ability, battler, battle, switch_in|
    next if !battler.isSpecies?(:PIKACHU)
    next if battler.form == 2 || battler.ability_triggered?
    battle.pbShowAbilitySplash(battler)
    battle.pbDisplay(_INTL("{1} underwent a heroic transformation!", battler.pbThis))
    battle.pbHideAbilitySplash(battler)
    battle.pbSetAbilityTrigger(battler)
  }
)

Battle::AbilityEffects::OnSwitchOut.add(:SECRETIDENTITY,
  proc { |ability, battler, endOfBattle|
    next if !battler.isSpecies?(:PIKACHU)
    next if battler.form == 3 || endOfBattle
    PBDebug.log("[Ability triggered] #{battler.pbThis}'s #{battler.abilityName}")
    battler.pbChangeForm(3, "")
  }
)
 
Hi!

I'm trying to give Cosplay Pikachu in my game a custom Zero To Hero ability, so it would become Pikachu Libre when you switch it out.
I've gotten it to change when I switch it out and send it back in again, but despite having copied the code from Zero To Hero, the new ability, "Secret Identity", won't return Pikachu to its Cosplay Form.

Since you wrote the original code for Zero To Hero in this Gen 9 Resource Pack, I hoped you could help?

Ruby:
Expand Collapse Copy
#===============================================================================
# Zero To Hero
#===============================================================================
Battle::AbilityEffects::OnSwitchIn.add(:ZEROTOHERO,
  proc { |ability, battler, battle, switch_in|
    next if !battler.isSpecies?(:PALAFIN)
    next if battler.form == 0 || battler.ability_triggered?
    battle.pbShowAbilitySplash(battler)
    battle.pbDisplay(_INTL("{1} underwent a heroic transformation!", battler.pbThis))
    battle.pbHideAbilitySplash(battler)
    battle.pbSetAbilityTrigger(battler)
  }
)

Battle::AbilityEffects::OnSwitchOut.add(:ZEROTOHERO,
  proc { |ability, battler, endOfBattle|
    next if !battler.isSpecies?(:PALAFIN)
    next if battler.form == 1 || endOfBattle
    PBDebug.log("[Ability triggered] #{battler.pbThis}'s #{battler.abilityName}")
    battler.pbChangeForm(1, "")
  }
)

#===============================================================================
# Secret Identity
#===============================================================================
Battle::AbilityEffects::OnSwitchIn.add(:SECRETIDENTITY,
  proc { |ability, battler, battle, switch_in|
    next if !battler.isSpecies?(:PIKACHU)
    next if battler.form == 2 || battler.ability_triggered?
    battle.pbShowAbilitySplash(battler)
    battle.pbDisplay(_INTL("{1} underwent a heroic transformation!", battler.pbThis))
    battle.pbHideAbilitySplash(battler)
    battle.pbSetAbilityTrigger(battler)
  }
)

Battle::AbilityEffects::OnSwitchOut.add(:SECRETIDENTITY,
  proc { |ability, battler, endOfBattle|
    next if !battler.isSpecies?(:PIKACHU)
    next if battler.form == 3 || endOfBattle
    PBDebug.log("[Ability triggered] #{battler.pbThis}'s #{battler.abilityName}")
    battler.pbChangeForm(3, "")
  }
)
It has nothing to do with the ability handler, you just need to add a form handler for Pikachu to reset its form after leaving battle. Palafin's form handler can be found in [000] General/[000] Pokemon if you wanna copy it.

Note that this might mess with Pikachu's existing Alolan form handler, though.
 
It has nothing to do with the ability handler, you just need to add a form handler for Pikachu to reset its form after leaving battle. Palafin's form handler can be found in [000] General/[000] Pokemon if you wanna copy it.

Note that this might mess with Pikachu's existing Alolan form handler, though.
Thank you, that worked!

I don't think it's gonna mess with Pikachu's Alolan form handler, I've specifically made Alolan Pichu and Alolan Pikachu forms previously
 
This plugin has been working great, but one major problem I've been having is this error message that occurs whenever I register a newly-caught Pokémon in the Pokédex.
View attachment 24058

Apparently I have the same exact error with the latest version (I just downloaded it), only it happens with the "width" value.

It happens when I'm in the Pokedex, I see a Pokemon's entry and go down or up to the next one....
 
Apparently I have the same exact error with the latest version (I just downloaded it), only it happens with the "width" value.

It happens when I'm in the Pokedex, I see a Pokemon's entry and go down or up to the next one....
have you tried to force compile by deleting ScriptData.rdx? (or a similar name)
or downloaded by history rather than by "go to download"
because i have the latest version and everything is running smoothy
 
hi im wondering if the annihilape evolution works or if that hasnt been implemented yet?
 
hi im wondering if the annihilape evolution works or if that hasnt been implemented yet?
Should work since was updated to have almost everything up to Indigo Disk, you will only need to edit old entrys in the PBS, like Duraludon to evolve into Archaludon using Metal Alloy
 
Should work since was updated to have almost everything up to Indigo Disk, you will only need to edit old entrys in the PBS, like Duraludon to evolve into Archaludon using Metal Alloy
is the duraludon evolution an Item evolution or is it a different method, and thank you
 
is the duraludon evolution an Item evolution or is it a different method, and thank you
If i remember, you just need to add the evolution line via item in Pokemon.txt, the game will handle the evo animation
 
Should work since was updated to have almost everything up to Indigo Disk, you will only need to edit old entrys in the PBS, like Duraludon to evolve into Archaludon using Metal Alloy
is the duraludon evolution an Item evolution or is it a different method, and thank you
You dont have to add anything to old data, the plugin already adds this if you follow the installation guide.
 
You dont have to add anything to old data, the plugin already adds this if you follow the installation guide.
I can't just add, because I've made changes to the PBS for balance purposes. So in my case I have to put from a certain point and change each one manually. Or I'm blind and haven't seen any mentions of previous Gen pokemon in the files
 
I can't just add, because I've made changes to the PBS for balance purposes. So in my case I have to put from a certain point and change each one manually. Or I'm blind and haven't seen any mentions of previous Gen pokemon in the files
The PBS instructions specifically address what to do in this situation. Theres an entire tool that will do this for you automatically.
 
so this is a perfeckt replacement for the gen 8 plugin just with the new stuff?
The Gen 8 Pack is just sprites. So its more like this pack is the entirety of the content of Scarlet & Violet....plus some sprites.

But basically, yes lol
 
are there overworld sprites for teal mask and indigo disk mons yet?
probably not, so far there are only S/V ones. Indigo Disk OW sprites should come out in the next few weeks as it's complicated to do (speaking from experience)
 
Is there a version of the plugin where the backsprites aren't... so huge? Basically where they are 192x192 and not 288x288
 
Back
Top