author | unc0rr |
Sat, 14 Nov 2015 17:39:45 +0300 | |
changeset 11385 | ff0fa38bdb18 |
parent 11067 | c632b47b8ff0 |
child 11894 | c8979eeb73fa |
permissions | -rw-r--r-- |
10413 | 1 |
HedgewarsScriptLoad("/Scripts/Locale.lua") |
2 |
||
11067
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
3 |
local 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 showWaterStats = true -- uses the AI team to draw water height. |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
10 |
local scaleGraph = true |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
11 |
local totalHedgehogs = 0 |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
12 |
local HH = {} |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
13 |
local teams = {} |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
14 |
local dummyHog = nil |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
15 |
|
10413 | 16 |
|
17 |
function onGameInit() |
|
18 |
-- Ensure people get same map for same theme |
|
19 |
Theme = themes[GetRandom(#themes)+1] |
|
20 |
Seed = ClimbHome |
|
21 |
TurnTime = 999999999 |
|
22 |
EnableGameFlags(gfOneClanMode) |
|
23 |
DisableGameFlags(gfBottomBorder+gfBorder) |
|
24 |
CaseFreq = 0 |
|
25 |
Explosives = 0 |
|
11067
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
26 |
MineDudPercent = 0 |
10413 | 27 |
Map = "ClimbHome" |
10581 | 28 |
AddTeam(loc("Lonely Hog"), 0xDD0000, "Simple", "Island", "Default") |
10413 | 29 |
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
|
30 |
if showWaterStats then |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
31 |
AddTeam(" ", 0x545C9D, "Simple", "Island", "Default") |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
32 |
elseif scaleGraph then |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
33 |
AddTeam(" ", 0x050505, "Simple", "Island", "Default") |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
34 |
end |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
35 |
if showWaterStats or scaleGraph then |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
36 |
dummyHog = AddHog(" ", 0, 1, "NoHat") |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
37 |
HH[dummyHog] = nil |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
38 |
totalHedgehogs = totalHedgehogs - 1 |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
39 |
SendStat(siClanHealth, tostring(32640), " ") |
c632b47b8ff0
Trying to get these scripts to behave properly, still WIP though.
nemo
parents:
10581
diff
changeset
|
40 |
end |
10413 | 41 |
end |