Skip to content

Instantly share code, notes, and snippets.

@rutan
Created September 27, 2014 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rutan/b3edb50b571de962b403 to your computer and use it in GitHub Desktop.
Save rutan/b3edb50b571de962b403 to your computer and use it in GitHub Desktop.
「[hzm]メモ欄拡張共通部分さん+」オーグメントシステム競合回避スクリプト
#-------------------------------------------------------------------------------
# ■ 「[hzm]メモ欄拡張共通部分さん+」オーグメントシステム競合回避スクリプト
#-------------------------------------------------------------------------------
# 2014/09/27 Ru/むっくRu
#-------------------------------------------------------------------------------
# オーグメントシステムとの競合を回避し、
# アイテムが初期化された後にアイテム画面を開いた際に
# メモ情報を失ってしまうのを回避します。
#
# このスクリプトは
# ・「[hzm]メモ欄拡張共通部分さん+」
# ・「オーグメントシステム本体」
# の2つより下に設置してください。
#-------------------------------------------------------------------------------
if defined?(SceneManager.augments_goto)
class << SceneManager
alias hzm_vxa_note2_augments_goto augments_goto
def augments_goto(scene_class)
if scene_class == Scene_Title
HZM_VXA::Note2.setup
end
hzm_vxa_note2_augments_goto(scene_class)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment