じ☆ve冰风 发表于 2026-7-31 15:58:37

Carbon Crow - Idle Title Screen

http://i.imgur.com/YDmeLNY.png​
Carbon Crow Studio - Idle Title Screen​
Version 0.1​

Introduction:

This script allows a custom map to be played if the title screen has been idle for (x) amount of frames. It can be used to play special cutscenes each time.

Features:

Easy to use module for quick and easy setup.

Engine automatically detects if your game is on the idle map and allows any input feedback to return you to the tile screen. (Even Auto Process Events)

Screenshots:

Not available at this time.

How to use:

Simply paste above main but below materials.

Adjust the amount of frames before you go to the idle map

Adjust the map's id, x, and y starting point.

Design your cut scene on your desired map

Demo:

Not available at this time.

Script:

Located inside the spoiler below:

Spoiler#==============================================================================# ** Title: Idle Title Screen# ** Author : Carbon Crow# ** Version: 0.1# ** Purpose: This script allows a custom map to be played if the title screen#             has been idle for (x) amount of frames. It can be used to play#             special cut scenes each time.# ** History: 0.1 - Init. Public Release# ** T.O.S: Do not distribute anywhere else, doing so will put future updates#             on hold and void this script.#==============================================================================module CC_Index01    # Constant Setting for Timer Delay in Frames - Note: Lower values are fasterTimer_Delay = 1000# Array Setting for Map to Play - Format: Idle_Map = end#==============================================================================# ** Game_Temp#------------------------------------------------------------------------------#This class handles temporary data that is not included with save data.# The instance of this class is referenced by $game_temp.#==============================================================================class Game_Temp#--------------------------------------------------------------------------# * Public Instance Variables#--------------------------------------------------------------------------attr_accessor :idle_map#--------------------------------------------------------------------------# * Aliases#--------------------------------------------------------------------------alias carbon_crow_game_temp_initialize_cc1                     initialize#--------------------------------------------------------------------------# * Object Initialization#--------------------------------------------------------------------------def initialize(*args, &block)    carbon_crow_game_temp_initialize_cc1(*args, &block)    @idle_map = falseend#--------------------------------------------------------------------------# * Determine if Idle Map#--------------------------------------------------------------------------def idle_map?    return @idle_mapend#--------------------------------------------------------------------------# * Set Idle#--------------------------------------------------------------------------def set_idle(bool = false)    @idle_map = boolendend#==============================================================================# ** Scene_Title#------------------------------------------------------------------------------#This class performs the title screen processing.#==============================================================================class Scene_Title < Scene_Base#--------------------------------------------------------------------------# * Included Modules#--------------------------------------------------------------------------include CC_Index01#--------------------------------------------------------------------------# * Aliases#--------------------------------------------------------------------------alias carbon_crow_scene_title_start_cc1                              startalias carbon_crow_scene_title_update_cc1                           update#--------------------------------------------------------------------------# * Start Processing#--------------------------------------------------------------------------def start(*args, &block)    carbon_crow_scene_title_start_cc1(*args, &block)    @idle_timer = Timer_Delayend#--------------------------------------------------------------------------# * Frame Update#--------------------------------------------------------------------------def update(*args, &block)    carbon_crow_scene_title_update_cc1(*args, &block)    update_idle_informationend#--------------------------------------------------------------------------# * Update Idle Information#--------------------------------------------------------------------------def update_idle_information    input_detected?    if @idle_timer <= 0      process_idle_map    else      @idle_timer -= 1    endend#---------------------------------------------------------------------------# * Determine if Input is Detected#---------------------------------------------------------------------------def input_detected?    [:UP,
OWN, :LEFT, :RIGHT, :C, :B].each {|input|      if Input.trigger?(input) or Input.repeat?(input)      @idle_timer = Timer_Delay      end    }end#---------------------------------------------------------------------------# * Process Idle Map#---------------------------------------------------------------------------def process_idle_map    DataManager.create_game_objects    $game_party.setup_starting_members    $game_map.setup(Idle_Map.at(0))    $game_player.moveto(Idle_Map.at(1), Idle_Map.at(2))    $game_player.refresh    Graphics.frame_count = 0    close_command_window    RPG::BGM.fade(1000)    $game_map.autoplay    $game_temp.set_idle(true)    SceneManager.goto(Scene_Map)endend#==============================================================================# ** Scene_Map#------------------------------------------------------------------------------#This class performs the map screen processing.#==============================================================================class Scene_Map < Scene_Base#--------------------------------------------------------------------------# * Start Processing#--------------------------------------------------------------------------alias carbon_crow_scene_map_update_cc1                               update#--------------------------------------------------------------------------# * Frame Update#--------------------------------------------------------------------------def update(*args, &block)    carbon_crow_scene_map_update_cc1(*args, &block)    update_idle_detectionend#--------------------------------------------------------------------------# * Update Idle Detection#--------------------------------------------------------------------------def update_idle_detection    return if !$game_temp.idle_map?    [:UP,
OWN, :LEFT, :RIGHT, :C, :B].each {|input|      if Input.trigger?(input) or Input.repeat?(input)      SceneManager.goto(Scene_Title)      end    }endend#==============================================================================# ** End of File#    For more work, please visit us on the web at: www.carboncrowstudio.co.nr#    or follow us on Twitter using @carboncrow, or YouTube /carboncrowstudio#==============================================================================



Credits:

- Nathan Frost, Scriptwriter/Developer for Carbon Crow Studio

Terms of Service:

Do not distribute anywhere else, doing so will put future updates on hold and void this script. Commercial use is prohibited without permission.

Frequently asked questions:

Not available at this time.

Extra Notes:

Visit us on the web using www.carboncrowstudio.co.nr

Follow us on Twitter using www.twitter.com/carboncrow

Subscribe on YouTube using www.youtube.com/carboncrowstudio


本贴来自国际rpgmaker官方论坛作者:Nathan Frost处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/carbon-crow-idle-title-screen.33965/
页: [1]
查看完整版本: Carbon Crow - Idle Title Screen