I have this script that makes idle poses work exactly the way they do in blizz abs, (the script was made here on chaos-project by winkio).
If you don't know how it works then allow me to explain. If you have a charset file named charset.png than it requires a file called charset_idl.png.
The problem is that it REQUIRES the extra set.
I want an edit to the script that would make it only use the pose if the file is found, and not if the file isn't!
Here's the script:
#==============================================================================
# ** Game_Player
#------------------------------------------------------------------------------
# With idle sprites. name the idle sprites the same as their normal ones
# except with '_idl' on the end (before the extension)
#==============================================================================
class Game_Player < Game_Character
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_reader :character_name_org # original character file name
attr_reader :current_sprite # current sprite suffix
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
alias initialize_idlesprites_before initialize
def initialize
initialize_idlesprites_before
# set original character name
@character_name_org = @character_name
# set current sprite
@current_sprite = ""
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
alias update_idlesprites_before update
def update
update_idlesprites_before
if @character_name != ""
if moving?
if @current_sprite != ''
@step_anime = false
@character_name = @character_name_org
@current_sprite = ''
end
elsif Input.dir4 == 0
if @current_sprite != '_idl'
@character_name_org = @character_name
@step_anime = true
@character_name += '_idl'
@current_sprite = '_idl'
end
end
end
end
end