sacred-ritual-academy/Scripts/_.22.rb
2025-03-18 19:45:34 -05:00

36 lines
No EOL
2.3 KiB
Ruby

#==============================================================================
# ■ RGSS3 ピクチャ番号101以上使用可能 Ver1.00 by 星潟
#------------------------------------------------------------------------------
# ピクチャ番号101番以降を使用可能にします。
#==============================================================================
# ★イベントコマンドのスクリプトを使用します。
#==============================================================================
# po100(101)
#------------------------------------------------------------------------------
# 次に実行する『ピクチャの表示』『ピクチャの移動』『ピクチャの回転』
# 『ピクチャの色調変更』『ピクチャの消去』のピクチャ番号を
# 本来の設定を無視して101番に変更します。
#==============================================================================
# po100 もしくは po100(nil)
#------------------------------------------------------------------------------
# po100(101)等で設定した番号を無効化します。
#==============================================================================
class Game_Temp
attr_accessor :po_100
end
class Game_Interpreter
#--------------------------------------------------------------------------
# ピクチャ番号拡張/適応/削除
#--------------------------------------------------------------------------
def po100(v = nil);$game_temp.po_100 = v ? v : nil;end
def po100_1;@params[0] = $game_temp.po_100 if $game_temp.po_100;end
def po100_2;$game_temp.po_100 = nil;end
#--------------------------------------------------------------------------
# ピクチャの表示/移動/回転/色調変更/消去
#--------------------------------------------------------------------------
alias command_231_po100 command_231;def command_231;po100_1;command_231_po100;po100_2;end
alias command_232_po100 command_232;def command_232;po100_1;command_232_po100;po100_2;end
alias command_233_po100 command_233;def command_233;po100_1;command_233_po100;po100_2;end
alias command_234_po100 command_234;def command_234;po100_1;command_234_po100;po100_2;end
alias command_235_po100 command_235;def command_235;po100_1;command_235_po100;po100_2;end
end