0645名無しさん@お腹いっぱい。
2020/01/13(月) 08:03:29.86ID:CCSezE+fこっちの方法だと呪い装備のメモにいちいち<呪いの装備>って記述しておかないといけないです
class Game_Actor < Game_Battler
alias _change_equip change_equip
def change_equip(slot_id, item)
_change_equip(slot_id, item)
if item && item.note.include?("<呪いの装備>")
Audio.se_play("Audio/SE/Darkness5", 100, 100)#装備した時のSE
end
end
end
class Window_EquipSlot < Window_Selectable
def process_ok
super
if item && item.note.include?("<呪いの装備>")
Audio.se_play("Audio/SE/Darkness5", 100, 100)#外そうとした時のSE
end
end
end