Path: blob/main/Scripts/Menu/HelpItems.txt
1319 views
//-----------------Sonic CD Help Items Script-----------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//345sub ObjectDraw6Object.Scale = 3207DrawSpriteFX(Object.PropertyValue, FX_SCALE, Object.XPos, Object.YPos)8end sub91011sub ObjectStartup12LoadSpriteSheet("Menu/MetalSonic.gif")1314SpriteFrame(-8, -8, 16, 16, 204, 184) // #0 - Ring15SpriteFrame(-16, -15, 32, 30, 223, 183) // #1 - Ring Monitor16SpriteFrame(-16, -15, 32, 30, 223, 216) // #2 - Shield Monitor17SpriteFrame(-16, -15, 32, 30, 223, 249) // #3 - Invincibility Monitor18SpriteFrame(-16, -15, 32, 30, 223, 282) // #4 - Speed Shoes Monitor19SpriteFrame(-16, -15, 32, 30, 223, 315) // #5 - Life Monitor20SpriteFrame(-8, -32, 16, 64, 204, 201) // #6 - Lamp Post21SpriteFrame(-16, -32, 32, 64, 196, 52) // #7 - Past Post22SpriteFrame(-16, -32, 32, 64, 196, 117) // #8 - Future Post23end sub242526// ========================27// Editor Subs28// ========================2930sub RSDKEdit31if Editor.ReturnVariable == true32switch Editor.VariableID33case EDIT_VAR_PROPVAL // Property Value34CheckResult = Object.PropertyValue35break36case 0 // Frame37CheckResult = Object.PropertyValue38break39end switch40else41switch Editor.VariableID42case EDIT_VAR_PROPVAL // Property Value43Object.PropertyValue = Editor.VariableValue44break45case 0 // Frame46Object.PropertyValue = Editor.VariableValue47break48end switch49end if50end sub515253sub RSDKDraw54DrawSprite(Object.PropertyValue)55end sub565758sub RSDKLoad59LoadSpriteSheet("Menu/MetalSonic.gif")60SpriteFrame(-8, -8, 16, 16, 204, 184) // #0 - Ring61SpriteFrame(-16, -15, 32, 30, 223, 183) // #1 - Ring Monitor62SpriteFrame(-16, -15, 32, 30, 223, 216) // #2 - Shield Monitor63SpriteFrame(-16, -15, 32, 30, 223, 249) // #3 - Invincibility Monitor64SpriteFrame(-16, -15, 32, 30, 223, 282) // #4 - Speed Shoes Monitor65SpriteFrame(-16, -15, 32, 30, 223, 315) // #5 - Life Monitor66SpriteFrame(-8, -32, 16, 64, 204, 201) // #6 - Lamp Post67SpriteFrame(-16, -32, 32, 64, 196, 52) // #7 - Past Post68SpriteFrame(-16, -32, 32, 64, 196, 117) // #8 - Future Post6970AddEditorVariable("Frame")71SetActiveVariable("Frame")72AddEnumVariable("Ring", 0)73AddEnumVariable("Ring Monitor", 1)74AddEnumVariable("Shield Monitor", 2)75AddEnumVariable("Invincibility Monitor", 3)76AddEnumVariable("Speed Shoes Monitor", 4)77AddEnumVariable("1UP Monitor", 5)78AddEnumVariable("Lamp Post", 6)79AddEnumVariable("Past Post", 7)80AddEnumVariable("Future Post", 8)81end sub828384