• 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.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have 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...
 
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
 
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
 
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