RPG Maker Forums

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.

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,540
Members
137,834
Latest member
EverNoir
Top