Stopping Cut Scenes, by Peter O.
This script provides a way to skip or cancel certain events designated as "cut scenes"
by pressing F5. This feature can be useful if a player wants to skip the dialogue
and advance the story. It is compatible with the Standard Development Kit (SDK) version
2.3 and the Method and Class Library version 2.1. If using the SDK version 1.5, replace
the "SDK.enabled?" line with "if SDK.state('Stopping Cut Scenes') == true".
To make an event a cut scene, add to the event a Comment event command consisting of
the text "Cut Scene". When the player presses F5, the event's self switch A will be
set to ON. Therefore, the event should have another event page with the Autorun trigger
and the condition "Self Switch A is ON". The event page should have the effect of
canceling the effect of the cut scene, perhaps by moving the player directly to the
next destination or doing any other necessary cleanup.
The script code follows.
This script provides a way to skip or cancel certain events designated as "cut scenes"
by pressing F5. This feature can be useful if a player wants to skip the dialogue
and advance the story. It is compatible with the Standard Development Kit (SDK) version
2.3 and the Method and Class Library version 2.1. If using the SDK version 1.5, replace
the "SDK.enabled?" line with "if SDK.state('Stopping Cut Scenes') == true".
To make an event a cut scene, add to the event a Comment event command consisting of
the text "Cut Scene". When the player presses F5, the event's self switch A will be
set to ON. Therefore, the event should have another event page with the Autorun trigger
and the condition "Self Switch A is ON". The event page should have the effect of
canceling the effect of the cut scene, perhaps by moving the player directly to the
next destination or doing any other necessary cleanup.
The script code follows.
###################
SDK.log('Stopping Cut Scenes','Peter O.',1.0,'11-22-07')
if SDK.enabled?('Stopping Cut Scenes')
###################
class Scene_Map
attr_reader :message_window
end
class Game_System
alias petero_cutscenes_Game_System_update update
def update
petero_cutscenes_Game_System_update
event=@map_interpreter.get_character(0)
if event && @map_interpreter.running? &&
SDK.event_comment_input(event,1,"Cut Scene") &&
Input.trigger?(Input::F5)
$game_self_switches[[$game_map.map_id,event.id,"A"]]=true
$game_map.need_refresh=true
if $scene.is_a?(Scene_Map)
$scene.message_window.terminate_message
end
$game_temp.message_window_showing=false
@map_interpreter.command_end
event.start
end
end
end
###################
end
###################
SDK.log('Stopping Cut Scenes','Peter O.',1.0,'11-22-07')
if SDK.enabled?('Stopping Cut Scenes')
###################
class Scene_Map
attr_reader :message_window
end
class Game_System
alias petero_cutscenes_Game_System_update update
def update
petero_cutscenes_Game_System_update
event=@map_interpreter.get_character(0)
if event && @map_interpreter.running? &&
SDK.event_comment_input(event,1,"Cut Scene") &&
Input.trigger?(Input::F5)
$game_self_switches[[$game_map.map_id,event.id,"A"]]=true
$game_map.need_refresh=true
if $scene.is_a?(Scene_Map)
$scene.message_window.terminate_message
end
$game_temp.message_window_showing=false
@map_interpreter.command_end
event.start
end
end
end
###################
end
###################
Expand to see the code.