Path: blob/main/Scripts/R1/LogInterior.txt
1625 views
//----------------Sonic CD Log Interior Script----------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Not directly used, just here for reference (and in the editor section)5#alias 0 : LOGINTERIOR_SPR_WHOLE6#alias 1 : LOGINTERIOR_SPR_CONCAVE789sub ObjectDraw10DrawSprite(Object.PropertyValue)11end sub121314sub ObjectStartup15LoadSpriteSheet("R1/Objects2.gif")1617SpriteFrame(-16, -16, 32, 32, 190, 197) // #0 - Log Interior 018SpriteFrame(-16, -16, 32, 32, 223, 197) // #1 - Log Interior 119end sub202122// ========================23// Editor Subs24// ========================2526sub RSDKEdit27if Editor.ReturnVariable == true28switch Editor.VariableID29case EDIT_VAR_PROPVAL // Property Value30CheckResult = Object.PropertyValue31CheckResult &= 132break33case 0 // frameID34CheckResult = Object.PropertyValue35CheckResult &= 136break37end switch38else39switch Editor.VariableID40case EDIT_VAR_PROPVAL // Property Value41Object.PropertyValue = Editor.VariableValue42Object.PropertyValue &= 143break44case 0 // frameID45Object.PropertyValue = Editor.VariableValue46Object.PropertyValue &= 147break48end switch49end if50end sub515253sub RSDKDraw54DrawSprite(Object.PropertyValue)55end sub565758sub RSDKLoad59LoadSpriteSheet("R1/Objects2.gif")60SpriteFrame(-16, -16, 32, 32, 190, 197) // #0 - Log Interior 061SpriteFrame(-16, -16, 32, 32, 223, 197) // #1 - Log Interior 16263AddEditorVariable("frameID")64SetActiveVariable("frameID")65AddEnumVariable("Whole", LOGINTERIOR_SPR_WHOLE)66AddEnumVariable("Concave Dip", LOGINTERIOR_SPR_CONCAVE)67end sub686970