Path: blob/main/Scripts/R5/FadeMusic.txt
1319 views
//-----------------Sonic CD Fade Music Script-----------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//345// Note: Nope, there aren't any conflicts going on here!6// Even if there's also a Fade Music Object in the Globals folder, that object isn't actually global...78// Aliases9#alias Object.Value0 : Object.Timer1011#alias 0 : FADEMUSIC_FADE_TO_BOSS12#alias 1 : FADEMUSIC_FADE_TO_LEVEL131415sub ObjectMain1617if Object.PropertyValue == FADEMUSIC_FADE_TO_BOSS18if Object.Timer < 10019Object.Timer++20Music.Volume--21else22PlayMusic(4)2324Object.Type = TypeName[Blank Object]25end if26else // FADEMUSIC_FADE_TO_LEVEL27if Object.Timer < 10028Object.Timer++29Music.Volume--30else31PlayMusic(0)3233Object.Type = TypeName[Blank Object]34end if35end if3637end sub383940// ========================41// Editor Subs42// ========================4344sub RSDKDraw45DrawSprite(0)46end sub474849sub RSDKLoad50LoadSpriteSheet("Global/Display.gif")51SpriteFrame(-16, -16, 32, 32, 1, 143) // "Script" Icon5253// Although used by the object, it shouldn't be set from the editor54// This object shouldn't even be placed in a scene at all, for that matter...55SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")56end sub575859