public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

How do you reset switches?

BMM Archive · July 15, 2026

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.

Protected download

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

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.

#039#rpg-maker-archive#xp-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar