本帖最后由 RyanBern 于 2022-7-11 10:28 编辑  
 
随手写的,未测试。插入到 main 前。 
 
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 
 
 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 
 
 if $game_variables.v2_is_negative_since_game_start  
  # do this  
else  
  # do that  
end  
 
  |