Hey guys, I'm using Victors Basic Module, Victors Animated Battles, and Victors Actor Battlers in conjunction and they all work flawlessly together(along with Holder's animated sprites); however I've ran into a snag with a script I use to change party members while combat is still going on (Yanfly's Party System and Party Command). All scripts work; however when I try to change my party during combat, I receive this error:
Script 'VE_Actor_Battlers' line 559: NoMethodError occurred.
undefined method 'default_direction' for #<Game_Actor:0xb94e200>
The section in question is referring to this piece of code..
(line 559 is "actor.default_direction if $imported[:ve_animated_battle]")
So I understand that it's directing me to the other script I have titled "VE_Animated_Battle" to define the actor's default direction. So my question to you:
How can I define an actor's default direction within Victors Animated Battles?
Script 'VE_Actor_Battlers' line 559: NoMethodError occurred.
undefined method 'default_direction' for #<Game_Actor:0xb94e200>
The section in question is referring to this piece of code..
#--------------------------------------------------------------------------
# * New method: update_party
#--------------------------------------------------------------------------
def update_party
@actor_sprites.each_index do |i|
next if $game_party.battle_members.include?(@actor_sprites.battler)
@actor_sprites.dispose
@actor_sprites = nil
end
$game_party.battle_members.collect do |actor|
next if @actors_party.include?(actor)
@actor_sprites.push(Sprite_Battler.new(@viewport1, actor))
end
@actor_sprites.compact!
@actors_party = $game_party.battle_members.dup
$game_party.battle_members.each do |actor|
old_position = [actor.screen_x, actor.screen_y]
actor.default_direction if $imported[:ve_animated_battle]
if old_position != [actor.screen_x, actor.screen_y]
sprite(actor).start_effect🙂appear)
end
end
end
end
# * New method: update_party
#--------------------------------------------------------------------------
def update_party
@actor_sprites.each_index do |i|
next if $game_party.battle_members.include?(@actor_sprites.battler)
@actor_sprites.dispose
@actor_sprites = nil
end
$game_party.battle_members.collect do |actor|
next if @actors_party.include?(actor)
@actor_sprites.push(Sprite_Battler.new(@viewport1, actor))
end
@actor_sprites.compact!
@actors_party = $game_party.battle_members.dup
$game_party.battle_members.each do |actor|
old_position = [actor.screen_x, actor.screen_y]
actor.default_direction if $imported[:ve_animated_battle]
if old_position != [actor.screen_x, actor.screen_y]
sprite(actor).start_effect🙂appear)
end
end
end
end
So I understand that it's directing me to the other script I have titled "VE_Animated_Battle" to define the actor's default direction. So my question to you:
How can I define an actor's default direction within Victors Animated Battles?