• 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.
Resource icon

Resource Improved Field Skills [v20.1] [DEPRECATED] v1.0.4

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,222
Lucidious89 submitted a new resource:

Improved Field Skills [v20.1] - A mod that allows for the use of HM's and other field moves without requiring the move!

Improved Field Skills for v20.1
A mod that allows for the use of HM's and other field moves without requiring a Pokemon to know the move.
Szje4Ge.gif
giphy.gif

Overview
This plugin aims to eliminate the need for requiring a Pokemon to...

Read more about this resource...
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,222

Toxillian

Novice
Member
Joined
Sep 3, 2020
Posts
49
Hey, Ludicious! There seems to be an issue on line 236 in the actual script, the !self.hasMove? seems to be causing an error. changing it to !pkmn.hasMove? fixes it though.
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,222
Hey, Ludicious! There seems to be an issue on line 236 in the actual script, the !self.hasMove? seems to be causing an error. changing it to !pkmn.hasMove? fixes it though.
What does the error say?
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,222

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,222

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,222

SirWeibrot

Novice
Member
Joined
Jan 30, 2021
Posts
21
Hi, I'm trying to make it so the HMs require a certain switch rather than a badge, as the 2 aren't connected in my game

I know that I need to define the switches like
Ruby:
Expand Collapse Copy
  HM_CUT_SWITCH             = 208

and then
Ruby:
Expand Collapse Copy
if $game_switches[HM_CUT_SWITCH] = true

but I dont know how to add it to "[001] Field Skills" for each HM to check whether that switch is ON or not
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,222
Hi, I'm trying to make it so the HMs require a certain switch rather than a badge, as the 2 aren't connected in my game

I know that I need to define the switches like
Ruby:
Expand Collapse Copy
  HM_CUT_SWITCH             = 208

and then
Ruby:
Expand Collapse Copy
if $game_switches[HM_CUT_SWITCH] = true

but I dont know how to add it to "[001] Field Skills" for each HM to check whether that switch is ON or not
I'm assuming you're asking because you want to use the HM_SKILLS_REQUIRE_BADGE setting in the plugin, so that HM Skills only appear in the menu if the appropriate badges (or in your case, switches) are enabled for that particular skill, correct? Because if you just want all HM Skills to show up in the menu from the start (regardless if they can be used yet or not), then simply setting this setting to "false" is all you gotta do.

Otherwise, if you want these skills to be hidden until the appropriate switch has been turned on, you kinda have to customize your own set up for this. How I set up the plugin was that I created a new method called pbBadgeFromSkill, which simply returns the number of badges required for each HM Skill (which is set up in the default Essentials settings). Then, the pbCheckHiddenMoveBadge script is called to check if the player has the appropriate badges for that move.

So really, there's not much to really change in the plugin itself. What you'd most likely have to do instead is change all of the "badge" settings in Essentials (BADGE_FOR_CUT, BADGE_FOR_SURF, etc, etc..) to return a switch number instead of a badge number. Then, edit the pbCheckHiddenMoveBadge method in Essentials so that it returns whether the appropriate switch has been enabled, instead of returning whether or not the player has the appropriate badges.
 

SirWeibrot

Novice
Member
Joined
Jan 30, 2021
Posts
21
I'm assuming you're asking because you want to use the HM_SKILLS_REQUIRE_BADGE setting in the plugin, so that HM Skills only appear in the menu if the appropriate badges (or in your case, switches) are enabled for that particular skill, correct? Because if you just want all HM Skills to show up in the menu from the start (regardless if they can be used yet or not), then simply setting this setting to "false" is all you gotta do.
whoops that was my mistake, I actually have HM_SKILLS_REQUIRE_BADGE set to false, nothing was working because of a conflict with Advanced Items Field Moves, but I thought it was because of my edits.
 

A¹¹

Novice
Member
Joined
Oct 24, 2021
Posts
45
Hi, sorry if it's too much to ask but right now I'm trying to make it so that the species field skills only work if a certain criteria is met (in this case a switch) but I assume I need to make something similar to pbBadgeFromSkill that checks individually for each field move's switch but I was struggling to do so, how do you
think I could do it?
1683467680338.png
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,222
Hi, sorry if it's too much to ask but right now I'm trying to make it so that the species field skills only work if a certain criteria is met (in this case a switch) but I assume I need to make something similar to pbBadgeFromSkill that checks individually for each field move's switch but I was struggling to do so, how do you
think I could do it?
View attachment 17700
Is your new method meant to completely replace the badge checks, or does it work in addition to badge checks?
 

A¹¹

Novice
Member
Joined
Oct 24, 2021
Posts
45
Is your new method meant to completely replace the badge checks, or does it work in addition to badge checks?
In addition to, I need so that the player has to use a specific pokemon for an HM until a little later, where I would allow the player to freely use surf with any pokemon
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,222
In addition to, I need so that the player has to use a specific pokemon for an HM until a little later, where I would allow the player to freely use surf with any pokemon
Then above the line that returns true, I'd put a line that basically says "returns false if the switch is active and the Pokemon isnt the required species."
 

A¹¹

Novice
Member
Joined
Oct 24, 2021
Posts
45
Then above the line that returns true, I'd put a line that basically says "returns false if the switch is active and the Pokemon isnt the required species."
Ruby:
Expand Collapse Copy
      return false if self.species_data.has_skill?(:SURF) && !$game_switches[65] && !self.isSpecies?(:MAGIKARP)
      return true if self.species_data.has_skill?(skill) || self.hasMove?(skill)

Sorry for bothering again but the method above didn't work, did I type something wrong?
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,222
Ruby:
Expand Collapse Copy
      return false if self.species_data.has_skill?(:SURF) && !$game_switches[65] && !self.isSpecies?(:MAGIKARP)
      return true if self.species_data.has_skill?(skill) || self.hasMove?(skill)

Sorry for bothering again but the method above didn't work, did I type something wrong?
Why are you checking if the switch is NOT active? You want it to always return false only when the switch is ON for every Pokemon besides Magikarp.

Also, I didnt realize you wanted this to activate only on Surf specifically. Youll have to add an additional "if skill == :SURF" check in that case, too.
 

A¹¹

Novice
Member
Joined
Oct 24, 2021
Posts
45
Why are you checking if the switch is NOT active? You want it to always return false only when the switch is ON for every Pokemon besides Magikarp.

Also, I didnt realize you wanted this to activate only on Surf specifically. Youll have to add an additional "if skill == :SURF" check in that case, too.
it still didn't work but regardless this is going too long so i'm either doing a help thread on discord or trying to figure it out myself, regardless thanks for helping
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,222
ATTENTION! Final Version!
With the release of Essentials v21, the current version of this plugin (v1.0.4) will be the final version of Improved Field Skills for v20.1. Going forward I will instead be fully focused on v21, so I will no longer be updating or supporting this plugin. I intend to take a break before I even start thinking about how or when I'm going to start working on a v21 iteration of the plugin, so don't ask me about a time frame for release. I will keep this plugin available in the meantime. But this iteration of the plugin will eventually be removed once a v21 successor is released and takes its place. I will give fair warning before this happens, so don't panic.

See you all in v21!
 
Back
Top