author | nemo |
Mon, 10 Feb 2025 09:52:32 -0500 | |
changeset 16117 | cb472e3d0dd4 |
parent 15524 | ad9fe7dc2ff7 |
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 = {"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
|
8 |
local totalHedgehogs = 0 |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
9 |
local HH = {} |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
10 |
local teams = {} |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
11 |
local dummyHog = nil |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
12 |
|
10413 | 13 |
|
14 |
function onGameInit() |
|
15524
ad9fe7dc2ff7
ClimbHome: Remove uncommented code
Wuzzy <Wuzzy2@mail.ru>
parents:
15523
diff
changeset
|
15 |
Theme = themes[GetRandom(#themes)+1] |
10413 | 16 |
-- Ensure people get same map for same theme |
15523
5a30396f8fb2
ClimbHome: Change misleading Seed assignment to nil value
Wuzzy <Wuzzy2@mail.ru>
parents:
14501
diff
changeset
|
17 |
Seed = "" |
13752
110d6c1e817f
Lua: Rename globals: NoPointX→NO_CURSOR, cMaxTurnTime→MAX_TURN_TIME, cMaxHogHealth→MAX_HOG_HEALTH
Wuzzy <Wuzzy2@mail.ru>
parents:
13664
diff
changeset
|
18 |
TurnTime = MAX_TURN_TIME |
10413 | 19 |
EnableGameFlags(gfOneClanMode) |
20 |
DisableGameFlags(gfBottomBorder+gfBorder) |
|
21 |
CaseFreq = 0 |
|
22 |
Explosives = 0 |
|
11067
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
23 |
MineDudPercent = 0 |
10413 | 24 |
Map = "ClimbHome" |
14501
208359558642
Use player-chosen team identity for training and a few challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
25 |
AddMissionTeam(-1) |
208359558642
Use player-chosen team identity for training and a few challenges
Wuzzy <Wuzzy2@mail.ru>
parents:
13752
diff
changeset
|
26 |
player = AddMissionHog(1) |
11067
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
27 |
if showWaterStats then |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
28 |
dummyHog = AddHog(" ", 0, 1, "NoHat") |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
29 |
HH[dummyHog] = nil |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
30 |
totalHedgehogs = totalHedgehogs - 1 |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
31 |
SendStat(siClanHealth, tostring(32640), " ") |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
32 |
end |
10413 | 33 |
end |