author | nemo |
Tue, 02 Dec 2014 16:45:26 -0500 | |
changeset 10607 | 532d43f3d6f9 |
parent 8043 | da083f8d95e6 |
permissions | -rw-r--r-- |
4662
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
1 |
|
8043 | 2 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
4662
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
3 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
4 |
--------------------------------------------------------------- |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
5 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
6 |
local player = nil -- This variable will point to the hog's gear |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
7 |
local instructor = nil |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
8 |
local enemy = nil |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
9 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
10 |
local GameOver = false |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
11 |
local birdSpeech = false |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
12 |
local birdSqualk = false |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
13 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
14 |
local GirderCrate = nil |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
15 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
16 |
function onGameInit() |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
17 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
18 |
-- Things we don't modify here will use their default values. |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
19 |
Seed = 0 -- The base number for the random number generator |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
20 |
GameFlags = gfInfAttack +gfDisableWind-- Game settings and rules |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
21 |
TurnTime = 90000 -- The time the player has to move each round (in ms) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
22 |
CaseFreq = 0 -- The frequency of crate drops |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
23 |
MinesNum = 0 -- The number of mines being placed |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
24 |
MinesTime = 1 |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
25 |
Explosives = 0 -- The number of explosives being placed |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
26 |
Delay = 10 -- The delay between each round |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
27 |
Map = "Tree" -- The map to be played |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
28 |
Theme = "Halloween" -- The theme to be used |
5823 | 29 |
SuddenDeathTurns = 99999 |
4662
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
30 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
31 |
AddTeam(loc("Bloody Rookies"), 14483456, "Simple", "Island", "Default") |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
32 |
player = AddHog(loc("Hunter"), 0, 1, "NoHat") |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
33 |
--852718 |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
34 |
AddTeam(loc("Toxic Team"), 1175851, "Simple", "Island", "Default") |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
35 |
enemy = AddHog(loc("Poison"), 1, 10, "Skull") |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
36 |
|
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
37 |
SetGearPosition(player,970,23) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
38 |
SetGearPosition(enemy,498,806) |
4662
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
39 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
40 |
end |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
41 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
42 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
43 |
function onGameStart() |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
44 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
45 |
--right side mines |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
46 |
AddGear(1681,359,gtMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
47 |
AddGear(1718,518,gtMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
48 |
AddGear(1648,527,gtMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
49 |
AddGear(1584,522,gtMine, 0, 0, 0, 0) |
4662
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
50 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
51 |
--tunnel mines |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
52 |
AddGear(301,569,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
53 |
AddGear(372,608,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
54 |
AddGear(453,628,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
55 |
AddGear(524,611,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
56 |
AddGear(613,611,gtSMine, 0, 0, 0, 0) |
4662
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
57 |
|
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
58 |
AddGear(308,486,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
59 |
AddGear(372,478,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
60 |
AddGear(453,466,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
61 |
AddGear(524,471,gtSMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
62 |
AddGear(613,466,gtSMine, 0, 0, 0, 0) |
4662
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
63 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
64 |
--above the tunnel mines |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
65 |
AddGear(331,433,gtMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
66 |
AddGear(404,420,gtMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
67 |
AddGear(484,424,gtMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
68 |
AddGear(562,417,gtMine, 0, 0, 0, 0) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
69 |
AddGear(640,412,gtMine, 0, 0, 0, 0) |
4662
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
70 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
71 |
-- crates crates and more crates |
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
72 |
SpawnAmmoCrate(1208,576,amBlowTorch) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
73 |
SpawnAmmoCrate(1467,376,amPickHammer) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
74 |
SpawnUtilityCrate(373,165,amGirder) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
75 |
SpawnUtilityCrate(704,623,amJetpack) |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
76 |
SpawnUtilityCrate(1646,749,amLaserSight) |
4662
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
77 |
|
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
78 |
SpawnAmmoCrate(745,418,amShotgun) --shotgun1 |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
79 |
SpawnAmmoCrate(833,432,amFirePunch) --fire punch |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
80 |
GirderCrate = SpawnAmmoCrate(1789,514,amShotgun) -- final shotgun |
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
81 |
SpawnAmmoCrate(1181,419,amBee) |
4662
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
82 |
|
5325
261b79ba22b1
Lua update. New phrases. Try to remove some duplicates by avoiding use of space and : in short common phrases. Removed localisation of some script names, since we can't localise that in frontend yet anyway, without screwing up multiplayer.
nemo
parents:
4674
diff
changeset
|
83 |
ShowMission(loc("Spooky Tree"), "", loc("Eliminate all enemies") .. loc("|- Mines Time:") .. " " .. 0 .. " " .. loc("sec"), -amBee, 0) |
4662
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
84 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
85 |
SetWind(-75) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
86 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
87 |
end |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
88 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
89 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
90 |
function onGameTick() |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
91 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
92 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
93 |
if CurrentHedgehog ~= nil then |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
94 |
|
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
95 |
if (birdSqualk == false) and (GetX(CurrentHedgehog) == 1102) and (GetY(CurrentHedgehog) == 133) then |
4662
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
96 |
birdSqualk = true |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
97 |
PlaySound(sndBirdyLay) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
98 |
end |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
99 |
|
7877
b3fb94986255
Fix training script positions altered by variable land dimension change. Issue #453
nemo
parents:
5823
diff
changeset
|
100 |
if (birdSpeech == false) and (GetX(CurrentHedgehog) == 1068) and (GetY(CurrentHedgehog) == 162) then |
4662
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
101 |
birdSpeech = true |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
102 |
HogSay(player,loc("Good birdy......"),SAY_THINK) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
103 |
end |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
104 |
end |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
105 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
106 |
if CurrentHedgehog ~= nil then |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
107 |
--AddCaption(GetX(CurrentHedgehog) .. ";" .. GetY(CurrentHedgehog)) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
108 |
end |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
109 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
110 |
if (TotalRounds == 2) and (GameOver == false) then -- just in case |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
111 |
SetHealth(player, 0) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
112 |
GameOver = true |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
113 |
end |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
114 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
115 |
if TurnTimeLeft == 1 then |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
116 |
--ShowMission(loc(caption), loc(subcaption), loc(timeout), -amSkip, 0); |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
117 |
SetHealth(player, 0) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
118 |
GameOver = true |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
119 |
end |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
120 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
121 |
end |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
122 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
123 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
124 |
function onAmmoStoreInit() |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
125 |
SetAmmo(amShotgun, 0, 0, 0, 1) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
126 |
SetAmmo(amFirePunch, 0, 0, 0, 1) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
127 |
SetAmmo(amBee, 0, 0, 0, 1) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
128 |
SetAmmo(amBlowTorch, 0, 0, 0, 1) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
129 |
SetAmmo(amGirder, 0, 0, 0, 1) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
130 |
SetAmmo(amParachute, 1, 0, 0, 1) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
131 |
SetAmmo(amPickHammer, 0, 0, 0, 1) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
132 |
SetAmmo(amJetpack, 0, 0, 0, 1) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
133 |
SetAmmo(amLaserSight, 0, 0, 0, 1) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
134 |
end |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
135 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
136 |
function onGearDelete(gear) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
137 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
138 |
if gear == GirderCrate then |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
139 |
TurnTimeLeft = TurnTimeLeft + 30000 |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
140 |
end |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
141 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
142 |
if GetGearType(gear) == gtCase then |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
143 |
TurnTimeLeft = TurnTimeLeft + 5000 |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
144 |
end |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
145 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
146 |
if (gear == enemy) and (GameOver == false) then |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
147 |
ShowMission(loc("Spooky Tree"), loc("MISSION SUCCESSFUL"), loc("Congratulations!"), 0, 0); |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
148 |
elseif gear == player then |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
149 |
ShowMission(loc("Spooky Tree"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0) |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
150 |
GameOver = true |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
151 |
end |
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
152 |
|
63aafc9c2a81
Add a bunch of lua from mikade, update translation files
mikade+nemo
parents:
diff
changeset
|
153 |
end |