author | nemo |
Fri, 17 Aug 2018 22:23:19 -0400 | |
changeset 13669 | c6ee1b0b957f |
parent 13664 | 85506d95977d |
child 13752 | 110d6c1e817f |
permissions | -rw-r--r-- |
10413 | 1 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
2 |
||
11889
c8979eeb73fa
Fix ClimbHome mission bugs (broken teams, broken graph)
Wuzzy <almikes@aol.com>
parents:
11067
diff
changeset
|
3 |
isSinglePlayer = true |
10413 | 4 |
|
5 |
-- trying to allow random theme, but fixed theme objects... |
|
6 |
-- Also skip some ugly themes, or ones where the sky is "meh" |
|
7 |
--local themes = { "Art","Cake","City","EarthRise","Halloween","Olympics","Underwater","Bamboo","Castle","Compost","Eyes","Hell","Planes","Bath","Cave","CrazyMission","Freeway","Island","Sheep","Blox","Cheese","Deepspace","Fruit","Jungle","Snow","Brick","Christmas","Desert","Golf","Nature","Stage" } |
|
8 |
local themes = {"Christmas","Hell","Bamboo","City","Island","Bath","Compost","Jungle","Desert","Nature","Olympics","Brick","EarthRise","Sheep","Cake","Freeway","Snow","Castle","Fruit","Stage","Cave","Golf","Cheese","Halloween"} |
|
11067
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
9 |
local totalHedgehogs = 0 |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
10 |
local HH = {} |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
11 |
local teams = {} |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
12 |
local dummyHog = nil |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
13 |
|
10413 | 14 |
|
15 |
function onGameInit() |
|
16 |
-- Ensure people get same map for same theme |
|
17 |
Theme = themes[GetRandom(#themes)+1] |
|
18 |
Seed = ClimbHome |
|
13664
85506d95977d
Use new script variable cMaxTurnTime in scripts for consistency
Wuzzy <Wuzzy2@mail.ru>
parents:
13583
diff
changeset
|
19 |
TurnTime = cMaxTurnTime |
10413 | 20 |
EnableGameFlags(gfOneClanMode) |
21 |
DisableGameFlags(gfBottomBorder+gfBorder) |
|
22 |
CaseFreq = 0 |
|
23 |
Explosives = 0 |
|
11067
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
24 |
MineDudPercent = 0 |
10413 | 25 |
Map = "ClimbHome" |
13583
141cdfe0f3ca
Switch almost all Lua calls of AddTeam to using default clan colors instead of hardcoded color
Wuzzy <Wuzzy2@mail.ru>
parents:
12586
diff
changeset
|
26 |
AddTeam(loc("Lonely Hog"), -1, "bubble", "Island", "Default") |
10413 | 27 |
player = AddHog(loc("Climber"), 0, 1, "NoHat") |
11067
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
28 |
if showWaterStats then |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
29 |
dummyHog = AddHog(" ", 0, 1, "NoHat") |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
30 |
HH[dummyHog] = nil |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
31 |
totalHedgehogs = totalHedgehogs - 1 |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
32 |
SendStat(siClanHealth, tostring(32640), " ") |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
33 |
end |
10413 | 34 |
end |