• 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.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
Will-O-Wisp by love

v20.1 Will-O-Wisp by love 1.0

This resource pertains to version 20.1 of Pokémon Essentials.
Pokémon Essentials Version
v20.1 ➖
With the ES V20.1 ai and despite improved and consistent ai, the ai will just not use Will-O-Wisp, and it annoys me a bit...

I have a gym leader with these moves: Hex, Will-O-Wisp, Sludge Bomb and Scald. And no matter how hard I try, the ai will never use Will-O-Wisp, even if I change Scald with Surf.

So I had enough! After several long hours, I tried to understand how the ai works to force it to use Will-O-Wisp as soon as possible. And after a while, I have I managed to create something pretty cool!

The ai will now use Will-O-Wisp as soon as possible (only if the ai have high skill)!

Anyway, I wanted to share the code for anyone to use if anyone wished to make an Hex/Will-O-Wisp trainer (also there is a small extra :3).

Of course it’s not something perfect. I believe there is room for improvement (if I found any...).

Enjoy!
Ruby:
Expand Collapse Copy
    when "BurnTarget"
      if target.pbCanBurn?(user, false)
        score += 30
        if move.statusMove? #If it's Will-O-Wisp, give it priority (or any status move with "BurnTarget").
          score += 60
          end
        if skill >= PBTrainerAI.highSkill
        score -= 40 if target.hasActiveAbility?([:GUTS, :MARVELSCALE, :QUICKFEET, :FLAREBOOST])
      end
      #Extra check if the trainer is a good trainer, like a gym leader for eg.
      #This make the AI not use Will-O-Wisp (or any status move with "BurnTarget") if if the conditions are met.
        if skill >= PBTrainerAI.highSkill && move.statusMove? && target.hasActiveAbility?([:GUTS, :MARVELSCALE, :QUICKFEET, :FLAREBOOST])
          score -= 60
        end
        #Small extra :3
        #This make the AI not use "BurnTarget" if the condition is met.
      score -=100 if target.hasActiveAbility?(:HYDRATION) && target.effectiveWeather == :Rain
      elsif skill >= PBTrainerAI.mediumSkill
        score -= 100 if move.statusMove?
      end

This is not a Plugin, so you will have to install this manually. 😔
To install this, it is very simple. All you need to do is:
Click on the script tab of your project, then go to "[[AI]]", find "AI_Move_EffectScores_2", then find "BurnTarget".
Once you find "BurnTarget", just delete the all of the "BurnTarget" code, then just paste the new code which was given above.
Congratulations you installed the changes to the ai! Now you can enjoy Hex/Will-O-Wisp trainer! Also also, you should maybe install the improved and consistent ai, just in case. Also in my game, I have made Will-O-Wisp 90% base Accuracy. So maybe you should do that to?

Thanks!
Credits
Celestial Fearow
  • Like
Reactions: MauriceMM
Author
CelestialFearow
Views
1,070
First release
Last update

Ratings

4.00 star(s) 1 ratings
Back
Top