So... i want to make a mod that replaces some Mario 64 tracks with Undertale tracks, but i don't know how, can anyone help me?
If you want to use mp3's/.ogg's refer to here: custom music (repost)So... i want to make a mod that replaces some Mario 64 tracks with Undertale tracks, but i don't know how, can anyone help me?
If you want to use mp3's/.ogg's refer to here: custom music (repost)So... i want to make a mod that replaces some Mario 64 tracks with Undertale tracks, but i don't know how, can anyone help me?
Is your id for cool cool mountain "LEVEL_CCM"?Well it worked good.... or at least for the castle, because when i enter other place i have changed the music, like ccm, it just doesn't have music
-- name: Mario 64 Undertale Music
local audio = audio_stream_load("Undertale OST - 050 Metal Crusher.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_BOWSER_1 then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("Undertale OST - 005 Ruins.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_HMC then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("Undertale OST - 005 Ruins.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_WDW then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("Undertale OST - 014 Heartache.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_BOSS then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("Undertale OST - 022 Snowdin Town.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_CCM then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("Undertale OST - 022 Snowdin Town.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_SL then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("Undertale OST - 027 Dating Fight!.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_SLIDE then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("Undertale OST - 050 Metal Crusher.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_BOWSER_2 then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("Undertale OST - 065 CORE.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_DARK_WORLD then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("Undertale OST - 065 CORE.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_FIRE_SEA then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("Undertale OST - 065 CORE.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_BITS then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("Undertale OST - 077 ASGORE.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_BOWSER_3 then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("Undertale OST - 095 Bring It In, Guys!.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_STAFF_ROLL then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("Undertale OST - 050 Metal Crusher.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_CASTLE then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
yesIs your id for cool cool mountain "LEVEL_CCM"?
local audio = audio_stream_load("Spiderman.ogg")
local audio2 = audio_stream_load("LCA!.ogg")
local audio3 = audio_stream_load("BTIA.ogg")
local audio4 = audio_stream_load("FFortress.ogg")
local audio5 = audio_stream_load("Bowser8.ogg")
local audio6 = audio_stream_load("FindYFlame.ogg")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_WF then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
function construct_tp()
if gNetworkPlayers[0] then
warp_to_level(LEVEL_WF, 1, 0)
return true
end
end
function on_warp2()
if gNetworkPlayers[0].currLevelNum == LEVEL_TTC then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio2, true)
audio_stream_play(audio2, true, 1)
else
audio_stream_play(audio2, true, 0)
end
end
function on_warp3()
if gNetworkPlayers[0].currLevelNum == LEVEL_BOWSER_1 then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio3, true)
audio_stream_play(audio3, true, 1)
else
audio_stream_play(audio3, true, 0)
end
end
function on_warp4()
if gNetworkPlayers[0].currLevelNum == LEVEL_BITFS then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio4, true)
audio_stream_play(audio4, true, 1)
else
audio_stream_play(audio4, true, 0)
end
end
function on_warp5()
if gNetworkPlayers[0].currLevelNum == LEVEL_BITDW then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio5, true)
audio_stream_play(audio5, true, 1)
else
audio_stream_play(audio5, true, 0)
end
end
function on_warp6()
if gNetworkPlayers[0].currLevelNum == LEVEL_LLL then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio6, true)
audio_stream_play(audio6, true, 1)
else
audio_stream_play(audio6, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
hook_event(HOOK_ON_WARP, on_warp2)
hook_event(HOOK_ON_WARP, on_warp3)
hook_event(HOOK_ON_WARP, on_warp4)
hook_event(HOOK_ON_WARP, on_warp5)
hook_event(HOOK_ON_WARP, on_warp6)
hook_event(HOOK_ON_WARP, on_warp7)
hook_event(HOOK_ON_WARP, on_warp8)
hook_event(HOOK_ON_WARP, on_warp9)
hook_event(HOOK_ON_WARP, on_warp10)
hook_event(HOOK_ON_WARP, on_warp11)
hook_event(HOOK_ON_WARP, on_warp12)
hook_event(HOOK_ON_WARP, on_warp13)
hook_chat_command("Test", "Test", construct_tp)