self switches

Hello all again, I have a question. How do I change the value of a self swicth? This is the way I am currenty doing it.

  #--------------------------------------------------------------------------  # * Terminate  #--------------------------------------------------------------------------  def terminate    @header_window.dispose    @list_window.dispose    if event.items.size < 1      key = [$game_map.map_id, event.id, $game_party.container_self_switch] if $game_party.container_self_switch      $game_self_switches[key] = true if $game_party.container_self_switch      $game_party.container_self_switch = nil      $game_map.refresh    end    $game_party.container_event = nil  end**FIXED

Mod can close this post. Thank You All!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/self-switches.30705/