pros-plan-for-elves/Scripts/_.34.rb

52 lines
No EOL
2.1 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.

#==============================================================================
# リージョンコモンイベント ver1.00
#------------------------------------------------------------------------------
#[特徴]
# リージョンに接触した際、コモンイベントを起動する。
#
# 作成:ぶちょー
# ホムhttp://nyannyannyan.bake-neko.net/
# 著作:自分で作ったとか言わないで><
# 改造はご自由にどうぞ。
# リードミーとかに私の名前の載せたりするのは任意で。
#
# 注・リージョンを踏むとイベントが再起動してしまうので
#      使いどころが限られる。
#
#==============================================================================
#==============================================================================
# バージョンアップ情報
# ver1.00 公開
#==============================================================================
#==============================================================================
# 設定項目
#==============================================================================
module Kazari
module RegionCommon
# リージョンIDとコモンイベントIDの設定
# リージョンID => コモンイベントID
EVENT = {
35 => 285,
}
end
end
$kzr_imported = {} if $kzr_imported == nil
$kzr_imported["RegionCommonEvent"] = true
#==============================================================================
# ■ Game_Player
#==============================================================================
class Game_Player < Game_Character
#--------------------------------------------------------------------------
# ● 接触(重なり)によるイベント起動判定
#--------------------------------------------------------------------------
alias kzr_region_common_check_touch_event check_touch_event
def check_touch_event
kzr_region_common_check_touch_event
if Kazari::RegionCommon::EVENT.has_key?(region_id)
$game_temp.reserve_common_event(Kazari::RegionCommon::EVENT[region_id])
end
end
end