So, I went to test this script to see if it worked in battle(it does!) but when my character leveled up, it crashes. Tried it with numerous levels, 1 to 2, 40 to 41, and 98 to 99...
It says "Script 'Mr. Trivel Animated Faces' line 97: ArgumentError occurred.
wrong number of arguments (0 for 2)"
"Refresh" is line 97. I'm no coder/programmer by any means, but shouldn't there be an 'else' in this somewhere? I have no idea what refresh does... Extreme noob here.
If someone could help me fix this, I would greatly appreciate it!
# )--------------------------------------------------------------------------(
# )-- Alias: update --(
# )--------------------------------------------------------------------------(
def update
finish = Time.now
@elapsed_time += ms(@time_now, finish)
mrts_face_anims_update
if @animated_actors && @elapsed_time >= FRAME_SPEED && Time.now.to_f != @time_now
@actor_hash.each { |k, v|
next unless @actor_hash[k]
@actor_hash[k] += 1
@actor_hash[k] = 0 if @actor_hash[k] > DATA[k][1].size-1
}
refresh
@elapsed_time = 0
end
@time_now = Time.now
end
Edit really fast:
I apologize if this is in the wrong section. It's an issue with a script, so I attempted to get it to the right section of the forums.