share/hedgewars/Data/Missions/Training/User_Mission_-_RCPlane_Challenge.lua
author mikade <redgrinner@gmail.com>
Thu, 11 Dec 2014 20:38:03 +0900
changeset 10655 1c85a442bd56
parent 10290 42efccba0711
child 11015 7a905f0070ce
permissions -rw-r--r--
Wuzzy's changes to stats for some of the training missions.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10655
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
     1
HedgewarsScriptLoad("/Scripts/Locale.lua")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
     2
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
     3
local player = nil
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
     4
local RCGear = nil
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
     5
local planesUsed = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
     6
local planeTimer = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
     7
local planeUhOh = false
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
     8
local cratesLeft = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
     9
local crateStreak = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    10
local longestCrateStreak = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    11
local commentTimer = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    12
local missiles = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    13
local totalMissiles = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    14
local missileScanTimer = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    15
local nextComment = sndNone
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    16
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    17
function onGameInit()
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    18
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    19
	Seed = 1
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    20
	GameFlags = gfInfAttack + gfInvulnerable + gfOneClanMode + gfSolidLand
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    21
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    22
	TurnTime = 90 * 1000
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    23
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    24
	Map = "Ropes"
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    25
	Theme = "Eyes"
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    26
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    27
	CaseFreq = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    28
	MinesNum = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    29
	Explosives = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    30
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    31
	AddTeam(loc("Wannabe Flyboys"), 14483456, "Simple", "Island", "Default", "Hedgewars")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    32
	player = AddHog(loc("Ace"), 0, 80, "Gasmask")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    33
	SetGearPosition(player, 1380, 1500)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    34
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    35
end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    36
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    37
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    38
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    39
function onGameStart()
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    40
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    41
	SendHealthStatsOff()
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    42
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    43
	ShowMission     (
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    44
                                loc("RC PLANE TRAINING"),
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    45
                                loc("a Hedgewars challenge"),
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    46
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    47
                                loc("Collect or destroy all the health crates.") .. "|" ..
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    48
                                loc("Compete to use as few planes as possible!") .. "|" ..
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    49
								"", -amRCPlane, 4000
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    50
                                )
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    51
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    52
	PlaceGirder(2192, 508, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    53
	PlaceGirder(2192, 670, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    54
	PlaceGirder(2193, 792, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    55
	PlaceGirder(2100, 825, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    56
	PlaceGirder(2009, 899, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    57
	PlaceGirder(2084, 992, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    58
	PlaceGirder(2145, 1087, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    59
	PlaceGirder(2199, 1235, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    60
	PlaceGirder(2308, 1296, 0)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    61
	PlaceGirder(2424, 1234, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    62
	PlaceGirder(2473, 1129, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    63
	PlaceGirder(2437, 1046, 1)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    64
	PlaceGirder(2409, 927, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    65
	PlaceGirder(2408, 763, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    66
	PlaceGirder(2404, 540, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    67
	PlaceGirder(2426, 423, 3)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    68
	PlaceGirder(2550, 400, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    69
	PlaceGirder(2668, 425, 1)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    70
	PlaceGirder(2707, 541, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    71
	PlaceGirder(2706, 703, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    72
	PlaceGirder(2705, 867, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    73
	PlaceGirder(2779, 962, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    74
	PlaceGirder(2894, 924, 3)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    75
	PlaceGirder(2908, 802, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    76
	PlaceGirder(2907, 639, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    77
	PlaceGirder(3052, 566, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    78
	PlaceGirder(2971, 394, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    79
	PlaceGirder(3103, 448, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    80
	PlaceGirder(3047, 654, 0)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    81
	PlaceGirder(3043, 746, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    82
	PlaceGirder(3265, 1583, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    83
	PlaceGirder(3256, 1491, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    84
	PlaceGirder(3187, 1401, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    85
	PlaceGirder(3326, 1400, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    86
	PlaceGirder(774, 530, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    87
	PlaceGirder(922, 595, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    88
	PlaceGirder(1079, 533, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    89
	PlaceGirder(1139, 386, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    90
	PlaceGirder(1074, 237, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    91
	PlaceGirder(723, 381, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    92
	PlaceGirder(781, 229, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    93
	PlaceGirder(927, 746, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    94
	PlaceGirder(874, 736, 0)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    95
	PlaceGirder(982, 737, 0)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    96
	PlaceGirder(2430, 1730, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    97
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    98
	PlaceGirder(1613, 1104, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
    99
	PlaceGirder(1564, 1256, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   100
	PlaceGirder(1643, 1341, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   101
	PlaceGirder(1780, 1372, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   102
	PlaceGirder(1869, 1296, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   103
	PlaceGirder(1858, 1163, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   104
	PlaceGirder(1739, 1044, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   105
	PlaceGirder(1621, 926, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   106
	PlaceGirder(1597, 985, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   107
	PlaceGirder(1449, 939, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   108
	PlaceGirder(1473, 874, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   109
	PlaceGirder(2092, 1352, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   110
	PlaceGirder(2145, 1444, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   111
	PlaceGirder(2004, 1443, 3)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   112
	PlaceGirder(1978, 1523, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   113
	PlaceGirder(2021, 1596, 1)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   114
	PlaceGirder(2103, 1625, 0)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   115
	PlaceGirder(2208, 1551, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   116
	PlaceGirder(2327, 1431, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   117
	PlaceGirder(2395, 1478, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   118
	PlaceGirder(2396, 1600, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   119
	PlaceGirder(2495, 1285, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   120
	PlaceGirder(2494, 1408, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   121
	PlaceGirder(2547, 530, 0)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   122
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   123
	PlaceGirder(2451, 1551, 0)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   124
	PlaceGirder(2551, 706, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   125
	PlaceGirder(2551, 869, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   126
	PlaceGirder(2623, 1016, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   127
	PlaceGirder(2773, 1083, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   128
	PlaceGirder(2924, 1019, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   129
	PlaceGirder(2568, 1491, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   130
	PlaceGirder(2618, 1346, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   131
	PlaceGirder(2674, 1195, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   132
	PlaceGirder(2822, 1142, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   133
	PlaceGirder(2963, 1069, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   134
	PlaceGirder(3067, 938, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   135
	PlaceGirder(2803, 1373, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   136
	PlaceGirder(2811, 1559, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   137
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   138
	tempG = SpawnHealthCrate(930, 557)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   139
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   140
	tempG = SpawnHealthCrate(979, 692)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   141
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   142
	tempG = SpawnHealthCrate(876, 703)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   143
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   144
	tempG = SpawnHealthCrate(2309, 1260)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   145
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   146
	tempG = SpawnHealthCrate(1733, 1127)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   147
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   148
	tempG = SpawnHealthCrate(1738, 1320)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   149
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   150
	tempG = SpawnHealthCrate(3249, 1460)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   151
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   152
	tempG = SpawnHealthCrate(3051, 617)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   153
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   154
	tempG = SpawnHealthCrate(2972, 353)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   155
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   156
	tempG = SpawnHealthCrate(2548, 358)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   157
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   158
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   159
	tempG = SpawnHealthCrate(2090, 1580)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   160
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   161
	tempG = SpawnHealthCrate(1752, 1753)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   162
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   163
	tempG = SpawnHealthCrate(1865, 1758)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   164
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   165
	tempG = SpawnHealthCrate(1985, 1760)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   166
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   167
	tempG = SpawnHealthCrate(2429, 1760)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   168
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   169
	tempG = SpawnHealthCrate(2810, 1480)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   170
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   171
	tempG = SpawnHealthCrate(2800, 1277)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   172
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   173
	tempG = SpawnHealthCrate(2806, 1107)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   174
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   175
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   176
	PlaceGirder(1897, 903, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   177
	PlaceGirder(1916, 784, 3)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   178
	PlaceGirder(2010, 732, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   179
	PlaceGirder(2082, 639, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   180
	PlaceGirder(2081, 516, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   181
	PlaceGirder(1985, 487, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   182
	PlaceGirder(1862, 407, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   183
	PlaceGirder(1855, 224, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   184
	PlaceGirder(2006, 163, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   185
	PlaceGirder(2128, 187, 1)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   186
	PlaceGirder(2251, 213, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   187
	PlaceGirder(2413, 213, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   188
	PlaceGirder(1952, 618, 0)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   189
	PlaceGirder(957, 1068, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   190
	PlaceGirder(794, 1069, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   191
	PlaceGirder(728, 1163, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   192
	PlaceGirder(728, 1287, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   193
	PlaceGirder(802, 1342, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   194
	PlaceGirder(966, 1342, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   195
	PlaceGirder(674, 1032, 1)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   196
	PlaceGirder(554, 1011, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   197
	PlaceGirder(445, 1056, 3)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   198
	PlaceGirder(422, 1174, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   199
	PlaceGirder(369, 1341, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   200
	PlaceGirder(495, 1313, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   201
	PlaceGirder(568, 1379, 3)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   202
	PlaceGirder(577, 1202, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   203
	PlaceGirder(744, 1490, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   204
	PlaceGirder(760, 1617, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   205
	PlaceGirder(622, 1693, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   206
	PlaceGirder(476, 1623, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   207
	PlaceGirder(376, 1697, 1)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   208
	PlaceGirder(955, 1746, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   209
	PlaceGirder(1025, 1746, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   210
	PlaceGirder(1090, 1745, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   211
	PlaceGirder(1156, 1746, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   212
	PlaceGirder(3806, 1530, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   213
	PlaceGirder(3880, 1464, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   214
	PlaceGirder(3738, 1458, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   215
	PlaceGirder(3806, 1390, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   216
	PlaceGirder(3805, 1588, 0)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   217
	PlaceGirder(3676, 1609, 3)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   218
	PlaceGirder(3930, 1615, 1)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   219
	PlaceGirder(3719, 1295, 0)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   220
	PlaceGirder(3888, 1294, 0)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   221
	PlaceGirder(3661, 1385, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   222
	PlaceGirder(3955, 1377, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   223
	PlaceGirder(3982, 1518, 0)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   224
	PlaceGirder(3378, 440, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   225
	PlaceGirder(3447, 492, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   226
	PlaceGirder(3564, 529, 1)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   227
	PlaceGirder(3596, 647, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   228
	PlaceGirder(3521, 740, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   229
	PlaceGirder(3524, 838, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   230
	PlaceGirder(3644, 819, 3)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   231
	PlaceGirder(3691, 708, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   232
	PlaceGirder(3690, 545, 6)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   233
	PlaceGirder(3612, 433, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   234
	PlaceGirder(3463, 383, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   235
	PlaceGirder(2815, 122, 7)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   236
	PlaceGirder(2960, 72, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   237
	PlaceGirder(3032, 123, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   238
	PlaceGirder(3063, 174, 0)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   239
	PlaceGirder(3095, 124, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   240
	PlaceGirder(3169, 71, 4)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   241
	PlaceGirder(3320, 124, 5)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   242
	PlaceGirder(3210, 179, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   243
	PlaceGirder(2932, 181, 2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   244
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   245
	tempG = SpawnHealthCrate(3804, 1461)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   246
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   247
	tempG = SpawnHealthCrate(3269, 1742)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   248
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   249
	tempG = SpawnHealthCrate(3066, 121)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   250
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   251
	tempG = SpawnHealthCrate(3207, 104)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   252
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   253
	tempG = SpawnHealthCrate(2928, 103)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   254
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   255
	tempG = SpawnHealthCrate(1997, 202)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   256
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   257
	tempG = SpawnHealthCrate(2253, 159)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   258
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   259
	tempG = SpawnHealthCrate(2132, 774)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   260
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   261
	tempG = SpawnHealthCrate(2549, 490)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   262
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   263
	tempG = SpawnHealthCrate(3527, 694)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   264
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   265
	tempG = SpawnHealthCrate(3777, 78)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   266
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   267
	tempG = SpawnHealthCrate(1124, 1746)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   268
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   269
	tempG = SpawnHealthCrate(1056, 1740)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   270
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   271
	tempG = SpawnHealthCrate(993, 1742)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   272
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   273
	tempG = SpawnHealthCrate(799, 1298)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   274
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   275
	tempG = SpawnHealthCrate(577, 1126)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   276
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   277
	tempG = SpawnHealthCrate(596, 1463)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   278
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   279
	tempG = SpawnHealthCrate(3854, 1043)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   280
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   281
	tempG = SpawnHealthCrate(1944, 567)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   282
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   283
	tempG = SpawnHealthCrate(338, 1748)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   284
	SetHealth(tempG, 25)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   285
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   286
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   287
end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   288
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   289
--function onGameTick()
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   290
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   291
	--if RCGear ~= nil then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   292
	--	AddCaption(GetTimer(RCGear))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   293
	--end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   294
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   295
--end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   296
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   297
function onGameTick20()
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   298
	if RCGear ~= nil then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   299
		if(GetTimer(RCGear) < 3000 and planeUhOh == false) then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   300
			PlaySound(sndUhOh, player)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   301
			planeUhOh = true
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   302
		end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   303
		planeTimer = planeTimer + 20
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   304
	end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   305
	if commentTimer > 0 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   306
		commentTimer = commentTimer - 20
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   307
	elseif(nextComment ~= sndNone) then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   308
		PlaySound(nextComment, player)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   309
		nextComment = sndNone
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   310
	end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   311
	if missileScanTimer > 0 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   312
		missileScanTimer = missileScanTimer - 20
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   313
	else
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   314
		if crateStreak == 0 and missiles == 3 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   315
			PlaySound(sndMissed, player)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   316
			missiles = 4
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   317
		end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   318
	end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   319
end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   320
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   321
function onNewTurn()
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   322
	TurnTimeLeft = -1
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   323
end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   324
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   325
function onGearAdd(gear)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   326
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   327
	if GetGearType(gear) == gtRCPlane then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   328
		RCGear = gear
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   329
		planesUsed = planesUsed + 1
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   330
		planeTimer = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   331
		missiles = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   332
	end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   333
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   334
	if GetGearType(gear) == gtCase then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   335
		cratesLeft = cratesLeft + 1
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   336
	end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   337
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   338
	if GetGearType(gear) == gtAirBomb then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   339
		totalMissiles = totalMissiles + 1
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   340
	end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   341
end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   342
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   343
function onGearDelete(gear)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   344
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   345
	if GetGearType(gear) == gtRCPlane then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   346
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   347
		RCGear = nil
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   348
		planeUhOh = false
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   349
		missiles = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   350
		AddCaption(string.format(loc("Planes used: %d"), planesUsed))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   351
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   352
		if(planeTimer < 2000 and crateStreak == 0) then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   353
			nextComment = sndStupid
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   354
			commentTimer = math.min(2000-planeTimer, 800)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   355
		elseif(planeTimer < 5000 and crateStreak == 0) then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   356
			PlaySound(sndOops, player)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   357
		elseif(planesUsed == 72) then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   358
			PlaySound(sndStupid, player)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   359
		elseif(planesUsed == 50) then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   360
			PlaySound(sndNutter, player)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   361
		elseif(planesUsed == 30) then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   362
			PlaySound(sndOops, player)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   363
		end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   364
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   365
		crateStreak = 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   366
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   367
	elseif GetGearType(gear) == gtAirBomb then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   368
		missiles = missiles + 1
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   369
		missileScanTimer = 500
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   370
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   371
	elseif GetGearType(gear) == gtCase then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   372
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   373
		cratesLeft = cratesLeft - 1
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   374
		crateStreak = crateStreak + 1
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   375
		if(crateStreak > longestCrateStreak) then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   376
			longestCrateStreak = crateStreak
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   377
		end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   378
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   379
		AddCaption(string.format(loc("Crates left: %d"), cratesLeft))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   380
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   381
		if cratesLeft == 0 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   382
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   383
			local rank = "unknown"
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   384
			local color = 0xFFFFFFFF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   385
			local sound = sndVictory
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   386
			if planesUsed >= 156 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   387
				rank = loc("Destroyer of planes")	
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   388
				color = 0xD06700FF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   389
				sound = sndLaugh
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   390
			elseif planesUsed >= 98 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   391
				rank = loc("Hopeless case")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   392
				color = 0xFF0000FF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   393
			elseif planesUsed >= 72 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   394
				rank = loc("Drunk greenhorn")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   395
				color = 0xFF0040FF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   396
			elseif planesUsed >= 50 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   397
				rank = loc("Greenhorn") -- a.k.a. "absolute beginner"
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   398
				color = 0xFF0080FF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   399
			elseif planesUsed >= 39 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   400
				rank = loc("Beginner")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   401
				color = 0xFF00BFFF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   402
			elseif planesUsed >= 30 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   403
				rank = loc("Experienced beginner")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   404
				color = 0xFF00CCFF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   405
			elseif planesUsed >= 21 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   406
				rank = loc("Below-average pilot")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   407
				color = 0xFF00FFFF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   408
			elseif planesUsed >= 17 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   409
				rank = loc("Average pilot")				
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   410
				color = 0xBF00FFFF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   411
			elseif planesUsed >= 13 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   412
				rank = loc("Above-average pilot")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   413
				color = 0x8000FFFF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   414
			elseif planesUsed >= 8 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   415
				rank = loc("Professional pilot")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   416
				color = 0x4000FFFF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   417
			elseif planesUsed >= 5 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   418
				rank = loc("Professional stunt pilot")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   419
				color = 0x0000FFFF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   420
			elseif planesUsed >= 3 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   421
				rank = loc("Elite pilot")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   422
				color = 0x0040FFFF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   423
			elseif planesUsed == 2 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   424
				rank = loc("Upper-class elite pilot")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   425
				color = 0x0080FFFF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   426
			elseif planesUsed == 1 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   427
				rank = loc("Top-class elite pilot")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   428
				color = 0x00FFFFFF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   429
				sound = sndFlawless
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   430
			else
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   431
				rank = loc("Cheater")
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   432
				color = 0xFF0000FF
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   433
				sound = sndCoward
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   434
			end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   435
			AddCaption(string.format(loc("Rank: %s"), rank), color, capgrpMessage2)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   436
			SendStat(siCustomAchievement, string.format(loc("Your rank: %s"), rank))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   437
			if planesUsed == 1 then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   438
				AddCaption(loc("Flawless victory!"))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   439
				SendStat(siGameResult, loc("You have perfectly beaten the challenge!"))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   440
				SendStat(siCustomAchievement, loc("You have used only 1 RC plane. Outstanding!"))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   441
			else
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   442
				AddCaption(loc("Victory!"))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   443
				SendStat(siGameResult, loc("You have finished the challenge!"))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   444
				SendStat(siCustomAchievement, string.format(loc("You have used %d RC planes."), planesUsed))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   445
			end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   446
		
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   447
			if(totalMissiles > 1) then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   448
				SendStat(siCustomAchievement, string.format(loc("You have dropped %d missiles."), totalMissiles))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   449
			end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   450
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   451
			if(longestCrateStreak > 5) then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   452
				if(planesUsed == 1) then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   453
					SendStat(siCustomAchievement, string.format(loc("In your best (and only) flight you took out %d crates with one RC plane!"), longestCrateStreak))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   454
				else
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   455
					SendStat(siCustomAchievement, string.format(loc("In your best flight you took out %d crates with one RC plane."), longestCrateStreak))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   456
				end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   457
			end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   458
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   459
			if(planesUsed == 2) then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   460
				SendStat(siCustomAchievement, loc("This was an awesome performance! But this challenge can be finished with even just one RC plane. Can you figure out how?"))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   461
			end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   462
			if(planesUsed == 1) then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   463
				SendStat(siCustomAchievement, loc("Congratulations! You have truly mastered this challenge! Don't forget to save the demo."))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   464
				SendStat(siCustomAchievement, string.format(loc("You have gained an achievement: %s"), loc("Prestigious Pilot")))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   465
			end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   466
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   467
			ShowMission     (
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   468
                                loc("CHALLENGE COMPLETE"),
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   469
                                loc("Congratulations!"),
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   470
                                string.format(loc("Planes used: %d"), planesUsed) .. "|" ..
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   471
                                "", 0, 0
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   472
                                )
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   473
			SetState(player, gstWinner)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   474
			PlaySound(sound, player)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   475
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   476
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   477
			DismissTeam(loc("Wannabe Flyboys"))
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   478
			EndGame()
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   479
		end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   480
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   481
		if RCGear ~= nil then
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   482
			SetTimer(RCGear, GetTimer(RCGear) + 10000)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   483
		end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   484
	end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   485
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   486
end
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   487
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   488
function onAmmoStoreInit()
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   489
	SetAmmo(amRCPlane, 9, 0, 0, 0)
1c85a442bd56 Wuzzy's changes to stats for some of the training missions.
mikade <redgrinner@gmail.com>
parents: 10290
diff changeset
   490
end