• 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.
  • Apologies if you've had troubles connecting to the site, you may need a VPN to access it. Staff are also facing issues connecting, so if it's urgent please message Cat on-site or through Discord directly.
  • Hey Guest, staff applications are open! If you are interested in becoming a forum staff member and/or Discord staff member, please apply through this Google Form before April 2! You can also message Cat with any questions.
Resource icon

Resource Changed move type display script 0.2

Charmingloopy

Made and Lost Dev
Member
Joined
Aug 10, 2021
Posts
9
Charmingloopy submitted a new resource:

Changed move type display - Move UI qol

Ruby:
Expand Collapse Copy
# updates move type ui based on abilities that change it.
class Battle::Move
  def type_ui_modifiers(battler)
    
    if @realMove.display_type(battler.pokemon) == :NORMAL and battler.ability == :PIXILATE
      return :FAIRY
    end
  if @realMove.display_type(battler.pokemon) == :NORMAL and battler.ability == :AERILATE
      return :FLYING
    end
  if @realMove.display_type(battler.pokemon) == :NORMAL and battler.ability == :REFRIGERATE
      return :ICE
    end
  if...

Read more about this resource...
 

Smellyski

Rookie
Member
Joined
Jun 20, 2021
Posts
5
I finally got a chance to work on Liquid Voice and it was supes easy. Here is the code if anyone is interested.

Ruby:
Expand Collapse Copy
if soundMove? && battler.ability == :LIQUIDVOICE
    return :WATER
end
 

Charmingloopy

Made and Lost Dev
Member
Joined
Aug 10, 2021
Posts
9
I finally got a chance to work on Liquid Voice and it was supes easy. Here is the code if anyone is interested.

Ruby:
Expand Collapse Copy
if soundMove? && battler.ability == :LIQUIDVOICE
    return :WATER
end
Added this to the script
 

DinoInDisguise

Rookie
Member
Joined
Jun 1, 2022
Posts
2
Script appears broken out of the box with a

"Script " line e: SyntaxError occured.

Section401:25 syntax error, unexpected 'end', expecting end-of-input"

This can be fixed by deleting the "end" on line 25 and another on line 46. But if you do that, the script doesnt appear to do anything.

So I'm a bit confused. At first I thought it was this site messing up the code, FL often links to github to avoid such issues. But when no one else mentioned it, I assumed it was me.

Am I not suppose to be putting this above Main? I assumed such, as there wasn't clear directions to the contrary. This is all reproducable in an unaltered Pokemon Essentials 21.1 with the latest hotfix plugin.

Anyways, thanks for any insight you can provide. Otherwise, sorry for bothering you if the script is abandoned.
 
Back
Top