Super Mario Galaxy Object Database

Objects | Configs | Occurrences

Config: ChangeBgmCube

Changes the background music using the stage's music information in AudStageBgmWrap and AudStageBgmTable. Supports several changing modes.

Arguments

NameTypeGamesRequired?DescriptionValues
Obj_arg0IntegerSMG1False

Change Type: The music change type.

  • 0: Change Song
  • 1: Fade-out and Change Song
  • 2: Change State
Obj_arg1IntegerSMG1False

Argument 1:
If Obj_arg0 is set to 0: Name-index in AudStageBgmTable.
If Obj_arg0 is set to 1: Fade time.
If Obj_arg0 is set to 2: State-index in AudStageBgmTable.

  • -1: default music from MAStageBgmData (AudStageBgmWrap).
Obj_arg2IntegerSMG1False

Argument 2:
If Obj_arg0 is set to 1: Name-index in AudStageBgmTable.
If Obj_arg0 is set to 2: Fade time.

  • -1: mutes the music if Obj_arg0 is set to 1.

Switches

NameGamesRequired?Description
SW_APPEARSMG1False

Appears when this switch is activated.