Hola, este es un script que tenia en un juego viejo XD. Nunca lo usé pero creo que se usa para escapar cuando presionas la tecla W y la Q Juntas.
- Spoiler:
- Código:
-
#==============================================================================
# TDS Key Press Escape
# Version: 1.0
# This script aliases the update_phase2 method and the
# update_phase3_basic_command method.
#==============================================================================
#------------------------------------------------------------------------------
# This script allows to escape when the keys Q and W are pressed together.
#==============================================================================
#==============================================================================
# ** Scene_Battle (part 2) and (part 3)
#------------------------------------------------------------------------------
# This class performs battle screen processing.
#==============================================================================
class Scene_Battle
#--------------------------------------------------------------------------
# * Frame Update (party command phase)
#--------------------------------------------------------------------------
alias tds_key_press_escape_update_phase2 update_phase2
def update_phase2
tds_key_press_escape_update_phase2
if Input.press?(Input::L) and Input.press?(Input::R)
if $game_temp.battle_can_escape == false
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Disable actor command window
@actor_command_window.active = false
@actor_command_window.visible = false
# Escape processing
update_phase2_escape
end
end
#--------------------------------------------------------------------------
# * Frame Update (actor command phase : basic command)
#--------------------------------------------------------------------------
alias tds_key_press_escape_update_phase3_basic_command update_phase3_basic_command
def update_phase3_basic_command
tds_key_press_escape_update_phase3_basic_command
if Input.press?(Input::L) and Input.press?(Input::R)
if $game_temp.battle_can_escape == false
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Actor blink effect OFF
@active_battler.blink = false
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Disable actor command window
@actor_command_window.active = false
@actor_command_window.visible = false
# Escape processing
update_phase2_escape
end
end
end
Créditos a Sephirottds.
Saludos.