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

Resource Charm Case V1.5

drdoom76

Cooltrainer
Member
Joined
Aug 1, 2023
Posts
212
I think the description is wrong. Should this affect the pokémon moves?
View attachment 21232
You're right. Thank you.
[SMARTCHARM]
Name = Smart Charm
NamePlural = Smart Charms
Pocket = 8
Price = 0
Flags = KeyItem
Description = A charm that increases chance of Wild Pokemon spawning with Egg or Tutor moves .

Wife was rushing me out of the house. -_-
I'll hopefully get a chance to go through everything a lil more tonight. Fix the little errors. Going to do a full playthrough to test all new coding as well. Most of it looked ok on debugging but I want to make sure the values are being passed and considered properly since I changed the way all the effects work.

Also need to finish the item finder charm, and I want to add in your gene charm and look into the link charm. Like the idea of the chains and the repeling effect of running for poke you don't want to encounter.
 
Last edited:

drdoom76

Cooltrainer
Member
Joined
Aug 1, 2023
Posts
212
Small oversight I made.. As of right now, the elemental charms mimic the the moves that guarantee type encounters, not a percent chance. Working on a fix. It's currently usable, but will always encounter that type if charm is active. Should be fixed in the next release. Also, I've made almost every value modifiable within a settings file. This should be released with the next release, as well. I plan on implementing a couple togglable changes to the current charms.
Elemental Charms will increase capture chance on that type, when active. Probably default 2.5* to mimic frozen or sleep status.
Clover charm will randomly cause extra items to drop when proc'd. Probably 30% Chance default to not break the game's economy.
Both of these options, and values with be changeable in the new settings file.
If there's any other improvements you guys can see, please let me know.
Also, I'm hoping to be able to address the ability to purchase charms from the regular pbPokemonMart call.
 

drdoom76

Cooltrainer
Member
Joined
Aug 1, 2023
Posts
212
drdoom76 updated Charm Case with a new update entry:

V1.04

# V1.04 - Added settings for almost every Charm value
# Added Gene Charm, Disable Charm, Step Charm, Effort Charm.
# Added new identification for charms, is_charm?
# Added ability to purchase Charms and Elemental Charms from regular Poke Mart call (pbPokemonMart(stock))
# Calling from the normal call will send it to the proper section of the Charm Case, instead of your inventory.
# Both Charms and Elemental Charms will be deleted from stock upon purchase, or if already in players...

Read the rest of this update entry...

As always, if you run into any issues, please let me know, and I will address them. Everything should be working as intended.
 
Last edited:

drdoom76

Cooltrainer
Member
Joined
Aug 1, 2023
Posts
212
drdoom76 updated Charm Case with a new update entry:

V1.05

Fixed an issue where the addition of Poke Mart broke pbItemBall.
Added Wishing Charm - a charm that will grant a wish every 24 hours. By default, it will give you a random non-starter, non-legendary Pokemon, or an item. You can change the Pokemon list to an approved list in the settings menu. The list itself is also modifiable through the settings menu. You can also turn off the inclusion of items through the settings menu, so it only gives Pokemon.
Added Frugal Charm - a charm that will...

Read the rest of this update entry...
 

ardicoozer

Cooltrainer
Member
Joined
Sep 29, 2020
Posts
173
I got this error after defeating pokemon...
Code:
Expand Collapse Copy
[2023-09-21 20:04:06 +0700]
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Exception: NameError
Message: uninitialized constant Settings::MORE_EXP_FROM_TRAINER_POKEMON

Backtrace:
[Charms Case] Charm Case Charm Effects.rb:285:in `pbGainExpOne'
[Charms Case] Charm Case Charm Effects.rb:233:in `block (2 levels) in pbGainExp'
Battle:411:in `block in eachInTeam'
Battle:411:in `each'
Battle:411:in `each_with_index'
Battle:411:in `eachInTeam'
[Charms Case] Charm Case Charm Effects.rb:229:in `block in pbGainExp'
[Charms Case] Charm Case Charm Effects.rb:207:in `each'
[Charms Case] Charm Case Charm Effects.rb:207:in `pbGainExp'
Battler_UseMove:512:in `pbUseMove'
 

drdoom76

Cooltrainer
Member
Joined
Aug 1, 2023
Posts
212
drdoom76 updated Charm Case with a new update entry:

V1.06

# Added Lin's Corrupt and Purify Charms.
# Moved the Blacklist section of the Wishing Charm into the settings file for ease of access.
# Renamed some setting names for easier identifiability.
# Added new settings to control the Wishing Charm a little easier.
# New setting to turn on / off removing Legendary Pokemon from the Auto Pool.
# New setting to use or don't use Blacklist at all.
# Fixed an issue where the Approved List didn't reward Legendary properly.

