Path: blob/main/Scripts/Global/FadeMusic.txt
1319 views
//----------------Sonic CD Fade Music Script------------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases5#alias Object.Value0 : Object.Timer67// Property Values8#alias 0 : FADEMUSIC_TO_BOSS9#alias 1 : FADEMUSIC_TO_LEVEL10#alias 2 : FADEMUSIC_SSZEGGMAN11#alias 3 : FADEMUSIC_SSZAMY1213// Priority14#alias 1 : PRIORITY_ACTIVE151617sub ObjectMain1819#platform: Use_Origins20// Take some values and print them?21// they left debug stuff in lol22game.callbackParam0 = 100 // Max timer value?23game.callbackParam1 = Object.PropertyValue // Get Fade Type24game.callbackParam2 = Object.Timer // Get current music timer25EngineCallback(NOTIFY_DEBUGPRINT)26#endplatform2728switch Object.PropertyValue29case FADEMUSIC_TO_BOSS30if Object.Timer < 10031Object.Timer++32Music.Volume--33else34PlayMusic(4)35Object.Type = TypeName[Blank Object]36end if37break3839case FADEMUSIC_TO_LEVEL40if Object.Timer < 10041Object.Timer++42Music.Volume--43else44PlayMusic(0)45Object.Type = TypeName[Blank Object]46end if47break4849case FADEMUSIC_SSZEGGMAN50if Object.Timer < 5051Object.Timer++52Music.Volume -= 253else54PlayMusic(0)55Object.Type = TypeName[Blank Object]56end if57break5859case FADEMUSIC_SSZAMY60if Object.Timer < 10061Object.Timer++62Music.Volume--63else6465#platform: Use_Origins66if game.playMode != BOOT_PLAYMODE_BOSSRUSH67PlayMusic(1)68end if69#endplatform7071#platform: Use_Standalone72PlayMusic(1)73#endplatform7475Object.Type = TypeName[Blank Object]7677Object[30].Type = TypeName[ActFinish]78Object[30].DrawOrder = 679Object[30].Priority = PRIORITY_ACTIVE80end if81break8283end switch84end sub858687// ========================88// Editor Subs89// ========================9091sub RSDKDraw92DrawSprite(0)93end sub949596sub RSDKLoad97LoadSpriteSheet("Global/Display.gif")98SpriteFrame(-16, -16, 32, 32, 1, 143) // #0 - "Script" Icon99100// Although used by the object, it's not to be set from the editor101SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")102end sub103104105