- Pokémon Essentials Version
- v21.1 ✅
Here's a little script for anyone that wants to add the Berserk Gene item from Gen II into their game. Just add this as a new script above Main (but before Battle):
Then add the following to the items.txt PBS file:
And there was never an icon for the Berserk Gene in the games, so you have to find or make your own, but I made something based on R from Detective Pikachu, that you're welcome to use. Just put the image in Graphics/Items
Ruby:
Battle::ItemEffects::OnSwitchIn.add(:BERSERKGENE,
proc { |item, battler, battle|
next if battler.fainted?
# You can change the usage message on the next line
battle.pbDisplay(_INTL("{1} used its {2}!",
battler.pbThis, battler.itemName))
if battler.pbCanRaiseStatStage?( :ATTACK, battler)
battler.pbRaiseStatStage(:ATTACK, 2, battler)
end
if battler.pbCanConfuse?(battler, false)
battler.pbConfuse
end
battler.pbConsumeItem
}
)
Then add the following to the items.txt PBS file:
Code:
[BERSERKGENE]
Name = Berserk Gene
NamePlural = Berserk Genes
Pocket = 1
Price = 200
Flags = Fling_10
Description = An item to be held by a Pokémon. It boosts Attack but causes Confusion.
And there was never an icon for the Berserk Gene in the games, so you have to find or make your own, but I made something based on R from Detective Pikachu, that you're welcome to use. Just put the image in Graphics/Items
- Credits
- Don't have to credit me, but can if you want