Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - ------ BEGIN SCRIPT ------
 - -- Copy and Paste this text into an empty text file, and save it as
 - -- YOURTITLEHERE.lua, in your Data/Missions/Training/ folder.
 - HedgewarsScriptLoad("/Scripts/Locale.lua")
 - HedgewarsScriptLoad("/Scripts/Tracker.lua")
 - local hhs = {}
 - local wepArray = {
 - amBazooka, amBee, amMortar, amDrill, amSnowball,
 - amGrenade, amClusterBomb, amMolotov, amWatermelon, amHellishBomb, amGasBomb,
 - amShotgun, amDEagle, amSniperRifle, amSineGun, amLandGun, amIceGun,
 - amFirePunch, amWhip, amBaseballBat, amKamikaze, amSeduction, amHammer,
 - amMine, amDynamite, amCake, amBallgun, amRCPlane, amSMine, amAirMine,
 - amAirAttack, amMineStrike, amDrillStrike, amNapalm, amPiano, amBirdy,
 - amBlowTorch, amPickHammer, amGirder, amRubber, amPortalGun,
 - amRope, amParachute, amTeleport, amJetpack,
 - amInvulnerable, amLaserSight, amVampiric,
 - amLowGravity, amExtraDamage, amExtraTime, amResurrector, amTardis, amSwitch
 - }
 - local crateArray = {
 - amBazooka, amBee, amMortar, amDrill,
 - amGrenade, amClusterBomb, amMolotov,
 - amShotgun, amDEagle, amSniperRifle, amSineGun, amLandGun, amIceGun,
 - amFirePunch, amWhip,
 - amMine, amDynamite, amCake, amBallgun, amRCPlane, amSMine, amAirMine,
 - amAirAttack, amMineStrike, amDrillStrike, amNapalm,
 - amBlowTorch, amPickHammer, amRubber,
 - amParachute, amTeleport,
 - amInvulnerable, amLaserSight, amVampiric
 - }
 - function onGameInit()
 - ClearGameFlags()
 - EnableGameFlags(gfPerHogAmmo)
 - Map = "BambooPlinko"
 - Theme = "Golf"
 - TurnTime = 45000
 - Explosives = 0
 - MinesNum = 0
 - CaseFreq = 0
 - Delay = 100
 - HealthCaseProb = 35
 - HealthCaseAmount = 25
 - DamagePercent = 100
 - MinesTime = 3000
 - MineDudPercent = 0
 - SuddenDeathTurns = 50
 - WaterRise = 0
 - HealthDecrease = 1
 - ------ TEAM LIST ------
 - AddTeam("The Police", "0xff4980c1", "Statue", "Castle", "British", "cm_star")
 - hhs[1] = AddHog("Harris", 0, 1, "policecap")
 - SetGearPosition(hhs[1], 1110, 817)
 - setGearValue(hhs[1], "tag", "failure")
 - AddTeam("Clowns", "0xff1de6ba", "Rubberduck", "Castle", "Mobster", "cm_birdy")
 - hhs[2] = AddHog("Patches", 1, 70, "WhySoSerious")
 - SetGearPosition(hhs[2], 840, 691)
 - hhs[3] = AddHog("Bingo", 1, 70, "clown-crossed")
 - SetGearPosition(hhs[3], 481, 451)
 - hhs[4] = AddHog("Chester", 1, 70, "Joker")
 - SetGearPosition(hhs[4], 535, 697)
 - hhs[5] = AddHog("Loopy", 1, 70, "clown-copper")
 - SetGearPosition(hhs[5], 258, 692)
 - hhs[6] = AddHog("Heckles", 1, 70, "clown")
 - SetGearPosition(hhs[6], 1218, 212)
 - hhs[7] = AddHog("Buster", 1, 70, "clown-crossed")
 - SetGearPosition(hhs[7], 728, 451)
 - hhs[8] = AddHog("Baggy", 1, 70, "WhySoSerious")
 - SetGearPosition(hhs[8], 840, 91)
 - hhs[9] = AddHog("Bozo", 1, 70, "Joker")
 - SetGearPosition(hhs[9], 366, 91)
 - AddTeam("Street Fighters", "0xff1de6ba", "dragonball", "Castle", "Surfer", "cm_balrog")
 - hhs[10] = AddHog("Balrog", 1, 80, "sf_balrog")
 - SetGearPosition(hhs[10], 1681, 451)
 - hhs[11] = AddHog("Blanka", 1, 80, "sf_blanka")
 - SetGearPosition(hhs[11], 729, 571)
 - hhs[12] = AddHog("Chunli", 1, 80, "sf_chunli")
 - SetGearPosition(hhs[12], 830, 213)
 - hhs[13] = AddHog("Guile", 1, 80, "sf_guile")
 - SetGearPosition(hhs[13], 1914, 93)
 - hhs[14] = AddHog("Honda", 1, 80, "sf_honda")
 - SetGearPosition(hhs[14], 847, 571)
 - hhs[15] = AddHog("Ken", 1, 80, "sf_ken")
 - SetGearPosition(hhs[15], 1217, 91)
 - hhs[16] = AddHog("Ryu", 1, 80, "sf_ryu")
 - SetGearPosition(hhs[16], 1794, 693)
 - hhs[17] = AddHog("Vega", 1, 80, "sf_vega")
 - SetGearPosition(hhs[17], 1452, 91)
 - AddTeam("Cybernetic Empire", "0xff1de6ba", "Grave", "Castle", "Robot", "cm_binary")
 - hhs[18] = AddHog("Unit 485", 1, 100, "cyborg1")
 - SetGearPosition(hhs[18], 949, 333)
 - hhs[19] = AddHog("Unit 189", 1, 100, "cyborg2")
 - SetGearPosition(hhs[19], 1787, 454)
 - hhs[20] = AddHog("Unit 883", 1, 1000, "cyborg2")
 - SetGearPosition(hhs[20], 474, 573)
 - setGearValue(hhs[20], "tag", "victory")
 - hhs[21] = AddHog("Unit 638", 1, 100, "cyborg2")
 - SetGearPosition(hhs[21], 1204, 331)
 - hhs[22] = AddHog("Unit 709", 1, 100, "cyborg1")
 - SetGearPosition(hhs[22], 586, 575)
 - hhs[23] = AddHog("Unit 333", 1, 100, "cyborg1")
 - SetGearPosition(hhs[23], 714, 213)
 - hhs[24] = AddHog("Unit 527", 1, 100, "cyborg1")
 - SetGearPosition(hhs[24], 246, 211)
 - hhs[25] = AddHog("Unit 234", 1, 100, "cyborg2")
 - SetGearPosition(hhs[25], 657, 696)
 - end
 - function LoadHogWeapons()
 - AddAmmo(hhs[1], amBazooka, 100)
 - AddAmmo(hhs[1], amGrenade, 100)
 - AddAmmo(hhs[1], amShotgun, 100)
 - AddAmmo(hhs[1], amWhip, 100)
 - AddAmmo(hhs[2], amGasBomb, 100)
 - AddAmmo(hhs[2], amBaseballBat, 100)
 - AddAmmo(hhs[2], amKamikaze, 1)
 - AddAmmo(hhs[2], amBallgun, 1)
 - AddAmmo(hhs[3], amGasBomb, 100)
 - AddAmmo(hhs[3], amBaseballBat, 100)
 - AddAmmo(hhs[3], amKamikaze, 1)
 - AddAmmo(hhs[3], amBallgun, 1)
 - AddAmmo(hhs[4], amGasBomb, 100)
 - AddAmmo(hhs[4], amBaseballBat, 100)
 - AddAmmo(hhs[4], amKamikaze, 1)
 - AddAmmo(hhs[4], amBallgun, 1)
 - AddAmmo(hhs[5], amGasBomb, 100)
 - AddAmmo(hhs[5], amBaseballBat, 100)
 - AddAmmo(hhs[5], amKamikaze, 1)
 - AddAmmo(hhs[5], amBallgun, 1)
 - AddAmmo(hhs[6], amGasBomb, 100)
 - AddAmmo(hhs[6], amBaseballBat, 100)
 - AddAmmo(hhs[6], amKamikaze, 1)
 - AddAmmo(hhs[6], amBallgun, 1)
 - AddAmmo(hhs[7], amGasBomb, 100)
 - AddAmmo(hhs[7], amBaseballBat, 100)
 - AddAmmo(hhs[7], amKamikaze, 1)
 - AddAmmo(hhs[7], amBallgun, 1)
 - AddAmmo(hhs[8], amGasBomb, 100)
 - AddAmmo(hhs[8], amBaseballBat, 100)
 - AddAmmo(hhs[8], amKamikaze, 1)
 - AddAmmo(hhs[8], amBallgun, 1)
 - AddAmmo(hhs[9], amGasBomb, 100)
 - AddAmmo(hhs[9], amBaseballBat, 100)
 - AddAmmo(hhs[9], amKamikaze, 1)
 - AddAmmo(hhs[9], amBallgun, 1)
 - AddAmmo(hhs[10], amBee, 2)
 - AddAmmo(hhs[10], amSineGun, 100)
 - AddAmmo(hhs[10], amIceGun, 2)
 - AddAmmo(hhs[10], amLowGravity, 100)
 - AddAmmo(hhs[11], amBee, 2)
 - AddAmmo(hhs[11], amSineGun, 100)
 - AddAmmo(hhs[11], amIceGun, 2)
 - AddAmmo(hhs[11], amLowGravity, 100)
 - AddAmmo(hhs[12], amBee, 2)
 - AddAmmo(hhs[12], amSineGun, 100)
 - AddAmmo(hhs[12], amIceGun, 2)
 - AddAmmo(hhs[12], amLowGravity, 100)
 - AddAmmo(hhs[13], amBee, 2)
 - AddAmmo(hhs[13], amSineGun, 100)
 - AddAmmo(hhs[13], amIceGun, 2)
 - AddAmmo(hhs[13], amLowGravity, 100)
 - AddAmmo(hhs[14], amBee, 2)
 - AddAmmo(hhs[14], amSineGun, 100)
 - AddAmmo(hhs[14], amIceGun, 2)
 - AddAmmo(hhs[14], amLowGravity, 100)
 - AddAmmo(hhs[15], amBee, 2)
 - AddAmmo(hhs[15], amSineGun, 100)
 - AddAmmo(hhs[15], amIceGun, 2)
 - AddAmmo(hhs[15], amLowGravity, 100)
 - AddAmmo(hhs[16], amBee, 2)
 - AddAmmo(hhs[16], amSineGun, 100)
 - AddAmmo(hhs[16], amIceGun, 2)
 - AddAmmo(hhs[16], amLowGravity, 100)
 - AddAmmo(hhs[17], amBee, 2)
 - AddAmmo(hhs[17], amSineGun, 100)
 - AddAmmo(hhs[17], amIceGun, 2)
 - AddAmmo(hhs[17], amLowGravity, 100)
 - AddAmmo(hhs[18], amBazooka, 100)
 - AddAmmo(hhs[18], amMortar, 100)
 - AddAmmo(hhs[18], amShotgun, 100)
 - AddAmmo(hhs[19], amBazooka, 100)
 - AddAmmo(hhs[19], amMortar, 100)
 - AddAmmo(hhs[19], amShotgun, 100)
 - AddAmmo(hhs[20], amWatermelon, 100)
 - AddAmmo(hhs[21], amBazooka, 100)
 - AddAmmo(hhs[21], amMortar, 100)
 - AddAmmo(hhs[21], amShotgun, 100)
 - AddAmmo(hhs[22], amBazooka, 100)
 - AddAmmo(hhs[22], amMortar, 100)
 - AddAmmo(hhs[22], amShotgun, 100)
 - AddAmmo(hhs[23], amBazooka, 100)
 - AddAmmo(hhs[23], amMortar, 100)
 - AddAmmo(hhs[23], amShotgun, 100)
 - AddAmmo(hhs[24], amBazooka, 100)
 - AddAmmo(hhs[24], amMortar, 100)
 - AddAmmo(hhs[24], amShotgun, 100)
 - AddAmmo(hhs[25], amBazooka, 100)
 - AddAmmo(hhs[25], amMortar, 100)
 - AddAmmo(hhs[25], amShotgun, 100)
 - end
 - function LoadSprite(pX, pY, pSprite, pFrame, pTint, p1, p2, p3, pLandFlags)
 - PlaceSprite(pX, pY, pSprite, pFrame, pTint, p1, p2, p3, pLandFlags)
 - end
 - function LoadGearData()
 - --BEGIN CORE DATA--
 - ------ PORTAL DISTANCE and UFO FUEL ------
 - ufoFuel = 0
 - portalDistance = 5000
 - ------ GIRDER LIST ------
 - LoadSprite(126, 167, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(123, 291, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(123, 410, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(122, 529, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(124, 648, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(124, 771, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(187, 834, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(306, 832, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(421, 832, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(544, 833, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(664, 835, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(787, 835, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(909, 834, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1024, 834, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1145, 836, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1267, 834, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1388, 833, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1502, 832, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1624, 835, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1747, 835, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1868, 838, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1927, 771, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1927, 657, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1927, 529, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1925, 415, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1924, 290, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1923, 175, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(185, 716, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(304, 715, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(424, 713, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(541, 714, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(666, 713, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(785, 714, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(906, 715, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1144, 716, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1264, 713, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1384, 714, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1507, 714, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1625, 714, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1748, 716, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1867, 716, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(482, 653, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(482, 536, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(485, 410, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(426, 293, sprAmGirder, 1, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(546, 291, sprAmGirder, 3, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(960, 648, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(966, 528, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1021, 464, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1139, 467, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1205, 531, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1139, 590, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1441, 529, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1443, 408, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1560, 412, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1559, 526, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1562, 655, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1447, 649, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1383, 350, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1624, 350, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1629, 226, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1386, 229, sprAmGirder, 0, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(124, 223, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(122, 349, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(124, 467, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(123, 579, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(124, 704, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(135, 815, sprAmGirder, 1, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(238, 831, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(363, 833, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(484, 832, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(602, 834, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(733, 835, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(845, 835, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(970, 832, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1090, 834, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1209, 835, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1327, 834, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1444, 832, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1570, 834, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1688, 836, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1803, 836, sprAmGirder, 0, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1917, 817, sprAmGirder, 3, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1930, 707, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1929, 585, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1927, 469, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1926, 345, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(1925, 217, sprAmGirder, 2, 2516582650, nil, nil, nil, lfIndestructible)
 - LoadSprite(485, 776, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(966, 771, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1205, 771, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1441, 773, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - LoadSprite(1563, 771, sprAmGirder, 2, 4294967295, nil, nil, nil, lfNormal)
 - ------ HEALTH CRATE LIST ------
 - tempG = SetHealth(SpawnHealthCrate(809, 813), 25)
 - tempG = SetHealth(SpawnHealthCrate(321, 810), 25)
 - tempG = SetHealth(SpawnHealthCrate(1044, 812), 25)
 - tempG = SetHealth(SpawnHealthCrate(1044, 806), 25)
 - tempG = SetHealth(SpawnHealthCrate(1044, 806), 25)
 - tempG = SetHealth(SpawnHealthCrate(1044, 806), 25)
 - tempG = SetHealth(SpawnHealthCrate(1389, 811), 25)
 - tempG = SetHealth(SpawnHealthCrate(1505, 779), 25)
 - tempG = SetHealth(SpawnHealthCrate(1801, 806), 25)
 - ------ AMMO CRATE LIST ------
 - tempG = SpawnAmmoCrate(429, 808, amRCPlane)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amRCPlane")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amMolotov)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amMolotov")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amMolotov)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amMolotov")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amFirePunch)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amFirePunch")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amFirePunch)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amFirePunch")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amFirePunch)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amFirePunch")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amFirePunch)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amFirePunch")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amAirAttack)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amAirAttack")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amAirAttack)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amAirAttack")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amAirAttack)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amAirAttack")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amAirAttack)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amAirAttack")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amAirAttack)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amAirAttack")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amAirAttack)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amAirAttack")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amAirAttack)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amAirAttack")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amAirAttack)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amAirAttack")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amMineStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amMineStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amMineStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amMineStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amMineStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amMineStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amMineStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amMineStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amMineStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amMineStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amMineStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amMineStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amMineStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amMineStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amMineStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amMineStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amDrillStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amDrillStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amDrillStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amDrillStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amDrillStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amDrillStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amDrillStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amDrillStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amDrillStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amDrillStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amDrillStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amDrillStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amDrillStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amDrillStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amDrillStrike)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amDrillStrike")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amNapalm)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amNapalm")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amNapalm)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amNapalm")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amNapalm)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amNapalm")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amNapalm)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amNapalm")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amNapalm)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amNapalm")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amNapalm)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amNapalm")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amNapalm)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amNapalm")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amNapalm)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amNapalm")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amPiano)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amPiano")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amClusterBomb)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amClusterBomb")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amClusterBomb)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amClusterBomb")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amGirder)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amGirder")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amBlowTorch)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amBlowTorch")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amBazooka)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amBazooka")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amMortar)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amMortar")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnAmmoCrate(1173, 809, amShotgun)
 - setGearValue(tempG, "caseType", "ammo")
 - setGearValue(tempG, "contents", "amShotgun")
 - setGearValue(tempG, "tag", "collection")
 - ------ UTILITY CRATE LIST ------
 - tempG = SpawnUtilityCrate(1173, 809, amRope)
 - setGearValue(tempG, "caseType", "util")
 - setGearValue(tempG, "contents", "amRope")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnUtilityCrate(1173, 809, amRope)
 - setGearValue(tempG, "caseType", "util")
 - setGearValue(tempG, "contents", "amRope")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnUtilityCrate(1173, 809, amRope)
 - setGearValue(tempG, "caseType", "util")
 - setGearValue(tempG, "contents", "amRope")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnUtilityCrate(1173, 809, amRope)
 - setGearValue(tempG, "caseType", "util")
 - setGearValue(tempG, "contents", "amRope")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnUtilityCrate(1173, 809, amParachute)
 - setGearValue(tempG, "caseType", "util")
 - setGearValue(tempG, "contents", "amParachute")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnUtilityCrate(1173, 809, amParachute)
 - setGearValue(tempG, "caseType", "util")
 - setGearValue(tempG, "contents", "amParachute")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnUtilityCrate(1173, 809, amParachute)
 - setGearValue(tempG, "caseType", "util")
 - setGearValue(tempG, "contents", "amParachute")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnUtilityCrate(1173, 809, amParachute)
 - setGearValue(tempG, "caseType", "util")
 - setGearValue(tempG, "contents", "amParachute")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnUtilityCrate(1504, 809, amExtraTime)
 - setGearValue(tempG, "caseType", "util")
 - setGearValue(tempG, "contents", "amExtraTime")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnUtilityCrate(1850, 809, amExtraTime)
 - setGearValue(tempG, "caseType", "util")
 - setGearValue(tempG, "contents", "amExtraTime")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnUtilityCrate(375, 809, amExtraTime)
 - setGearValue(tempG, "caseType", "util")
 - setGearValue(tempG, "contents", "amExtraTime")
 - setGearValue(tempG, "tag", "collection")
 - tempG = SpawnUtilityCrate(878, 809, amExtraTime)
 - setGearValue(tempG, "caseType", "util")
 - setGearValue(tempG, "contents", "amExtraTime")
 - setGearValue(tempG, "tag", "collection")
 - --END CORE DATA--
 - LoadHogWeapons()
 - end
 - function onGameStart()
 - LoadGearData()
 - DetermineMissionGoal()
 - end
 - function onNewTurn()
 - --insert code according to taste
 - end
 - function onGameTick()
 - runOnGears(UpdateTagCircles)
 - end
 - function UpdateTagCircles(gear)
 - if getGearValue(gear,"tag") ~= nil then
 - if getGearValue(gear,"tCirc") == nil then
 - setGearValue(gear, "tCirc",AddVisualGear(0,0,vgtCircle,0,true))
 - end
 - if getGearValue(gear,"tag") == "victory" then
 - SetVisualGearValues(getGearValue(gear,"tCirc"), GetX(gear), GetY(gear), 100, 255, 1, 10, 0, 150, 3, 0xff0000ff)
 - elseif getGearValue(gear,"tag") == "failure" then
 - SetVisualGearValues(getGearValue(gear,"tCirc"), GetX(gear), GetY(gear), 100, 255, 1, 10, 0, 150, 3, 0x00ff00ff)
 - elseif getGearValue(gear,"tag") == "collection" then
 - SetVisualGearValues(getGearValue(gear,"tCirc"), GetX(gear), GetY(gear), 100, 255, 1, 10, 0, 150, 3, 0x0000ffff)
 - end
 - end
 - end
 - function CheckForConditions(gear)
 - if getGearValue(gear,"tag") == "victory" then
 - victoryObj = victoryObj +1
 - elseif getGearValue(gear,"tag") == "failure" then
 - failObj = failObj +1
 - elseif getGearValue(gear,"tag") == "collection" then
 - collectObj = collectObj +1
 - end
 - end
 - function CheckForConclusion(gear)
 - if getGearValue(gear,"tag") == "failure" then
 - EndGameIn("failure")
 - else
 - victoryObj = 0
 - failObj = 0
 - collectObj = 0
 - runOnGears(CheckForConditions)
 - if GetGearType(gear) ~= gtCase then
 - victoryObj = victoryObj - 1
 - if (victoryObj == 0) and (collectObj == 0) then
 - EndGameIn("victory")
 - end
 - else
 - if (GetGearMessage(gear) == 256) and (getGearValue(gear,"tag") == "collection") then
 - if GetHogLevel(CurrentHedgehog) ~= 0 then
 - EndGameIn("failure")
 - else
 - collectObj = collectObj - 1
 - if (victoryObj == 0) and (collectObj == 0) then
 - EndGameIn("victory")
 - end
 - end
 - elseif (GetGearMessage(gear) == 0) and (getGearValue(gear,"tag") == "victory") then
 - victoryObj = victoryObj - 1
 - if (victoryObj == 0) and (collectObj == 0) then
 - EndGameIn("victory")
 - end
 - else
 - EndGameIn("failure")
 - end
 - end
 - end
 - end
 - function DetermineMissionGoal()
 - victoryObj = 0
 - failObj = 0
 - collectObj = 0
 - vComment = ""
 - fComment = ""
 - collectComment = ""
 - runOnGears(CheckForConditions)
 - if victoryObj > 0 then
 - if victoryObj == 1 then
 - vComment = loc("Kill the red-circled hog")
 - else
 - vComment = loc("Kill all red-circled hogs")
 - end
 - end
 - if collectObj > 0 then
 - if collectObj == 1 then
 - collectComment = loc("The blue-circled crate must be collected")
 - else
 - collectComment = loc("All blue-circled crates must be collected")
 - end
 - end
 - if (collectObj == 0) and (victoryObj == 0) then
 - vComment = loc("Destroy the enemy.")
 - end
 - if failObj > 0 then
 - if failObj == 1 then
 - fComment = loc("Your green-circled hog must survive")
 - else
 - fComment = loc("Your green-circled hogs must survive")
 - end
 - end
 - ShowMission(loc("User Challenge"), loc("Mission Goals") .. ":", collectComment .. "|" .. vComment .. "|" .. fComment .. "| |".. loc("Mission made by KarBoy2314PL") .. "|" .. loc("using HedgeEditor"), 0, 0)
 - end
 - function isATrackedGear(gear)
 - if (GetGearType(gear) == gtHedgehog) or
 - (GetGearType(gear) == gtExplosives) or
 - (GetGearType(gear) == gtMine) or
 - (GetGearType(gear) == gtSMine) or
 - (GetGearType(gear) == gtAirMine) or
 - (GetGearType(gear) == gtTarget) or
 - (GetGearType(gear) == gtKnife) or
 - (GetGearType(gear) == gtPortal) or
 - (GetGearType(gear) == gtCase)
 - then
 - return(true)
 - else
 - return(false)
 - end
 - end
 - function onGearAdd(gear)
 - if isATrackedGear(gear) then
 - trackGear(gear)
 - end
 - end
 - function EndGameIn(c)
 - teamCounter = 0
 - lastRecordedTeam = ""
 - for i = 1, #hhs do
 - if GetHogTeamName(hhs[i]) ~= lastRecordedTeam then --er, is this okay without nill checks?
 - lastRecordedTeam = GetHogTeamName(hhs[i])
 - teamCounter = teamCounter + 1
 - if teamCounter == 9 then
 - teamCounter = 1
 - end
 - if (c == "victory") and (GetHogLevel(hhs[i]) ~= 0) then
 - DismissTeam(GetHogTeamName(hhs[i]))
 - ShowMission(loc("User Challenge"), loc("MISSION SUCCESSFUL"), loc("Congratulations!"), 0, 0)
 - elseif (c == "failure") and (GetHogLevel(hhs[i]) == 0) then
 - DismissTeam(GetHogTeamName(hhs[i]))
 - ShowMission(loc("User Challenge"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0)
 - elseif (c == "victory") and (GetHogLevel(hhs[i]) == 0) then
 - PlaySound(sndVictory,hhs[i]) -- check if we actually need this
 - end
 - end
 - end
 - end
 - function onGearDelete(gear)
 - --insert code according to taste
 - if isATrackedGear(gear) then
 - if getGearValue(gear,"tag") ~= nil then
 - CheckForConclusion(gear)
 - end
 - if getGearValue(gear, "tCirc") ~= nil then
 - DeleteVisualGear(getGearValue(gear, "tCirc"))
 - end
 - if GetGearType(gear) == gtHedgehog then
 - hx,hy = GetGearPosition(hhs[1])
 - SetHealth(SpawnHealthCrate(hx,hy), 25)
 - SpawnUtilityCrate(hx,hy, amRope)
 - SpawnUtilityCrate(hx,hy, amExtraTime)
 - SpawnUtilityCrate(hx,hy, amGirder)
 - SpawnUtilityCrate(hx,hy, amBlowTorch)
 - randomwep = wepArray[GetRandom(#wepArray)]
 - SpawnAmmoCrate(hx,hy,randomwep)
 - randomwep = wepArray[GetRandom(#wepArray)]
 - SpawnAmmoCrate(hx,hy,randomwep)
 - randomwep = wepArray[GetRandom(#wepArray)]
 - SpawnAmmoCrate(hx,hy,randomwep)
 - randomwep = wepArray[GetRandom(#wepArray)]
 - SpawnAmmoCrate(hx,hy,randomwep)
 - randomwep = wepArray[GetRandom(#wepArray)]
 - SpawnAmmoCrate(hx,hy,randomwep)
 - end
 - trackDeletion(gear)
 - end
 - end
 - --enable and/or alter code according to taste
 - function onAmmoStoreInit()
 - for i = 1, #wepArray do
 - SetAmmo(wepArray[i], 0, 0, 0, 8)
 - end
 - SetAmmo(amSkip, 9, 0, 0, 0)
 - end
 - ------ END GENERATED MISSION ------
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment