// --------------------------------------
// Lua_Freeslot
// Freeslots, yaaaaaaaaaay
// --------------------------------------
freeslot(
// Objects
"MT_KIRBYSUCKS", "MT_KIRBYSPITSTAR", "MT_KIRBYSTARDROP", "MT_KIRBYAIRPUFF",	// Main
"MT_KIRBY_STARPARTICLE",
"MT_KIRBY_BOSSSTAR",
// Ability objects
"MT_ICEBREATH", "MT_KIRBYICEBLOCK",											// Ice
"MT_DUMMYBOMB", "MT_KIRBYBOMB", "MT_KIRBYBOMBSPARK",						// Bomb
"MT_SPARKEFF", "MT_SPARKHURT",												// Spark
"MT_WHEELGHOST",															// Wheel
"MT_BALLSPARKLE",															// Ball
"MT_KIRBYSWORD",															// Sword
"MT_KIRBYHAMMERDUST",														// Hammer
"MT_KIRBY_MIKE",															// Microphone
"MT_KIRBY_UFOBEAM",															// UFO
"MT_KIRBY_STARSHIPSTAR",													// Starship
// Sprites
"SPR_STAR", "SPR_STRD", "SPR_STRS", "SPR_KARP", "SPR_KSTR",					// Main
"SPR_INVS",																	// Garbage
// Kirby sprite2s
"SPR2_TMBL", "SPR2_PUFF", "SPR2_FLOT", "SPR2_DUCK",
"SPR2_SLID", "SPR2_CNSM", "SPR2_ABLG", "SPR2_SUKM",
"SPR2_FROZ",	// Used for players
// Fat
"SPR2_FSTN", "SPR2_FWLK", "SPR2_FOWW", "SPR2_FSPR", "SPR2_FFAL", "SPR2_FRID",
// Ability sprites (Use normal sprites rather than sprite2s, as there's quite limited sprite2s)
"SPR_KFBL", "SPR_FFBL", "SPR_KFLM",											// Fireball
"SPR_KICE", "SPR_FICE", "SPR_KIBR",											// Ice
"SPR_STON",																	// Stone
"SPR_KHLP", "SPR_FHLP", "SPR_KBOM", "SPR_KBSP",								// Bomb
"SPR_KSPR", "SPR_FSPK", "SPR_ESPR",											// Spark
"SPR_KNDL", "SPR_FNDL",														// Needle
"SPR_KTRN", "SPR_FTRN", "SPR_TRNA",											// Tornado
"SPR_KWHL",																	// Wheel
"SPR_KBAL", "SPR_KSPK",														// Ball
"SPR_KSWR", "SPR_FSWR",														// Sword
"SPR_KHMR", "SPR_FHMR", 													// Hammer
"SPR_KDST", "SPR_FDST", "SPR_KMIK", "SPR_KPHN", "SPR_KSPT", "SPR_FSPT",		// Mike
"SPR_KSLP", "SPR_FSLP",														// Sleep
"SPR_KUFO", "SPR_UFOB",														// UFO
// Animations
"S_KIRBY_DUCK", "S_KIRBY_SLIDE",											// Kirby animations
"S_KIRBY_FLOATSTART", "S_KIRBY_FLOAT", "S_KIRBY_FLOATEND", "S_KIRBY_FLOATTIRE",
"S_KIRBY_DEATHTUMBLE",
"S_KIRBY_SWIM",
"S_KIRBY_SUCK", "S_KIRBY_SUCKMOVE", "S_KIRBY_SPIT", "S_KIRBY_CONSUME",		// Succ
"S_KIRBY_TRANSFORM1", "S_KIRBY_TRANSFORM2",									// Copy
"S_KIRBY_STARSHIP",
// States
"S_KIRBYSUCKS",																// Main
"S_KIRBYSTAR1", "S_KIRBYSTAR2", "S_KIRBYSTAR3", "S_KIRBYSTAR4",				// Main cont. 1
"S_KIRBYSTARDIE1", "S_KIRBYSTARDIE2", "S_KIRBYSTARDIE3", "S_KIRBYSTARDIE4",	// Main cont. 2
"S_KIRBYAIRPUFF1", "S_KIRBYAIRPUFF2", "S_KIRBYAIRPUFF3", "S_KIRBYAIRPUFF4",	// Main cont. 3
"S_KIRBY_STARPARTICLE", 													// Main cont. 4
// Ability animations
"S_KIRBY_FIRE1", "S_KIRBY_FIRE2",											// Fireball
"S_KIRBY_ICE1", "S_KIRBY_ICE2",												// Ice
"S_ICEBREATH1", "S_ICEBREATH2", "S_ICEBREATH3", "S_ICEBREATH4", "S_ICEBREATH5",
"S_KIRBYICEBLOCK", "S_KIRBYICEBLOCKDIE", "S_INKIRBYICE",
"S_KIRBY_STONE", "S_KIRBY_STONETRANS",										// Stone
"S_KIRBY_BHOLD",															// Bomb
"S_KIRBY_BWALK1", "S_KIRBY_BWALK2", "S_KIRBY_BWALK3", "S_KIRBY_BWALK4",
"S_KIRBY_BWALK5", "S_KIRBY_BWALK6", "S_KIRBY_BWALK7", "S_KIRBY_BWALK8",
"S_KIRBY_BTHROW1", "S_KIRBY_BTHROW2",
"S_DUMMYBOMB", "S_KIRBYBOMB", "S_KIRBYBOMBSPARK1", "S_KIRBYBOMBSPARK2",
"S_KIRBYBOMBSPARK3", "S_KIRBYBOMBSPARK4",
"S_KIRBY_SPARK1", "S_KIRBY_SPARK2", "S_KIRBY_SPARK3",						// Spark
"S_KIRBY_SPARK4", "S_KIRBY_SPARK5", "S_KIRBY_SPARK6",
"S_SPARKEFF1", "S_SPARKEFF2", "S_SPARKEFF3", "S_SPARKHURT",
"S_KIRBY_NEEDLE1", "S_KIRBY_NEEDLE2", "S_KIRBY_NEEDLE3", "S_KIRBY_NEEDLE4",	// Needle
"S_KIRBY_TORNADO", "S_TORNADO1", "S_TORNADO2",								// Tornado
"S_TORNADO3", "S_TORNADO4", "S_TORNADOEFF1", "S_TORNADOEFF2",
"S_KIRBY_WHEEL1", "S_KIRBY_WHEEL2", "S_KIRBY_WHEEL3", "S_KIRBY_WHEEL4",		// Wheel
"S_KIRBY_WHEELTRANS1", "S_KIRBY_WHEELTRANS2",
"S_KIRBY_BALL1", "S_KIRBY_BALL2", "S_KIRBY_BALL3", "S_KIRBY_BALL4",			// Ball
"S_KIRBY_BALL5", "S_KIRBY_BALL6", "S_KIRBY_BALL7", "S_KIRBY_BALL8",
"S_KIRBY_BALL_SD", "S_KIRBY_BALL_SU", "S_KIRBY_BALL_TA", "S_KIRBY_BALL_TB",
"S_BALLSPARKLE1", "S_BALLSPARKLE2", "S_BALLSPARKLE3", "S_BALLSPARKLE4", "S_BALLSPARKLE5",
"S_BALLSPARKLE6", "S_BALLSPARKLE7", "S_BALLSPARKLE8", "S_BALLSPARKLE9",
"S_KIRBY_SWORD1", "S_KIRBY_SWORD2", "S_KIRBY_SWORD3", "S_KIRBY_SWORD4",		// Sword
"S_KIRBY_SWORD5", "S_KIRBY_SWORD6", "S_KIRBY_SWORD7", "S_KIRBY_SWORDSPIN",
"S_KIRBYSWORD",
"S_KIRBY_HAMMER1", "S_KIRBY_HAMMER2", "S_KIRBY_HAMMER3", "S_KIRBY_HAMMER4",	// Hammer
"S_KIRBY_HAMMERLAND1", "S_KIRBY_HAMMERLAND2", "S_KIRBY_HAMMERS",
"S_KIRBY_SHOUT1", "S_KIRBY_SHOUT2",											// Mike
"S_KIRBY_MFINAL1", "S_KIRBY_MFINAL2", "S_KIRBY_MFINAL3",
"S_KIRBY_MFINAL4", "S_KIRBY_MFINAL5", "S_KIRBY_MFINAL6", "S_KIRBY_MFINAL7",
"S_KIRBY_MFINAL8",
"S_KIRBY_MIKE1", "S_KIRBY_MIKE2",
"S_KIRBY_SLEEP1", "S_KIRBY_SLEEP2", "S_KIRBY_SLEEP3", "S_KIRBY_SLEEP4",		// Sleep
"S_KIRBY_SLEEP5", "S_KIRBY_SLEEP6", "S_KIRBY_SLEEP7", "S_KIRBY_SLEEP8",
"S_KIRBY_SLEEP9", "S_KIRBY_SLEEP10", "S_KIRBY_SLEEP11",
"S_KIRBY_UFO1", "S_KIRBY_UFO2", "S_KIRBY_UFO3",								// UFO
"S_KIRBY_UFOOPEN1", "S_KIRBY_UFOOPEN2",
"S_KIRBY_UFOHOLD1", "S_KIRBY_UFOHOLD2", "S_KIRBY_UFOHOLD3",
"S_KIRBY_UFOCHARGE1", "S_KIRBY_UFOCHARGE2", "S_KIRBY_UFOCHARGE3",
"S_KIRBY_UFOBEAM1", "S_KIRBY_UFOBEAM2", "S_KIRBY_UFOBEAM3", "S_KIRBY_UFOBEAM4",
"S_KIRBY_UFOBEAMC1", "S_KIRBY_UFOBEAMC2", "S_KIRBY_UFOBEAMC3", "S_KIRBY_UFOBEAMC4",
"S_KIRBY_STARSHIPSTAR",														// Starship
// Garbage
"S_KIRBYMONINVIS", "S_KIRBYMONWILLDIE")
// Sounds
freeslot(
// General
"sfx_kjump", "sfx_kfloat", "sfx_kland", "sfx_klandb", "sfx_kflat", "sfx_kbrake", "sfx_exhale", "sfx_khurt", "sfx_kheal", "sfx_kbarup",
"sfx_hpwarn", "sfx_kdies", "sfx_kdiet",
// No ability
"sfx_suck", "sfx_suckl", "sfx_4suck", "sfx_4suckl", "sfx_dsuck", "sfx_dsuckl", "sfx_fill", "sfx_spit", "sfx_spitl", "sfx_eat", "sfx_eat2",
// Abilities
"sfx_ablg", "sfx_ablt", "sfx_khurta", "sfx_beam", "sfx_spark", "sfx_rock", "sfx_stone", "sfx_stoneb", "sfx_unrock",
"sfx_sword", "sfx_swords", "sfx_hamers", "sfx_ice", "sfx_klaser", "sfx_hijump", "sfx_tornad", "sfx_mike", "sfx_mike2", "sfx_mikef",
"sfx_ksleep", "sfx_kwkeup", "sfx_kufo",
//---------------------
// SECRET ABILITIES
//---------------------
// Objects
"MT_KIRBYUSABIT", "MT_KIRBYBITSHOT",										// Rbits
"MT_KIRBYLOCKON", "MT_KIRBY_RCC",											// Suguri lock on and rainbow circle
"MT_KIRBYBULLET",															// Gun
"MT_KIRBYFEETFACE",															// Legacy
// Sprites
"SPR_USAB", "SPR_KRBS",														// Rbits
"SPR_KSUG", "SPR_KLCK",														// Dash and lock on
"SPR_KRC0", "SPR_KRC1", "SPR_KRC2", "SPR_KRC3", "SPR_KRC4",					// Rainbow colored circle
"SPR_KRC5", "SPR_KRC6", "SPR_KRC7", "SPR_KRC8", "SPR_KRC9",
"SPR_KGUN", "SPR_FGUN", "SPR_KBUL",											// Gun
"SPR_KYAH", "SPR_FYAH",														// Yahoo!
"SPR_KLEG", "SPR_FLEG", "SPR_ALEG", "SPR_FATL",								// "Legacy"
// States
"S_KIRBYUSABIT1", "S_KIRBYUSABIT2", "S_KIRBYUSABIT3", "S_KIRBYUSABIT4",		// Rbits
"S_KIRBYBITSHOT1", "S_KIRBYBITSHOT2",
"S_KIRBYDASH1", "S_KIRBYDASH2", "S_KIRBYDASH3", "S_KIRBYDASH4",				// Suguri dashing
"S_KIRBYDASH5", "S_KIRBYDASH6", "S_KIRBYDASH7", "S_KIRBYDASH8",
"S_KIRBY_RCC1", "S_KIRBY_RCC2", "S_KIRBY_RCC3", "S_KIRBY_RCC4",				// Rainbow colored circle
"S_KIRBY_SUGUSWORD1", "S_KIRBY_SUGUSWORD2", "S_KIRBY_SUGUSWORD3",			// Suguri beam sword
"S_KIRBYLOCKON",															// Suguri lock on
"S_KIRBYBULLET", "S_KIRBY_GUNSTAND",										// Gun
"S_KIRBY_GUNWALK1", "S_KIRBY_GUNWALK2", "S_KIRBY_GUNWALK3", "S_KIRBY_GUNWALK4",
"S_KIRBY_GUNWALK5", "S_KIRBY_GUNWALK6", "S_KIRBY_GUNWALK7", "S_KIRBY_GUNWALK8",
"S_KIRBY_YAH", "S_KIRBY_HOO", "S_KIRBY_UHN",								// Yahoo!
"S_KLEGACY_STAND", "S_KLEGACY_WALK1", "S_KLEGACY_WALK2", "S_KLEGACY_WALK3",	// Legacy
"S_KLEGACY_WALK4", "S_KLEGACY_WALK5", "S_KLEGACY_WALK6", "S_KLEGACY_WALK7",
"S_KLEGACY_WALK8", "S_KLEGACY_JUMP", "S_KLEGACY_FALL", "S_KLEGACY_SUCK",
"S_KLEGACY_FLOAT1", "S_KLEGACY_FLOAT2", "S_KLEGACY_FLOAT3", "S_KLEGACY_FLOAT4",
"S_KLEGACY_FLOAT5", "S_KLEGACY_FLOAT6", "S_KLEGACY_FLOAT7",
"S_KLEGACY_SPIN1", "S_KLEGACY_SPIN2", "S_KLEGACY_SPIN3", "S_KLEGACY_SPIN4",
"S_KLEGACY_SPIN5", "S_KLEGACY_SPIN6", "S_KLEGACY_SPIN7", "S_KLEGACY_SPIN8",
"S_KLEGACY_SPIN9", "S_KLEGACY_SPIN10", "S_KLEGACY_SPIT",
// Sounds
"sfx_rbit", "sfx_bshoot", "sfx_brifle", "sfx_krdash", "sfx_krring", "sfx_edgysh", "sfx_ohno", "sfx_bluesc", "sfx_kyahoo",
"sfx_floatm", "sfx_floate", "sfx_floatf", "sfx_nouse")

