Charm Case

Resource Charm Case V1.06

drdoom76

Cooltrainer
Member
Joined
Aug 1, 2023
Posts
105
Age
35
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
105
Age
35
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
105
Age
35
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
105
Age
35
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...
 

drdoom76

Cooltrainer
Member
Joined
Aug 1, 2023
Posts
105
Age
35
Last edited:

ardicoozer

Trainer
Member
Joined
Sep 29, 2020
Posts
99
I got this error after defeating pokemon...
Code:
[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
105
Age
35
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
105
Age
35
I got this error after defeating pokemon...
Code:
[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

Cooltrainer
Member
Joined
Sep 24, 2022
Posts
120
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
105
Age
35

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.
 
Top