unless $game_system.map_interpreter.running? or
$game_temp.message_window_showing or $game_map.starting? or
self.action != nil or self.knockbacking? or
(@actor.states.include?(XAS::SLEEP_ID) or
@actor.states.include?(XAS::STOP_ID) or
@actor.states.include?(XAS::SEALATTACK_ID) or
@actor.states.include?(XAS::MUTE_ID)or
@actor.states.include?(XAS::BERSERK_ID)) or
$game_temp.cast_time > 0
if Input.press?(XAS_COMMAND::SKILL_CHARGE) and @wp_tool_id != nil and
$game_switches[XAS_COMMAND::COMMAND_DISABLE_SWITCH] == false
if hero_charge_graphic?(@actor) and
$game_temp.xas_charge_time > 10
nome = Database_Bullet::SELF_MOTIONS[@wp_tool_id]
@character_name = @actor.character_name + nome.to_s + "_Charge"
end
if MOG::FIXED_DIRECTION_SKILL.include?(@wp_tool_id)
@direction_fix = true
$game_system.move_speed = -1
else
$game_system.move_speed = 0
end
if @wp_tool_time != nil
$game_temp.xas_charge_time += @wp_tool_time if $game_temp.xas_charge_time < 100
$game_temp.xas_anime_loop += @wp_tool_time
$game_temp.xas_anime_loop2 += @wp_tool_time
else
$game_temp.xas_charge_time += DEFAULT_CHARGE_TIME if $game_temp.xas_charge_time < 100
$game_temp.xas_anime_loop += DEFAULT_CHARGE_TIME
$game_temp.xas_anime_loop2 += DEFAULT_CHARGE_TIME
end
if @wp_tool_time != nil
loop = 40 * @wp_tool_time
else
loop = 40 * DEFAULT_CHARGE_TIME
end
if $game_temp.xas_anime_loop > loop
if $game_temp.xas_anime_loop2 >= 100
$game_player.animation_id = XAS_FULL_ANIME
else
$game_player.animation_id = XAS_CHARGE_ANIME
end
$game_temp.xas_anime_loop = 0
end
else
$game_temp.xas_charge_time = 0 if $game_temp.xas_charge_time < 100
$game_temp.xas_anime_loop2 = 0
$game_temp.xas_anime_loop = 0
$game_system.move_speed = 0
@direction_fix = false
end
end
end