// Closed captions
sfxinfo[sfx_kjump].caption = "Jump"
sfxinfo[sfx_kfloat].caption = "Float"
sfxinfo[sfx_kland].caption = "Land"
sfxinfo[sfx_klandb].caption = "Land"
sfxinfo[sfx_kflat].caption = "Squish"
sfxinfo[sfx_kbrake].caption = "Skid"
sfxinfo[sfx_exhale].caption = "Air puff"
sfxinfo[sfx_khurt].caption = "Ring loss"
sfxinfo[sfx_kheal].caption = "Healing"
sfxinfo[sfx_kbarup].caption = "/"
sfxinfo[sfx_hpwarn].caption = "Low HP"
sfxinfo[sfx_kdies].caption = "Dying"
sfxinfo[sfx_kdiet].caption = "/"
sfxinfo[sfx_suck].caption = "Inhale"
sfxinfo[sfx_suckl].caption = "Inhale"
sfxinfo[sfx_4suck].caption = "Inhale"
sfxinfo[sfx_4suckl].caption = "Inhale"
sfxinfo[sfx_fill].caption = "Fill"
sfxinfo[sfx_spit].caption = "Spit"
sfxinfo[sfx_spitl].caption = "Large spit"
sfxinfo[sfx_eat].caption = "Suck"
sfxinfo[sfx_eat2].caption = "Swallow"
sfxinfo[sfx_ablg].caption = "Copy ability"
sfxinfo[sfx_ablt].caption = "Ability tossed"
sfxinfo[sfx_khurta].caption = "Ability lost"
sfxinfo[sfx_beam].caption = "Beam"
sfxinfo[sfx_spark].caption = "Spark"
sfxinfo[sfx_rock].caption = "Stone"
sfxinfo[sfx_stone].caption = "Thud"
sfxinfo[sfx_stoneb].caption = "/"	// 3 sounds at the same time garunteed. Probably not the best idea...
sfxinfo[sfx_rock].caption = "Unstoned"
sfxinfo[sfx_sword].caption = "Slash"
sfxinfo[sfx_swords].caption = "Tornado"
sfxinfo[sfx_hamers].caption = "Twirl"
sfxinfo[sfx_ice].caption = "Ice"
sfxinfo[sfx_klaser].caption = "Laser"
sfxinfo[sfx_hijump].caption = "Boing"
sfxinfo[sfx_tornad].caption = "Motor"
sfxinfo[sfx_mike].caption = "Loud scream"
sfxinfo[sfx_mike2].caption = "Ear peircing shout"
sfxinfo[sfx_mikef].caption = "Ear bleeding scream"
sfxinfo[sfx_ksleep].caption = "Peaceful sleeping"
sfxinfo[sfx_kwkeup].caption = "Rude awakening"
// Secret
sfxinfo[sfx_rbit].caption = "Usa power up"//"Usa get"
sfxinfo[sfx_bshoot].caption = "Pew"
sfxinfo[sfx_brifle].caption = "Beam shot"
sfxinfo[sfx_krdash].caption = "Acceleration"
sfxinfo[sfx_krring].caption = "Phased"
sfxinfo[sfx_edgysh].caption = "Bang"
sfxinfo[sfx_ohno].caption = '"Oh no" - Knuckles'
sfxinfo[sfx_bluesc].caption = "A fatal exception 0E has occurred at 0028:C562F1B7 in VXD ctpci9x(05) Press any key to continue _"
sfxinfo[sfx_kyahoo].caption = "Yahoo!"
sfxinfo[sfx_floatm].caption = "Crusty floating"
sfxinfo[sfx_floate].caption = "Crustier floating"
sfxinfo[sfx_floatf].caption = "Extremely crusty floating"
sfxinfo[sfx_nouse].caption = "'ITS NO USE'"

local usepriority = 96
local snum = sfx_kjump
while(snum <= sfx_nouse)
	sfxinfo[snum].priority = usepriority
	snum = $1 + 1
end
