RPGM VX Ace Scripting Problem: Yanfly's Enemy Levels and Battler Graphics

Ethos5

Villager
Member
Joined
Aug 26, 2014
Messages
11
Reaction score
0
Primarily Uses
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
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top