public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers
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: BGMSwitches XP
  • Original author: kyonides
  • Original date: May 26, 2023
  • Source thread: https://forums.rpgmakerweb.com/threads/bgmswitches-xp.157820/
  • Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSS Scripts (RMXP)

Summary

BGMSwitches RG by Kyonides​ Introduction This scriptlet handles autoplaying BGM's and Game Switches for you... up to some point.

Archived First Post

BGMSwitches RG

by Kyonides

Introduction


This scriptlet handles autoplaying BGM's and Game Switches for you... up to some point.
You see, it's not fully automated.
Anyway, I left a couple of examples of how to configure the events and the common event in my demo.

You just need to set a single Constant with a range of Switch ID's you're going to need for BGM's and that's it!

If you ever need to configure the Common Event in charge of automatically changing the current BGM, you can use the following script call:

Ruby:
$game_map.map?(1)

And it will quickly check if the party is on map No. 1 right now.

FAQ

Its name says RG because it runs on all of the RGSS based Makers!

Ruby:
# * BGMSwitches RG * #
#   Scripter : Kyonides Arkanthes
#   v1.0.0 - 2023-05-25

# It works in all of the RGSS based Makers!

module BGMSwitches
  IDS_RANGE = 1..5 # Mininum..Maximum
end

class Game_Switches
  def any?(range)
    @data.any? and @data[range].any?
  end
end

class Game_Map
  alias :kyon_bgm_switches_gm_map_autoplay :autoplay
  def autoplay
    return if $game_switches.any?(1..5)
    kyon_bgm_switches_gm_map_autoplay
  end

  def map?(map_id)
    @map_id == map_id
  end
end

DOWNLOAD DEMO

Terms & Conditions

Free for use in any game.
Include my nickname in your game credits.
Don't adopt stray cats nor blue squirrels nor any pokemon nor any sleeping beauty nor wandering zombies!
That's it!

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

License / Terms Note

Include my nickname in your game credits. Don't adopt stray cats nor blue squirrels nor any pokemon nor any sleeping beauty nor wandering zombies! That's it!

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#rgss#script-archive

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar