class Game_Variables def []=(variable_id, value) if self[variable_id] > value && variable_id == 2 # 2 号变量有减少 $game_temp.reserve_common_event(4) # 执行 4 号公共事件 end @data[variable_id] = value on_change end end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |