var date = new Date();
var day = date.getDay();
getMusicName(day);
var musicPath = "";
function getMusicName(day) {
switch (day) {
case 0:
musicName = "有趣的";
musicPath = "Bgm11/Aquarium";
break;
case 1:
musicName = "恐怖的";
musicPath = "Bgm05/WolfWood";
break;
case 2:
musicName = "有意思的";
musicPath = "Bgm07/FunnyTimeMaker";
break;
case 3:
musicName = "忧郁的";
musicPath = "Bgm02/MissingYou";
break;
case 4:
musicName = "冰冷冷的";
musicPath = "Bgm01/AncientMove";
break;
case 5:
musicName = "晴朗的";
musicPath = "Bgm02/AboveTheTreetops";
break;
case 6:
musicName = "雄壮的";
musicPath = "Bgm00/Nightmare";
break;
}
}
function act() {
if (rm != null) {
rm.changeMusic(musicPath);
rm.playerMessage(5, "音樂盒撥出了" + musicName + "音樂. ");
}
var em = rm.getEventManager("OrbisPQ");
if (em != null) {
em.setProperty("stage3", "1");
}
}