sMslSpark 0 0 0 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 global.curropt = 0; opset = 0; editing = 0; ealpha = 0; active = 0; fadeout = 0; rectoffset = 0; dtext = ""; currentsuit = global.currentsuit; sfx_stop(sndSpinJump); sfx_stop(sndSpaceJump); sfx_stop(sndScrewAttack); sfx_stop(sndSpaceScrewAttack); sfx_stop(sndSpinJumpWater); tiptext[0] = get_text("Equipment", "PowerSuit_Tip"); tiptext[1] = get_text("Equipment", "VariaSuit_Tip"); tiptext[2] = get_text("Equipment", "GravitySuit_Tip"); tiptext[3] = get_text("Equipment", "ChargeBeam_Tip"); tiptext[4] = get_text("Equipment", "WaveBeam_Tip"); tiptext[5] = get_text("Equipment", "SpazerBeam_Tip"); tiptext[6] = get_text("Equipment", "PlasmaBeam_Tip"); tiptext[7] = get_text("Equipment", "IceBeam_Tip"); tiptext[8] = get_text("Equipment", "MorphBall_Tip"); tiptext[9] = get_text("Equipment", "SpiderBall_Tip"); tiptext[10] = get_text("Equipment", "JumpBall_Tip"); tiptext[11] = get_text("Equipment", "Bombs_Tip"); tiptext[12] = get_text("Equipment", "PowerGrip_Tip"); tiptext[13] = get_text("Equipment", "ScrewAttack_Tip"); tiptext[14] = get_text("Equipment", "HiJump_Tip"); tiptext[15] = get_text("Equipment", "SpaceJump_Tip"); tiptext[16] = get_text("Equipment", "SpeedBooster_Tip"); 1 603 7 0 0 -1 2 self 0 0 1 if (active && oControl.kDown && oControl.kDownPushedSteps == 0) { global.curropt += 1; if (global.curropt == 1 && global.item[5] == 0) global.curropt += 1; if (global.curropt == 2 && global.item[9] == 0) global.curropt += 1; if (global.curropt == 3 && global.item[10] == 0) global.curropt += 1; if (global.curropt == 4 && global.item[12] == 0) global.curropt += 1; if (global.curropt == 5 && global.item[13] == 0) global.curropt += 1; if (global.curropt == 6 && global.item[14] == 0) global.curropt += 1; if (global.curropt == 7 && global.item[11] == 0) global.curropt += 1; if (global.curropt == 9 && global.item[2] == 0) global.curropt += 1; if (global.curropt == 10 && global.item[3] == 0) global.curropt += 1; if (global.curropt == 11 && global.item[0] == 0) global.curropt += 1; if (global.curropt == 12 && global.item[1] == 0) global.curropt += 1; if (global.curropt == 13 && global.item[8] == 0) global.curropt += 1; if (global.curropt == 14 && global.item[4] == 0) global.curropt += 1; if (global.curropt == 15 && global.item[6] == 0) global.curropt += 1; if (global.curropt == 16 && global.item[7] == 0) global.curropt += 1; if (global.curropt > 16) global.curropt = 0; sfx_play(sndMenuMove); } if (active && oControl.kUp && oControl.kUpPushedSteps == 0) { global.curropt -= 1; if (global.curropt < 0) global.curropt = 16; if (global.curropt == 16 && global.item[7] == 0) global.curropt -= 1; if (global.curropt == 15 && global.item[6] == 0) global.curropt -= 1; if (global.curropt == 14 && global.item[4] == 0) global.curropt -= 1; if (global.curropt == 13 && global.item[8] == 0) global.curropt -= 1; if (global.curropt == 12 && global.item[1] == 0) global.curropt -= 1; if (global.curropt == 11 && global.item[0] == 0) global.curropt -= 1; if (global.curropt == 10 && global.item[3] == 0) global.curropt -= 1; if (global.curropt == 9 && global.item[2] == 0) global.curropt -= 1; if (global.curropt == 7 && global.item[11] == 0) global.curropt -= 1; if (global.curropt == 6 && global.item[14] == 0) global.curropt -= 1; if (global.curropt == 5 && global.item[13] == 0) global.curropt -= 1; if (global.curropt == 4 && global.item[12] == 0) global.curropt -= 1; if (global.curropt == 3 && global.item[10] == 0) global.curropt -= 1; if (global.curropt == 2 && global.item[9] == 0) global.curropt -= 1; if (global.curropt == 1 && global.item[5] == 0) global.curropt -= 1; sfx_play(sndMenuMove); } if (active && oControl.kRight > 0 && oControl.kRightPushedSteps == 0 && global.curropt < 8) { if (global.curropt >= 0 && global.curropt < 3) { global.curropt = 8; } else global.curropt = 14; if (global.curropt == 14 && global.item[4] == 0) global.curropt += 1; if (global.curropt == 15 && global.item[6] == 0) global.curropt += 1; if (global.curropt == 16 && global.item[7] == 0) global.curropt += 1; if (global.curropt > 16) global.curropt = 8; sfx_play(sndMenuMove); } if (active && oControl.kLeft > 0 && oControl.kLeftPushedSteps == 0 && global.curropt >= 8) { if (global.curropt >= 8 && global.curropt < 14) { global.curropt = 0; } else { global.curropt = 3; } if (global.curropt == 3 && global.item[10] == 0) global.curropt += 1; if (global.curropt == 4 && global.item[12] == 0) global.curropt += 1; if (global.curropt == 5 && global.item[13] == 0) global.curropt += 1; if (global.curropt == 6 && global.item[14] == 0) global.curropt += 1; if (global.curropt == 7 && global.item[11] == 0) global.curropt += 1; if (global.curropt > 7) global.curropt = 0; sfx_play(sndMenuMove); } if (active && oControl.kMenu1 && oControl.kMenu1PushedSteps == 0) { editing = 1; sfx_play(sndMenuMove); } if (editing) { if (global.curropt == 0) global.currentsuit = 0; if (global.curropt == 1) global.currentsuit = 1; if (global.curropt == 2) global.currentsuit = 2; if (global.curropt == 3) global.cbeam = !global.cbeam; if (global.curropt == 4) global.wbeam = !global.wbeam; if (global.curropt == 5) global.sbeam = !global.sbeam; if (global.curropt == 6) global.pbeam = !global.pbeam; if (global.curropt == 7) global.ibeam = !global.ibeam; if (global.curropt == 8) global.morphball = !global.morphball; if (global.curropt == 9) global.spiderball = !global.spiderball; if (global.curropt == 10) global.jumpball = !global.jumpball; if (global.curropt == 11) global.bomb = !global.bomb; if (global.curropt == 12) global.powergrip = !global.powergrip; if (global.curropt == 13) global.screwattack = !global.screwattack; if (global.curropt == 14) global.hijump = !global.hijump; if (global.curropt == 15) global.spacejump = !global.spacejump; if (global.curropt == 16) global.speedbooster = !global.speedbooster; editing = 0; } dtext = tiptext[global.curropt]; if (active && oControl.kStart && oControl.kStartPushedSteps == 0) { fadeout = 1; active = 0; } if (fadeout) rectoffset += 2; if (ealpha < 1 && fadeout == 0) ealpha += 0.05; if (ealpha > 0 && fadeout) ealpha -= 0.05; if (ealpha >= 1 && fadeout == 0 && instance_exists(oSubScrChange) == false) active = 1; if (ealpha <= 0 && fadeout) { global.ingame = 1; global.transitiontype = 3; room_goto(global.currentroom); Unmute_Loops(); } if (global.curropt < 14) { oSubScrPlayer.targety = 52; } else oSubScrPlayer.targety = -13; 1 603 7 0 0 -1 2 self 0 0 1 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 -1