author | mikade <redgrinner@gmail.com> |
Sat, 19 May 2012 17:15:12 +0200 | |
changeset 7094 | f5a5578be66b |
child 7877 | b3fb94986255 |
permissions | -rw-r--r-- |
7094
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
1 |
loadfile(GetDataPath() .. "Scripts/Locale.lua")() |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
2 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
3 |
local player = nil |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
4 |
local enemy = nil |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
5 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
6 |
function onGameInit() |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
7 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
8 |
Map = "Castle" |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
9 |
Theme = "Nature" |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
10 |
Seed = 0 |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
11 |
GameFlags = gfInfAttack |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
12 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
13 |
TurnTime = 45 * 1000 |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
14 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
15 |
CaseFreq = 0 |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
16 |
MinesNum = 0 |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
17 |
Explosives = 0 |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
18 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
19 |
AddTeam(loc("Hero Team"), 14483456, "Simple", "Island", "Default", "Hedgewars") |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
20 |
player = AddHog(loc("Good Dude"), 0, 80, "NoHat") --NoHat |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
21 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
22 |
AddTeam(loc("Bad Team"), 1175851, "Simple", "Island", "Default", "Hedgewars") |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
23 |
enemy = AddHog("Bad Guy", 1, 40, "NoHat") |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
24 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
25 |
end |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
26 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
27 |
function onGameStart() |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
28 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
29 |
ShowMission(loc("The Great Escape"), loc("Get out of there!"), loc("Elimate your captor."), -amGrenade, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
30 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
31 |
------ GIRDER LIST ------ |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
32 |
PlaceGirder(2066, 1588, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
33 |
PlaceGirder(2052, 1498, 6) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
34 |
PlaceGirder(2098, 1498, 6) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
35 |
PlaceGirder(2074, 1409, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
36 |
PlaceGirder(2199, 1755, 7) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
37 |
PlaceGirder(2476, 1929, 2) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
38 |
PlaceGirder(2546, 1879, 4) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
39 |
PlaceGirder(2520, 1924, 3) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
40 |
PlaceGirder(2706, 1879, 4) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
41 |
PlaceGirder(2797, 1911, 2) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
42 |
PlaceGirder(2671, 1925, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
43 |
PlaceGirder(2895, 1907, 6) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
44 |
PlaceGirder(2895, 1747, 6) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
45 |
PlaceGirder(2798, 1792, 6) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
46 |
PlaceGirder(2797, 1791, 6) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
47 |
PlaceGirder(2845, 1928, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
48 |
PlaceGirder(2846, 1826, 3) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
49 |
PlaceGirder(2844, 1747, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
50 |
PlaceGirder(2806, 1702, 4) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
51 |
PlaceGirder(2846, 1685, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
52 |
PlaceGirder(2846, 1668, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
53 |
PlaceGirder(2766, 1668, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
54 |
PlaceGirder(2766, 1685, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
55 |
PlaceGirder(2718, 1700, 2) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
56 |
PlaceGirder(2927, 1659, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
57 |
------ HEALTH CRATE LIST ------ |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
58 |
SpawnHealthCrate(2500, 1193) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
59 |
SpawnHealthCrate(2575, 1201) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
60 |
SpawnHealthCrate(2610, 1224) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
61 |
SpawnHealthCrate(2463, 1213) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
62 |
SpawnHealthCrate(2425, 1235) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
63 |
SpawnHealthCrate(2657, 1234) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
64 |
------ MINE LIST ------ |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
65 |
tempG = AddGear(2034, 1704, gtMine, 0, 0, 0, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
66 |
SetTimer(tempG, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
67 |
tempG = AddGear(2055, 1744, gtMine, 0, 0, 0, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
68 |
SetTimer(tempG, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
69 |
tempG = AddGear(2063, 1772, gtMine, 0, 0, 0, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
70 |
SetTimer(tempG, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
71 |
tempG = AddGear(2075, 1801, gtMine, 0, 0, 0, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
72 |
SetTimer(tempG, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
73 |
tempG = AddGear(2089, 1820, gtMine, 0, 0, 0, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
74 |
SetTimer(tempG, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
75 |
tempG = AddGear(2118, 1824, gtMine, 0, 0, 0, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
76 |
SetTimer(tempG, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
77 |
------ REPOSITION LIST ------ |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
78 |
SetGearPosition(player, 2074, 1558) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
79 |
SetGearPosition(enemy, 2536, 1182) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
80 |
SetHealth(player, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
81 |
SetHealth(enemy, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
82 |
------ AMMO CRATE LIST ------ |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
83 |
SpawnAmmoCrate(2656, 1967, 5) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
84 |
SpawnAmmoCrate(2747, 1912, 12) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
85 |
SpawnAmmoCrate(2939, 1623, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
86 |
------ UTILITY CRATE LIST ------ |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
87 |
SpawnUtilityCrate(2543, 1969, 15) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
88 |
SpawnUtilityCrate(2251, 1664, 6) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
89 |
SpawnUtilityCrate(2440, 1937, 18) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
90 |
------ END LOADING DATA ------ |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
91 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
92 |
end |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
93 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
94 |
function onGameTick() |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
95 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
96 |
if TurnTimeLeft == TurnTime-1 then |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
97 |
SetWind(100) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
98 |
end |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
99 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
100 |
end |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
101 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
102 |
function onGearDelete(gear) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
103 |
if (GetGearType(gear) == gtCase) and (CurrentHedgehog == player) then |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
104 |
if GetHealth(gear) > 0 then |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
105 |
AddGear(GetX(gear), GetY(gear), gtGrenade, 0, 0, 0, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
106 |
end |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
107 |
elseif gear == player then |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
108 |
ShowMission(loc("The Great Escape"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
109 |
elseif gear == enemy then |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
110 |
ShowMission(loc("The Great Escape"), loc("MISSION SUCCESSFUL"), loc("Congratulations!"), 0, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
111 |
end |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
112 |
end |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
113 |
|
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
114 |
function onAmmoStoreInit() |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
115 |
SetAmmo(amGrenade, 1, 0, 0, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
116 |
SetAmmo(amParachute, 1, 0, 0, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
117 |
SetAmmo(amFirePunch, 0, 0, 0, 3) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
118 |
SetAmmo(amPickHammer, 0, 0, 0, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
119 |
SetAmmo(amBlowTorch, 0, 0, 0, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
120 |
SetAmmo(amShotgun, 0, 0, 0, 1) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
121 |
SetAmmo(amSkip, 9, 0, 0, 0) |
f5a5578be66b
A few scripts to try out. 2x challenge, 1x GSoC training, 1x user mission.
mikade <redgrinner@gmail.com>
parents:
diff
changeset
|
122 |
end |