RPG Maker Forums

As the title states, I'm having a problem with the Enemy Levels script from Yanfly. Whenever i try to enter a battle, the game errors out and gives a "Line 840" error. I tested and figured out it's my characer graphics. I'm using generated character graphics for my main character, not the pre-loaded actor 1/2/3 etc. Switched the battler/graphic for my character to one of those, and it worked fine.


So, i know what the problem is...but not how to fix it. Completely new to scripting in general.


Here is the bit of code causing the problem; the exact line is the one that begins "Return if".


# alias method: setup_new_animation
  #--------------------------------------------------------------------------
  unless $imported["YEA-CoreEngine"]
  alias sprite_battler_setup_new_animation_abe setup_new_animation
  def setup_new_animation
    sprite_battler_setup_new_animation_abe
    return if @battler.pseudo_ani_id <= 0
    animation = $data_animations[@battler.pseudo_ani_id]
    mirror = @battler.animation_mirror
    start_pseudo_animation(animation, mirror)
    @battler.pseudo_ani_id = 0
  end
  end # $imported["YEA-CoreEngine"]


What do i have to change the 0 to to get it to read my battler? Attached is screenshots of the actor screen/battler graphic using if it's position is important.


Thank you all for any help.

Kael Actor Screen.png

kael battler.png

Kael sprite.png

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,546
Members
137,835
Latest member
yetisteven
Top