class Game_Variables alias :rb_array_set_20220711 :[]= def []=(variable_id, value) @aux = true if variable_id == 2 && value < 0 rb_array_set_20220711(variable_id, value) end def v2_is_negative_since_game_start @aux || false end end
if $game_variables.v2_is_negative_since_game_start # do this else # do that end
RyanBern 发表于 2022-7-11 10:25
随手写的,未测试。插入到 main 前。
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |