I made a skill to teleport the party inside a special dungueon and teleport back, this skill can be used from anywhere.
Additionally every dungueon in the game has its own battle music, and the special dungueon has its own battle music too.
So, I am looking for a way to save the current music before moving the party to the special dungueon and load it when the party teleports back to the current dungueon.
How to get and set battle music?
This is what I tried to store it:
And this to get it:
Additionally every dungueon in the game has its own battle music, and the special dungueon has its own battle music too.
So, I am looking for a way to save the current music before moving the party to the special dungueon and load it when the party teleports back to the current dungueon.
How to get and set battle music?
This is what I tried to store it:
JavaScript:
$gameSystem.getBattleBgm(); // I don't know if this method exists.
And this to get it:
JavaScript:
$gameSystem.setBattleBgm($gameVariables.value(1234)); // 1234 is the variable where I stored it