public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

3 Followers

How do you reset switches?

BMM_Archive · July 15, 2026

BMM_Archive
Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: How do you reset switches?
  • Original author: jonathan4210
  • Original date: September 16, 2014
  • Source thread: https://forums.rpgmakerweb.com/threads/how-do-you-reset-switches.32089/
  • Source forum path: Game Development Engines > Legacy Engine Support > RPG Maker XP Support

Summary

I already figured out how to reset self-switches and variables, but I get an error for resetting normal switches. Here's my code: $game_switches[1..100] = false $game_variables = 0 $game_self_switches =

Archived First Post

I already figured out how to reset self-switches and variables, but I get an error for resetting normal switches. Here's my code:

$game_switches[1..100] = false
$game_variables = 0
$game_self_switches =
Game_SelfSwitches.new

I attached the error message to this post, and this is where it points at in the script:

  #--------------------------------------------------------------------------
  # * Set Switch
  #     switch_id : switch ID
  #     value     : ON (true) / OFF (false)
  #--------------------------------------------------------------------------
  def []=(switch_id, value)
    if switch_id <= 5000
      @data[switch_id] = value
    end
  end
end

I tried $game_switches[1...100], $game_switches[1..5000], and $game_switches[1...5000]. Nothing works.

Untitled.png

Downloads / Referenced Files

RPG Maker Web attachments are mirrored locally when available. Other external links remain hosted by their original creator or third-party service.

  • Local mirror: 8069-aef09cb938df41fc326acb33a6bdaa21.png
    SHA-256: 5b341764973b71e6689b04c377ba295b5faa15816f54bb04b2ad2926b9c4b4bd
    Original attachment URL: https://forums.rpgmakerweb.com/attachments/untitled-png.16923/

Referenced Images / Attachments

Untitled.png
Untitled.png
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

Replies (0)

No replies yet.

0 replies 26 views

Log in to reply.