Read the rest of this update entry...
 

drdoom76

Cooltrainer
Member
Joined
Aug 1, 2023
Posts
212
I got this error after defeating pokemon...
Code:
Expand Collapse Copy
[2023-09-21 20:04:06 +0700]
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Exception: NameError
Message: uninitialized constant Settings::MORE_EXP_FROM_TRAINER_POKEMON

Backtrace:
[Charms Case] Charm Case Charm Effects.rb:285:in `pbGainExpOne'
[Charms Case] Charm Case Charm Effects.rb:233:in `block (2 levels) in pbGainExp'
Battle:411:in `block in eachInTeam'
Battle:411:in `each'
Battle:411:in `each_with_index'
Battle:411:in `eachInTeam'
[Charms Case] Charm Case Charm Effects.rb:229:in `block in pbGainExp'
[Charms Case] Charm Case Charm Effects.rb:207:in `each'
[Charms Case] Charm Case Charm Effects.rb:207:in `pbGainExp'
Battler_UseMove:512:in `pbUseMove'
Thank you for reporting. It seems V20.1 has much fewer settings than V21.1. I have uploaded a fix to the issue. If you run into anymore problems, please let me know.
 

ClessioTV

Elite Trainer
Member
Joined
Sep 24, 2022
Posts
270
Thank you for reporting. It seems V20.1 has much fewer settings than V21.1. I have uploaded a fix to the issue. If you run into anymore problems, please let me know.

Adding a script module between [[Main]] and Main (from your RPG Maker XP project):


module Settings
# Settings for Charm Case

MORE_EXP_FROM_TRAINER_POKEMON = true
end


 

drdoom76

Cooltrainer
Member
Joined
Aug 1, 2023
Posts
212

Adding a script module between [[Main]] and Main (from your RPG Maker XP project):


module Settings
# Settings for Charm Case

MORE_EXP_FROM_TRAINER_POKEMON = true
end


I just threw in a defined? And if not set it to true..
Seemed to work ok on my fresh v20.1. Going to go through this weekend on both v21.1 and v20.1 and try to make sure everything else is buttoned up.
 

ardicoozer

