ScriptName aaAJNMUpdatePlaylistsScriptBegin ScriptEffectStartshort musType;aaAJNMControlQuest.location indicates location thusly:;1 = Oblivion realm;2 = Cave;3 = Fort;4 = Aylied Ruin;5 = SI Roots;6 = Sewers;7 = Castle;8 = Oblivion citadel;9 = House (inside)/Village (outside);10 = Cellar/Basemant;11 = Town (or rather, anywhere with sidewalks)if emcIsMusicSwitching == 0 set musType to emcGetDesiredMusicType printc "Am I in a forest? aaAJNMControlQuest.forest = %g" aaAJNMControlQuest.forest if aaAJNMControlQuest.forest == 1 printc "I am in a forest." ;##Forest if aaAJNMControlQuest.timeofday == 0 || aaAJNMControlQuest.timeofday == 3 ;##Night if musType != 4 emcChangePlaylist musType "NMFNE" Message "Music for musictype %g changed to NMFNE. See console for details." musType emcPrintPlaylist "NMFNE" endif emcChangePlaylist 4 "NMFNB" Message "Music for Battle changed to NMFNB. See console for details." emcPrintPlaylist "NMFNB" elseif aaAJNMControlQuest.timeofday == 1 || aaAJNMControlQuest.timeofday == 2 ;##Day if musType != 4 emcChangePlaylist musType "NMFDE" Message "Music for musictype %g changed to NMFDE. See console for details." musType emcPrintPlaylist "NMFDE" endif emcChangePlaylist 4 "NMFDB" Message "Music for Battle changed to NMFDB. See console for details." emcPrintPlaylist "NMFDB" endif endif printc "Am I in a cave? aaAJNMControlQuest.location = %g" aaAJNMControlQuest.location elseif aaAJNMControlQuest.location == 2 printc "I am in a cave." ;##Cave if aaAJNMControlQuest.timeofday == 0 || aaAJNMControlQuest.timeofday == 3 ;##Night if musType != 4 emcChangePlaylist musType "NMCNE" Message "Music for musictype %g changed to NMCNE. See console for details." musType emcPrintPlaylist "NMCNE" endif emcChangePlaylist 4 "NMCNB" Message "Music for Battle changed to NMCNB. See console for details." emcPrintPlaylist "NMCNB" elseif aaAJNMControlQuest.timeofday == 1 || aaAJNMControlQuest.timeofday == 2 ;##Day if musType != 4 emcChangePlaylist musType "NMCDE" Message "Music for musictype %g changed to NMCDE. See console for details." musType emcPrintPlaylist "NMCDE" endif emcChangePlaylist 4 "NMCDB" Message "Music for Battle changed to NMCDB. See console for details." emcPrintPlaylist "NMCDB" endif endif printc "Am I in a town? aaAJNMControlQuest.location = %g" aaAJNMControlQuest.location elseif aaAJNMControlQuest.location == 11 printc "I am in a town." ;##Town if aaAJNMControlQuest.timeofday == 0 || aaAJNMControlQuest.timeofday == 3 ;##Night if musType != 4 emcChangePlaylist musType "NMTNE" Message "Music for musictype %g changed to NMTNE. See console for details." musType emcPrintPlaylist "NMTNE" endif emcChangePlaylist 4 "NMTNB" Message "Music for Battle changed to NMTNB. See console for details." emcPrintPlaylist "NMTNB" elseif aaAJNMControlQuest.timeofday == 1 || aaAJNMControlQuest.timeofday == 2 ;##Day if musType != 4 emcChangePlaylist musType "NMTDE" Message "Music for musictype %g changed to NMTDE. See console for details." musType emcPrintPlaylist "NMTDE" endif emcChangePlaylist 4 "NMTDB" Message "Music for Battle changed to NMTDB. See console for details." emcPrintPlaylist "NMTDB" endif endifendifEnd
ScriptName aaAJNMUpdatePlaylistsScriptBegin ScriptEffectStart short musType ;aaAJNMControlQuest.location indicates location thusly: ;1 = Oblivion realm ;2 = Cave ;3 = Fort ;4 = Aylied Ruin ;5 = SI Roots ;6 = Sewers ;7 = Castle ;8 = Oblivion citadel ;9 = House (inside)/Village (outside) ;10 = Cellar/Basemant ;11 = Town (or rather, anywhere with sidewalks) if emcIsMusicSwitching == 0 set musType to emcGetDesiredMusicType printc "Am I in a forest? aaAJNMControlQuest.forest = %g" aaAJNMControlQuest.forest if aaAJNMControlQuest.forest == 1 printc "I am in a forest." ;##Forest if aaAJNMControlQuest.timeofday == 0 || aaAJNMControlQuest.timeofday == 3 ;##Night if musType != 4 emcChangePlaylist musType "NMFNE" Message "Music for musictype %g changed to NMFNE. See console for details." musType emcPrintPlaylist "NMFNE" endif emcChangePlaylist 4 "NMFNB" Message "Music for Battle changed to NMFNB. See console for details." emcPrintPlaylist "NMFNB" elseif aaAJNMControlQuest.timeofday == 1 || aaAJNMControlQuest.timeofday == 2 ;##Day if musType != 4 emcChangePlaylist musType "NMFDE" Message "Music for musictype %g changed to NMFDE. See console for details." musType emcPrintPlaylist "NMFDE" endif emcChangePlaylist 4 "NMFDB" Message "Music for Battle changed to NMFDB. See console for details." emcPrintPlaylist "NMFDB" endif endif printc "Am I in a cave? aaAJNMControlQuest.location = %g" aaAJNMControlQuest.location if aaAJNMControlQuest.location == 2 printc "I am in a cave." ;##Cave if aaAJNMControlQuest.timeofday == 0 || aaAJNMControlQuest.timeofday == 3 ;##Night if musType != 4 emcChangePlaylist musType "NMCNE" Message "Music for musictype %g changed to NMCNE. See console for details." musType emcPrintPlaylist "NMCNE" endif emcChangePlaylist 4 "NMCNB" Message "Music for Battle changed to NMCNB. See console for details." emcPrintPlaylist "NMCNB" elseif aaAJNMControlQuest.timeofday == 1 || aaAJNMControlQuest.timeofday == 2 ;##Day if musType != 4 emcChangePlaylist musType "NMCDE" Message "Music for musictype %g changed to NMCDE. See console for details." musType emcPrintPlaylist "NMCDE" endif emcChangePlaylist 4 "NMCDB" Message "Music for Battle changed to NMCDB. See console for details." emcPrintPlaylist "NMCDB" endif endif printc "Am I in a town? aaAJNMControlQuest.location = %g" aaAJNMControlQuest.location if aaAJNMControlQuest.location == 11 printc "I am in a town." ;##Town if aaAJNMControlQuest.timeofday == 0 || aaAJNMControlQuest.timeofday == 3 ;##Night if musType != 4 emcChangePlaylist musType "NMTNE" Message "Music for musictype %g changed to NMTNE. See console for details." musType emcPrintPlaylist "NMTNE" endif emcChangePlaylist 4 "NMTNB" Message "Music for Battle changed to NMTNB. See console for details." emcPrintPlaylist "NMTNB" elseif aaAJNMControlQuest.timeofday == 1 || aaAJNMControlQuest.timeofday == 2 ;##Day if musType != 4 emcChangePlaylist musType "NMTDE" Message "Music for musictype %g changed to NMTDE. See console for details." musType emcPrintPlaylist "NMTDE" endif emcChangePlaylist 4 "NMTDB" Message "Music for Battle changed to NMTDB. See console for details." emcPrintPlaylist "NMTDB" endif endif endifEnd