- 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.



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.