Cooltrainer
Member
Joined
Sep 29, 2020
Posts
173
I got some conflict with Bag Screen with interactable Party plugins after using a wishing charm.
Code:
Expand Collapse Copy
[2023-09-22 19:37:08 +0700]
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Exception: NoMethodError
Message: undefined method `pokemon=' for #<PokemonBagPartyBlankPanel>

Backtrace:
[Bag Screen w/int. Party] Script.rb:678:in `block in pbRefreshParty'
[Bag Screen w/int. Party] Script.rb:676:in `each'
[Bag Screen w/int. Party] Script.rb:676:in `pbRefreshParty'
[Essentials Deluxe] Interactable Bag Screen.rb:39:in `pbRefresh'
[Essentials Deluxe] Interactable Bag Screen.rb:336:in `block in pbStartScreen'
[Essentials Deluxe] Interactable Bag Screen.rb:287:in `loop'
[Essentials Deluxe] Interactable Bag Screen.rb:287:in `pbStartScreen'
[Voltseon's Pause Menu] 005_VoltseonMenu_Entries.rb:71:in `block in selected'
MessageConfig:570:in `pbFadeOutIn'
[Voltseon's Pause Menu] 005_VoltseonMenu_Entries.rb:68:in `selected'
 

drdoom76

Cooltrainer
Member
Joined
Aug 1, 2023
Posts
212
I got some conflict with Bag Screen with interactable Party plugins after using a wishing charm.
Code:
Expand Collapse Copy
[2023-09-22 19:37:08 +0700]
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Exception: NoMethodError
Message: undefined method `pokemon=' for #<PokemonBagPartyBlankPanel>

Backtrace:
[Bag Screen w/int. Party] Script.rb:678:in `block in pbRefreshParty'
[Bag Screen w/int. Party] Script.rb:676:in `each'
[Bag Screen w/int. Party] Script.rb:676:in `pbRefreshParty'
[Essentials Deluxe] Interactable Bag Screen.rb:39:in `pbRefresh'
[Essentials Deluxe] Interactable Bag Screen.rb:336:in `block in pbStartScreen'
[Essentials Deluxe] Interactable Bag Screen.rb:287:in `loop'
[Essentials Deluxe] Interactable Bag Screen.rb:287:in `pbStartScreen'
[Voltseon's Pause Menu] 005_VoltseonMenu_Entries.rb:71:in `block in selected'
MessageConfig:570:in `pbFadeOutIn'
[Voltseon's Pause Menu] 005_VoltseonMenu_Entries.rb:68:in `selected'
Thanks for reporting this, as well. I will look into what's causing the issue between the plugins and try to get a fix out today. With that, I will be releasing a working Disable Charm and a STAB Charm as well.

If anyone has anymore ideas for anymore Charms, I'm more than happy to hear them. I'm running out of ideas here.
 

LinKazamine

Champion
Member
Joined
May 24, 2023
Posts
674
The STAB Charm's description is too long. Does it fit in the charms case's scene? I reduced it to "A mystical charm that increases the power of moves that match the Pokémon's type." It still gets the point of what the charm does and it does fit in the space for descriptions in the bag.
 

LinKazamine

Champion
Member
Joined
May 24, 2023
Posts
674
Ok, after some testing myself, I found a solution for the Wishing Charm with the Bag with Party plugin. You just need to add this anywhere in the scripts:
Ruby:
Expand Collapse Copy
if PluginManager.installed?("Bag Screen w/int. Party")
  class PokemonBag_Scene
    def pbRefreshParty
      for i in 0...Settings::MAX_PARTY_SIZE
        if @party[i]
          @sprites["pokemon#{i}"] = PokemonBagPartyPanel.new(@party[i], i, @viewport)
          @sprites["pokemon#{i}"].pokemon = @party[i]
        else
          @sprites["pokemon#{i}"] = PokemonBagPartyBlankPanel.new(@party[i], i, @viewport)
        end
      end
    end
  end
end
The problem is that the panels weren't refreshing, which is what caused the error. So, this should solve it. At least, it now works for me.
 

drdoom76

Cooltrainer
Member
Joined
Aug 1, 2023
Posts
212
Ok, after some testing myself, I found a solution for the Wishing Charm with the Bag with Party plugin. You just need to add this anywhere in the scripts:
Ruby:
Expand Collapse Copy
if PluginManager.installed?("Bag Screen w/int. Party")
  class PokemonBag_Scene
    def pbRefreshParty
      for i in 0...Settings::MAX_PARTY_SIZE
        if @party[i]
          @sprites["pokemon#{i}"] = PokemonBagPartyPanel.new(@party[i], i, @viewport)
          @sprites["pokemon#{i}"].pokemon = @party[i]
        else
          @sprites["pokemon#{i}"] = PokemonBagPartyBlankPanel.new(@party[i], i, @viewport)
        end
      end
    end
  end
end
The problem is that the panels weren't refreshing, which is what caused the error. So, this should solve it. At least, it now works for me.
Thank you Lin. I have added this into the plugin.
 

drdoom76

Cooltrainer
Member
Joined
Aug 1, 2023
Posts
212
drdoom76 updated Charm Case with a new update entry:

V1.08

# Added Safari Charm - Increases Steps, Balls, and Catch Rate by 50%. Also decreases flee rate. - While in Safari Zone.
# Added Roaming Charm - Roaming Pokemon are 25% more likely to be encountered.
# Added Trading Charm - In game trades gain 10 IVs to all stats and have a 20% chance of being shiny.
# Added Trip Triad Charm - Gains an extra reward from winning Mini-Game Triple Triad.
# Frugal Charm now doubles sell prices, as well.
# Fixed issue with pbPokemonMart issue displaying a include...

Read the rest of this update entry...
 

drdoom76

Cooltrainer
Member
Joined
Aug 1, 2023
Posts
212
drdoom76 updated Charm Case with a new update entry:

V1.08 Wishing Charm Generate Fix

# Noticed the way I had the Legendary removal coded also removed a few random Pokemon and all Baby Species.
# Changed to work with flags instead of egg group. Should be working as intended.
## Side note: I did notice XERNEAS did not have a flag listed in my PBS file. Not sure if there are any others that have been missed, but XERNEAS was added to the Blacklist, for now.
If not using Blacklist, add Flags = Legendary to the bottom of XERNEAS' PBS entry.
Please let me know if you find another one.

Read the rest of this update entry...
 

RodMagalhaes

Novice
Member
Joined
Mar 6, 2022
Posts
17
Hey, would there be a way to set a limit to how many charms you could toggle on at the same time?
Like, when you were to toggle the fourth charm on, the game would "You can only have 3 charms toggled on!", or something like that.
Being able to increase/decrease that number during gameplay would be awesome, too.

Thanks for the awesome script!
 
Back
Top