- Pokémon Essentials Version
- v21.1 ✅
Charm Case Overview:
I've tested this pretty rigorously on a fresh copy of V20.1 and didn't have any issues. I'm also running it in my game which has quite a few plugins and scripts, and haven't had any issues.
As always, if you have an issues, suggestions, additions, grammar errors, bugs, ticks, or anything else, please let me know and I will try to address it in a timely manner.
Disclaimer: After testing every Charm effect with no errors, I'm confident it's ready for V21.1.
Known Issues:
Mining "crack" display. On V20.1, it didn't happen, but I guess V21.1 changed the way it handles graphics, so it doesn't like the 3/4 values, as such displays the crack wonky.
Display issue with EVs. Debugging returns proper values, but displays different values. Calculations seem to run normally. I sill plan to fix it.
Disable Charm isn't properly proc'ing. Looking into a fix. Has been disabled for now.
To do list:
Voltorb Flip
Better handling of the elemental charm display
Cleaning up the code a little bit
- The Charm Case is a Registerable Key item.
- It stores Charms separately from your inventory.
- Charms are stored in a dedicated storage variable.
- You can toggle Charm effects on/off from within the Case.
- Normal Charms are automatically toggled on when given.
- Elemental Charms are automaticlly toggled off when given.
- These are a subset of the Charms Case.
- Elemental Charms increase the chance of encountering specific Pokémon types by 40% and increase capture
- chance of that Type by a multiplied factor of 2.5.
- Use "pbGainCharm(charm)" to add normal Charms.
- Use "pbGainElementCharm(charm)" for Elemental Charms.
- EXAMPLES: "pbGainCharm(:MININGCHARM)" would give you the Mining Charm.
- EXAMPLES: "pbGainElementCharm(:FIRECHARM)" would give you the Fire Charm in your Elemental Charm list.
- This method:
- Populates the charm array.
- Prevents the item from entering your bag.
- Obtain Charms from NPCs, item balls(using the gaincharm command), events, and Poke Marts.
- Purchase from the Poke Mart from the normal call of a Poke Mart; pbPokemonMart(:FIRECHARM, :MININGCHARM, :POKEBALL) The Charms should be handled properly.
- You can mix the inventory of the Poke Mart.
- Normal Charms have sprites.
- Elemental Charm sprites are in progress.
- Elemental Charm icons aren't currently displayed, as such, it's not a huge deal they're not included right now.
- The Coin Charm multiplies coin gains.
- The Slots Charm further multiplies coin gains in slots.
- New slot machine backgrounds reflect Charm-enhanced payouts.
- Copy the provided Plugin and Graphics folders into your game's main folder.
- All Slot Machine pictures are included for V20.1 player.
- If on V21.1, you don't need to overwrite the pictures, all that was added is the two new pictures.
- Refer to the meta file for detailed information.
- The script comes in five files. The Charm List script is responsible for initiliation of the Charms. If you're
- wanting to add Charms or delete charms, do it here. Instead of deleting Charms, you could also
- just not give the Charm.
- The Charm Case Effect script is responsible for all the calculations involved with the effects of the charms. It's what makes it plug and play, be careful modifying this one, as it can potentially break your game.
- The third is the Charm Case Script. It's responsible for the inner workings of the Charm Case. Please don't touch this one, as it can break the Case, and your game.
- The fourth one is the Meta file. It's contains more instructions, information, and more detailed information about the effects of each charm.
- The newly added fifth file is a settings file. I've added settings for just about every one of the charms that I thought someone might want to adjust, with detailed explainations of what each setting is for, and what it does.
Ruby:
#================================#
#=== Mini Game / Collectables ===#
#================================#
# Slots Charm - Prevents Machine slipping and slows down speed to 75% Multiplies Coin gain from Slots. With coin charm further increases winning and changes Backgrounds accordingly.
#
# Coin Charm - Multiples Coin gain by 3 in Voltorb Flip and 3 in Slot Machines. *If paired with Slots Charm, multiples winnings by 5* Also changes Slot Machines Background to match current prize amounts.
#
# Gold Charm - Drops 500 money after each Trainer Battle, similar to Payday. Also adds 50% more gold from Battles.
#
# Mining Charm - Each hit is worth 0.75 instead of 1. This roughly translate to about 10 more strikes with the hammer.
#
# Berry Charm - Berry quantity gathered multiplied by 2.
#
# Lure Charm - Replaces Suction Cup. Fish always bite. Also increases Shiny Retries by 2 when fishing.
#================================#
#===== Pre-existing Charms ======#
#================================#
# These are Charms that are pre-built into the game. They have to be included due to the changes
# in the way the Charms are handled. Since the Charms no longer go into the bag, the condition to
# activate had to be changed.
#
# Oval Charm - Increases chance of finding an egg.
# EXP Charm - Increase EXP gain by 50%.
# Shiny Charm - Increase chance of encountering Shiny Pokemon.
# Catching Charm - Increase chance of a critical catch.
#=========================================#
#===== Youtuber Substitute's Charms ======#
#=========================================#
# These Charms were thought up by Youtuber Substitute. They have variying effects.
#
# Balance Charm - Evenly divide encounter rates across species in given map.
#
# Clover Charm - Replaces Compound Eyes lead. Wild Pokemon more likely to have held items.
# (Currently stacks with Compound Eyes for higher chance)
#
# Heart Charm - Replaces Shadow Tag Lead. Pokemon flee less. Encounter rates higher. Party Pokemon gain more
# happiness per step.
#
# Key Charm - 30% chance to encounter Pokemon with Hidden Ability.
#
# Link Charm - Not implemented yet. KO'd and Captured Pokemon appear more often. Fled from appear less often. Useful for Shiny hunting.
#
# Mercy Charm - Replaces Quick Feet Lead. If one of your Pokemon is faint, reduces risk of Encounter by 30%.
#
# Promo Charm - Replaces pressure lead. Wild Pokemon found at higher available level.
#
# Seeker Charm - Not currently implemented.
#
# Smart Charm - 30% chance to encounter Pokemon with Egg or Tutor move.
#
# Spirit Charm - Replaces Synchronize Lead. Wild Pokemon to match the Nature of your Lead Pokemon.
#
# Twin Charm - Double Hidden Item quantity.
#
# Viral Charm - Increases chance of Wild Pokemon having PokeRus virus.
#=========================================#
#===============Other Charms =================#
#=========================================#
#
# Exp All Charm - Works the same as Exp All, toggleable, and without the item.
#
# Gene Charm - Wild Pokémon can appear with one or more max IV.
#
# Healing Charm - Doubles HP from restoring items. Gains 1 HP every 35 steps outside of Battle.
#
# Effort Charm - Pokémon receive more EV from battle.
#
# IV Charm - Wild Pokemon appear with 5 more IVs in every stat.
#
# Step Charm - Reduces the amount of steps needed to hatch an egg.
#
# Corrupt Charm - Converts caught Pokémon to Shadow form; may corrupt owned Pokémon into Shadow Pokémon.
#
# Purify Charm - Helps purify Shadow Pokemon faster.
#
# Frugal Charm - Halves Pokemon Mart prices.
#
# Wishing Charm - Every 24 hours grants player with a Pokemon or Item. Several togglable settings.
All of these charms just raise chance of that type's encounter by 40%. V1.04 will also increase capture chance of
chosen type when Charm is active.
Electric Charm, Fire Charm, Water Charm, Grass Charm, Normal Charm, Fight Charm, Fly Charm, Poison Charm, Ground Charm, Rock Charm, Bug Charm, Ghost Charm, Steel Charm, Psychic Charm, Ice Charm, Dragon Charm, Dark Charm, and Fairy Charm.
chosen type when Charm is active.
Electric Charm, Fire Charm, Water Charm, Grass Charm, Normal Charm, Fight Charm, Fly Charm, Poison Charm, Ground Charm, Rock Charm, Bug Charm, Ghost Charm, Steel Charm, Psychic Charm, Ice Charm, Dragon Charm, Dark Charm, and Fairy Charm.
Ruby:
[CHARMCASE]
Name = Charm Case
NamePlural = Charm Cases
Pocket = 8
Price = 3000
FieldUse = Direct
Flags = KeyItem
Description = A case which stores all charms in one place.
#-------------------------------
[BALANCECHARM]
Name = Balance Charm
NamePlural = Balance Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to evenly divide encounter rates across all species in given map.
#-------------------------------
[BERRYCHARM]
Name = Berry Charm
NamePlural = Berry Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A berry charm said to double the harvest of all berry plants.
#-------------------------------
[CLOVERCHARM]
Name = Clover Charm
NamePlural = Clover Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to increase the probability of wild pokemon holding items.
#-------------------------------
[COINCHARM]
Name = Coin Charm
NamePlural = Coin Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that triples all gained coins.
#-------------------------------
[CORRUPTCHARM]
Name = Corrupt Charm
NamePlural = Corrupt Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = Converts caught Pokémon to Shadow form; may corrupt owned Pokémon into Shadow Pokémon.
#-------------------------------
[DISABLECHARM]
Name = Disable Charm
NamePlural = Disable Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A mystical charm that disrupts foe's moves when your Pokémon's HP drops below half.
#-------------------------------
[EFFORTCHARM]
Name = Effort Charm
NamePlural = Effort Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to increase the EV received in battle.
#-------------------------------
[EXPALLCHARM]
Name = Exp. All Charm
NamePlural = Exp. All Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that allows all Pokemon in party to gain Exp. from Battles.
#-------------------------------
[FRUGALCHARM]
Name = Frugal Charm
NamePlural = Frugal Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to reduce prices at Poké Marts.
#-------------------------------
[GENECHARM]
Name = Gene Charm
NamePlural = Gene s
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to bring out a Wild Pokemon's full potential.
#-------------------------------
[GOLDCHARM]
Name = Gold Charm
NamePlural = Gold Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to increase gold gained from Trainer battles by 50% and drops 1,000 gold per Battle.
#-------------------------------
[HEALINGCHARM]
Name = Healing Charm
NamePlural = Healing Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that recovery item strength and restores HP while walking.
#-------------------------------
[HEARTCHARM]
Name = Heart Charm
NamePlural = Heart Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm known for reducing the likelihood of wild Pokémon fleeing, doubling the encounter rate, and promoting faster happiness gain for Pokémon.
#-------------------------------
[IVCHARM]
Name = IV Charm
NamePlural = IV Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to increase the change of finding Wild Pokémon with better genes.
#-------------------------------
[KEYCHARM]
Name = Key Charm
NamePlural = Key Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to increase the probability of wild pokemon having Hidden Ability.
#-------------------------------
[LURECHARM]
Name = Lure Charm
NamePlural = Lure Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to make all fishable Pokemon guaranteed to bite, while fishing.
#-------------------------------
[MERCYCHARM]
Name = Mercy Charm
NamePlural = Mercy Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to ward off wild Pokemon while you have a fainted Pokemon.
#-------------------------------
[MININGCHARM]
Name = Mining Charm
NamePlural = Mining Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A mining charm said to allow more hits before the wall collaspes.
#-------------------------------
[PROMOCHARM]
Name = Promo Charm
NamePlural = Promo Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to force higher level Pokemon to spawn in the wild.
#-------------------------------
[PURIFYCHARM]
Name = Purify Charm
NamePlural = Purify Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to help purify Shadow Pokemon faster.
#-------------------------------
[SLOTSCHARM]
Name = Slots Charm
NamePlural = Slots Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A slots charm said to prevent a slot machine from slipping and cause slots to move at 75% speed.
#-------------------------------
[SMARTCHARM]
Name = Smart Charm
NamePlural = Smart Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that increases chance of Wild Pokemon spawning with Egg or Tutor moves.
#-------------------------------
[SPIRITCHARM]
Name = Spirit Charm
NamePlural = Spirit Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that causes Wild Pokemon match the Nature of your Lead Pokemon.
#-------------------------------
[STEPCHARM]
Name = Step Charm
NamePlural = Step Charms
Pocket = 8
Price = 0
Flags = KeyItem
Description = A warm charm said to decrease the amount of steps needed to hatch an egg.
#-------------------------------
[TWINCHARM]
Name = Twin Charm
NamePlural = Twin Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to double gains from Hidden Items.
#-------------------------------
[VIRALCHARM]
Name = Viral Charm
NamePlural = Viral Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to increase odds of wild Pokemon being infected with Pokerus.
#-------------------------------
[WISHINGCHARM]
Name = Wishing Charm
NamePlural = Wishing Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A mysterious charm said to materialize a wish once a day.
#-------------------------------
#-----Elemental Charms---------#
#-------------------------------
[BUGCHARM]
Name = Bug Charm
NamePlural = Bug Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Bug Type Pokémon.
#-------------------------------
[DARKCHARM]
Name = Dark Charm
NamePlural = Dark Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Dark Type Pokémon.
#-------------------------------
[DRAGONCHARM]
Name = Dragon Charm
NamePlural = Dragon Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Dragon Type Pokémon.
#-------------------------------
[ELECTRICCHARM]
Name = Electric Charm
NamePlural = Electric Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering an Electric Type Pokémon.
#-------------------------------
[FAIRYCHARM]
Name = Fairy Charm
NamePlural = Fairy Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Fairy Type Pokémon.
#-------------------------------
[FIGHTINGCHARM]
Name = Fighting Charm
NamePlural = Fighting Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Fighting Type Pokémon.
#-------------------------------
[FIRECHARM]
Name = Fire Charm
NamePlural = Fire Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Fire Type Pokémon.
#-------------------------------
[FLYINGCHARM]
Name = Flying Charm
NamePlural = Flying Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Flying Type Pokémon.
#-------------------------------
[GHOSTCHARM]
Name = Ghost Charm
NamePlural = Ghost Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Ghost Type Pokémon.
#-------------------------------
[GRASSCHARM]
Name = Grass Charm
NamePlural = Grass Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Grass Type Pokémon.
#-------------------------------
[GROUNDCHARM]
Name = Ground Charm
NamePlural = Ground Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Ground Type Pokémon.
#-------------------------------
[ICECHARM]
Name = Ice Charm
NamePlural = Ice Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering an Ice Type Pokémon.
#-------------------------------
[NORMALCHARM]
Name = Normal Charm
NamePlural = Normal Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Normal Type Pokémon.
#-------------------------------
[POISONCHARM]
Name = Poison Charm
NamePlural = Poison Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Poison Type Pokémon.
#-------------------------------
[PSYCHICCHARM]
Name = Psychic Charm
NamePlural = Psychic Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Psychic Type Pokémon.
#-------------------------------
[ROCKCHARM]
Name = Rock Charm
NamePlural = Rock Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Rock Type Pokémon.
#-------------------------------
[STEELCHARM]
Name = Steel Charm
NamePlural = Steel Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Steel Type Pokémon.
#-------------------------------
[WATERCHARM]
Name = Water Charm
NamePlural = Water Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that raises the chance of encountering a Water Type Pokémon.
#-------------------------------
[OVALCHARM]
Name = Oval Charm
NamePlural = Oval Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = An oval charm said to increase the chance of Eggs being found at the Day Care.
#-------------------------------
[SHINYCHARM]
Name = Shiny Charm
NamePlural = Shiny Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A shiny charm said to increase the chance of finding a Shiny Pokémon.
#-------------------------------
[CATCHINGCHARM]
Name = Catching Charm
NamePlural = Catching Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm said to increase the chance of getting a critical catch. The charm doesn't shake much.
#-------------------------------
[EXPCHARM]
Name = Exp. Charm
NamePlural = Exp. Charms
Pocket = 8
Price = 3000
Flags = KeyItem
Description = A charm that increases the Exp. Points that Pokémon can get. A machine-like object is inside it.
As always, if you have an issues, suggestions, additions, grammar errors, bugs, ticks, or anything else, please let me know and I will try to address it in a timely manner.
Disclaimer: After testing every Charm effect with no errors, I'm confident it's ready for V21.1.
Known Issues:
Mining "crack" display. On V20.1, it didn't happen, but I guess V21.1 changed the way it handles graphics, so it doesn't like the 3/4 values, as such displays the crack wonky.
Display issue with EVs. Debugging returns proper values, but displays different values. Calculations seem to run normally. I sill plan to fix it.
Disable Charm isn't properly proc'ing. Looking into a fix. Has been disabled for now.
To do list:
Voltorb Flip
Better handling of the elemental charm display
Cleaning up the code a little bit
- Credits
-
Credits if used:
- Dr.Doom76
- Wrigty12
- TechSkylander1518
- LinKazamine