Path: blob/master/Sonic 1/Scripts/Credits/UnlockTest.txt
1483 views
// ----------------------------------1// RSDK Project: Sonic 12// Script Description: Unlock Test Object3// Script Author: Christian Whitehead/Simon Thomley4// Unpacked by Rubberduckycooly's script unpacker5// ----------------------------------67// ========================8// Aliases9// ========================1011// Achievement Aliases12// Only really the last one is used in this script, but may as well list the rest for reference anyway13// (Also yeah all the code for these Achievements is still in Origins's scripts lol)1415// "Ramp Ring Acrobatics" - "Without touching the ground, collect all the rings in a trapezoid formation in Green Hill Zone Act 1"16private alias 0 : ACHIEVEMENT_RAMPRINGACRO1718// "Blast Processing" - "Clear Green Hill Zone Act 1 in under 30 seconds"19private alias 1 : ACHIEVEMENT_BLASTPROCESSING2021// "Secret of Marble Zone" - "Travel though a secret room in Marbale Zone Act 3"22private alias 2 : ACHIEVEMENT_SECRETOFMZ2324// "Block Buster" - "Break 16 blocks in a row without stopping" (in Marble Zone)25private alias 3 : ACHIEVEMENT_BLOCKBUSTER2627// "Ring King" - "Collect 200 Rings"28private alias 4 : ACHIEVEMENT_RINGKING2930// "Secret of Labyrinth Zone" - "Activate and ride the hidden platform in Labyrinth Zone Act 1"31private alias 5 : ACHIEVEMENT_SECRETOFLZ3233// "Flawless Pursuit" - "Clear the boss in Labyrinth Zone without getting hurt"34private alias 6 : ACHIEVEMENT_FLAWLESSPURSUIT3536// "Bombs Away" - "Defeat the boss in Starlight Zone using only the see-saw bombs"37private alias 7 : ACHIEVEMENT_BOMBSAWAY3839// "Hidden Transporter" - "Collect 50 Rings and take the hidden transporter path in Scrap Brain Act 2"40private alias 8 : ACHIEVEMENT_HIDDENTRANSPORTER4142// "Chaos Connoisseur" - "Collect all the chaos emeralds"43private alias 9 : ACHIEVEMENT_CHAOSCONNOISSEUR4445// "One For the Road" - "As a parting gift, land a final hit on Dr. Eggman's escaping Egg Mobile"46private alias 10 : ACHIEVEMENT_ONEFORTHEROAD4748// "Beat The Clock" - "Clear the Time Attack mode in less than 45 minutes" (do note that this isn't normally unlocked through scripts, instead it's unlocked by the fancy 3d menu side of things)49private alias 11 : ACHIEVEMENT_BEATTHECLOCK5051// Total count, nothing special to say about this one52private alias 12 : ACHIEVEMENT_COUNT535455// ========================56// Events57// ========================5859event ObjectUpdate60// This object is meant to unlock all achievments, so cycle through all of them while unlocking each61temp0 = 062while temp0 < ACHIEVEMENT_COUNT63CallNativeFunction2(SetAchievement, temp0, 100)64temp0++65loop6667// Erase this object and reset the game68object.type = TypeName[Blank Object]69engine.state = RESET_GAME70end event717273event ObjectStartup74// Hide Touch Controls7576options.touchControls = false77end event787980// ========================81// Editor Events82// ========================8384event RSDKDraw85DrawSprite(0)86end event878889event RSDKLoad90LoadSpriteSheet("Global/Display.gif")91SpriteFrame(-16, -16, 32, 32, 1, 143)9293SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")94end event959697