Victor Animated Battle problem

Hi just a quick question if anyone else who is using Vitros animated battle script came across this error:

Error occurs under Animated battle script when trying to show an image, error is as follows:

"undefined local variable or method `n` for #<Game_poseValue:0xbcfbeac"

all i was trying to do is this: picture: id 1, show, name 'image', pos x 20, pos y 20;

Tried eliminating other scripts with no success.

Can anyone tell me if this is an actual bug in his script or just a result of incompatible scripts?
It is probabbly refering to this code segment

Spoiler
def set_picture(value) @data[:id] = value =~ /ID (\d+)/i ? [$1.to_i, 1].max : 1 @data[:delete] = true if value =~ /DELETE/i return if @data[:delete] nm = value =~ /NAME #{get_filename}/i ? $1.to_s : "" og = value =~ /CENTER/i ? 1 : 0 x = value =~ /POS X ([+-]?\d+)/i ? $1.to_i : 0 y = value =~ /POS Y ([+-]?\d+)/i ? $1.to_i : 0 zx = value =~ /ZOOM X ([+-]?\d+)/i ? $1.to_i : 100.0 zy = value =~ /ZOOM X ([+-]?\d+)/i ? $1.to_i : 100.0 op = value =~ /OPACITY (\d+)/i ? $1.to_i : 255 bt = value =~ /BLEND ([+-]\d+)/i ? $1.to_i : 0 dr = value =~ /DURATION (\d+)/i ? $1.to_i : 0 @data[:show] = [n, og, x, y, zx, zy, op, bt] if value =~ /SHOW/i @data[:move] = [og, x, y, zx, zy, op, bt, dr] if value =~ /MOVE/i end
n is never set to anything, thus causing the error.

Here is a quick and dirty bugfix:

Spoiler
class Game_PoseValue def set_picture(value) @data[:id] = value =~ /ID (\d+)/i ? [$1.to_i, 1].max : 1 @data[:delete] = true if value =~ /DELETE/i return if @data[:delete] nm = value =~ /NAME #{get_filename}/i ? $1.to_s : "" og = value =~ /CENTER/i ? 1 : 0 x = value =~ /POS X ([+-]?\d+)/i ? $1.to_i : 0 y = value =~ /POS Y ([+-]?\d+)/i ? $1.to_i : 0 zx = value =~ /ZOOM X ([+-]?\d+)/i ? $1.to_i : 100.0 zy = value =~ /ZOOM X ([+-]?\d+)/i ? $1.to_i : 100.0 op = value =~ /OPACITY (\d+)/i ? $1.to_i : 255 bt = value =~ /BLEND ([+-]\d+)/i ? $1.to_i : 0 dr = value =~ /DURATION (\d+)/i ? $1.to_i : 0 @data[:show] = [nm, og, x, y, zx, zy, op, bt] if value =~ /SHOW/i #changed into correct variable used @data[:move] = [og, x, y, zx, zy, op, bt, dr] if value =~ /MOVE/i endend
Put the code below victor animated battle somewhere and it should work.

Hope this helps
Wow! Thanks, so it is a bug, interesting, i could swear my life it was just me setting something up wrong.

Thank you VERY MUCH!

///off topic, is your avatar from Dark souls?///
Yes it is 🙂  It is my favorite game of all time (I like to die 😛  )

Original thread: https://forums.rpgmakerweb.com/threads/victor-animated-battle-problem.22997/