battle-maiden-mizuki/Scripts/_.5.rb
2025-06-17 11:57:06 -05:00

73 lines
2.9 KiB
Ruby
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#==============================================================================
# ★ RGSS3_先頭キャラクター挿入 Ver1.0
#==============================================================================
=begin
作者tomoaky
webサイトひきも記 (http://hikimoki.sakura.ne.jp/)
隊列の先頭にパーティに存在しないキャラクターグラフィックを表示します。
本来表示されるキャラクターは後ろへ押し出されます。
2012.01.18 Ver1.0
公開
=end
#==============================================================================
# □ 設定項目
#==============================================================================
module TMFIXHEAD
CHARACTER_NAME = "main" # 先頭キャラの画像ファイル名
CHARACTER_INDEX = 0 # 先頭キャラの画像インデックス
USE_FUNCTION = true # false にするとこのスクリプトの機能を無効化
end
if TMFIXHEAD::USE_FUNCTION
#==============================================================================
# ■ Game_Player
#==============================================================================
class Game_Player
#--------------------------------------------------------------------------
# ● リフレッシュ
#--------------------------------------------------------------------------
alias tmfixhead_game_player_refresh refresh
def refresh
tmfixhead_game_player_refresh
@character_name = TMFIXHEAD::CHARACTER_NAME
@character_index = TMFIXHEAD::CHARACTER_INDEX
end
end
#==============================================================================
# ■ Game_Follower
#==============================================================================
class Game_Follower < Game_Character
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
alias tmfixhead_game_follower_initialize initialize
def initialize(member_index, preceding_character)
tmfixhead_game_follower_initialize(member_index - 1, preceding_character)
end
end
#==============================================================================
# ■ Game_Followers
#==============================================================================
class Game_Followers
#--------------------------------------------------------------------------
# ● オブジェクト初期化
# leader : 先頭のキャラクター
#--------------------------------------------------------------------------
alias tmfixhead_game_followers_initialize initialize
def initialize(leader)
tmfixhead_game_followers_initialize(leader)
@data.push(Game_Follower.new(@data.size + 1, @data[-1]))
end
end
end # if TMFIXHEAD::USE_FUNCTION