- Joined
- Sep 26, 2013
- Messages
- 173
- Reaction score
- 15
- First Language
- English
- Primarily Uses
Here's the script: http://www.atelier-rgss.com/RGSS/System/ACE_SYS07.html
In the original script, the make background part was like this:
def make_background if @background.bitmap != nil @background.bitmap.dispose @background.bitmap = nil end if RPG_FileTest.music_cover_exist?(song_name + "_B1") @background.bitmap = Cache.music_cover(song_name + "_B1") else @background.bitmap = Cache.music_cover("") end @background.opacity = 0 if @background2.bitmap != nil @background2.bitmap.dispose @background2.bitmap = nil end if RPG_FileTest.music_cover_exist?(song_name + "_B2") @background2.bitmap = Cache.music_cover(song_name + "_B2") else @background2.bitmap = Cache.music_cover("") end @background2.opacity = 0 endIt will show the background named song_name_B1 or _B2 when the music song_name is turned on. But with this, i have to choose a background for each song, it's really bothersome, 'cause i want some song will have a same background, and some have another background. So, i modified that part like this:
def make_background if @background.bitmap != nil @background.bitmap.dispose @background.bitmap = nil end if @background2.bitmap != nil @background2.bitmap.dispose @background2.bitmap = nil end if song_name == ("Battle")or("Boss")or("Crossover Battle")or("Crossover")or ("Enrika")or("Forest")or("House")or("Past")or("Pedo's Castle")or("Roko") @background2.bitmap = Cache.music_cover("Chap0_B2") @background.bitmap = Cache.music_cover("Chap0_B1") end if song_name == ("Bath")or("Chuunibyou School")or("Danger")or("Dark Flame Master")or ("Welcome to the Chuniibyou World!")or("Secret") then @background2.bitmap = Cache.music_cover("Chap1_B2") @background.bitmap = Cache.music_cover("Chap1_B1") end if song_name == ("Hurry, Starfish")or("Illusions")or("Meaningful Ways to Pass the Time")or ("Nagisa")or("Spring Wind")or("Tea in the Reference Room")or("To the same Heights")or ("Town, Flow of Time, People") then @background2.bitmap = Cache.music_cover("Chap2_B2") @background.bitmap = Cache.music_cover("Chap2_B1") end if song_name == ("Dai")or("Ichuu")or("Kishuu")or("Senjin")or("Shougun")or ("Shunshuu")or("Shuugeki")or("Takuchaku")or("Yuushou") then @background2.bitmap = Cache.music_cover("Chap3_B2") @background.bitmap = Cache.music_cover("Chap3_B1") end @background.opacity = 0 @background2.opacity = 0 endWell, as you can see, my idea is to make the song "battle", "boss",... have chap0_B1 and _B2 background, "Illusions", "Nagisa",... have chap2_B1 and _B2 background,... just like that. But, it's really strange that, no matter what song it is, the only background showed is chap3_B1 and _B2. I really don't know what i was wrong? Can someone help me, please?
In the original script, the make background part was like this:
def make_background if @background.bitmap != nil @background.bitmap.dispose @background.bitmap = nil end if RPG_FileTest.music_cover_exist?(song_name + "_B1") @background.bitmap = Cache.music_cover(song_name + "_B1") else @background.bitmap = Cache.music_cover("") end @background.opacity = 0 if @background2.bitmap != nil @background2.bitmap.dispose @background2.bitmap = nil end if RPG_FileTest.music_cover_exist?(song_name + "_B2") @background2.bitmap = Cache.music_cover(song_name + "_B2") else @background2.bitmap = Cache.music_cover("") end @background2.opacity = 0 endIt will show the background named song_name_B1 or _B2 when the music song_name is turned on. But with this, i have to choose a background for each song, it's really bothersome, 'cause i want some song will have a same background, and some have another background. So, i modified that part like this:
def make_background if @background.bitmap != nil @background.bitmap.dispose @background.bitmap = nil end if @background2.bitmap != nil @background2.bitmap.dispose @background2.bitmap = nil end if song_name == ("Battle")or("Boss")or("Crossover Battle")or("Crossover")or ("Enrika")or("Forest")or("House")or("Past")or("Pedo's Castle")or("Roko") @background2.bitmap = Cache.music_cover("Chap0_B2") @background.bitmap = Cache.music_cover("Chap0_B1") end if song_name == ("Bath")or("Chuunibyou School")or("Danger")or("Dark Flame Master")or ("Welcome to the Chuniibyou World!")or("Secret") then @background2.bitmap = Cache.music_cover("Chap1_B2") @background.bitmap = Cache.music_cover("Chap1_B1") end if song_name == ("Hurry, Starfish")or("Illusions")or("Meaningful Ways to Pass the Time")or ("Nagisa")or("Spring Wind")or("Tea in the Reference Room")or("To the same Heights")or ("Town, Flow of Time, People") then @background2.bitmap = Cache.music_cover("Chap2_B2") @background.bitmap = Cache.music_cover("Chap2_B1") end if song_name == ("Dai")or("Ichuu")or("Kishuu")or("Senjin")or("Shougun")or ("Shunshuu")or("Shuugeki")or("Takuchaku")or("Yuushou") then @background2.bitmap = Cache.music_cover("Chap3_B2") @background.bitmap = Cache.music_cover("Chap3_B1") end @background.opacity = 0 @background2.opacity = 0 endWell, as you can see, my idea is to make the song "battle", "boss",... have chap0_B1 and _B2 background, "Illusions", "Nagisa",... have chap2_B1 and _B2 background,... just like that. But, it's really strange that, no matter what song it is, the only background showed is chap3_B1 and _B2. I really don't know what i was wrong? Can someone help me, please?

