#============================================================================== # ■ XP-RGSS-68 鑑定屋 [Ver.1.0.0] by Claimh #------------------------------------------------------------------------------ # ・謎のアイテムを鑑定します。 #------------------------------------------------------------------------------ # ★鑑定屋の呼び出し方 # イベントスクリプトから call_appraise # もしくは $scene = Scene_Appraise.new #============================================================================== module Appraise ### 設 定 ###################################################################### # 成功時のSE(nilならショップSE) SUCCESS_SE = RPG::AudioFile.new("060-Cheer01") # メッセージ表示 MESSAGE = true # アイテム鑑定設定 ITEM = { # 鑑定アイテムID => [鑑定料, [[結果アイテムID, 出現レーティング], …]] 33 => [ 100, [[2, 10], [3, 5], [4, 3], [5, 2], [4, 1]] ], 34 => [ 600, [[5, 20], [6, 15], [7, 6], [8, 9], [9, 3], [10, 2]] ] } =begin [補足] アイテム出現率 = (出現レーティング) ÷ (出現レーティングの合計) × 100 [%] =end ################################################################################ end #============================================================================== # ■ Game_Temp #============================================================================== class Game_Temp attr_accessor :call_appraise alias initialize_appraise initialize def initialize initialize_appraise @call_appraise = false end end #============================================================================== # ■ Interpreter #============================================================================== class Interpreter def call_appraise $game_temp.shop_calling = true $game_temp.call_appraise = true end end #============================================================================== # ■ Window_DismantleCmd #============================================================================== class Scene_Map alias call_appraise call_shop def call_shop if $game_temp.call_appraise $game_temp.shop_calling = false $game_temp.call_appraise = false $game_player.straighten $scene = Scene_Appraise.new else call_appraise end end end