share/hedgewars/Data/Missions/Training/ClimbHome.lua
author sheepluva
Sun, 30 Nov 2014 21:32:24 +0100
changeset 10590 3c649bf438a3
parent 10581 f0b4c14a3c62
child 11067 c632b47b8ff0
permissions -rw-r--r--
fix for issue #840: Basic Training - Grenade is failing to dismiss team
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10413
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
     1
HedgewarsScriptLoad("/Scripts/Locale.lua")
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
     2
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
     3
isSinglePlayer = true
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
     4
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
     5
-- trying to allow random theme, but fixed theme objects...
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
     6
-- Also skip some ugly themes, or ones where the sky is "meh"
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
     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" }
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
     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"}
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
     9
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
    10
function onGameInit()
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
    11
    -- Ensure people get same map for same theme
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
    12
    Theme = themes[GetRandom(#themes)+1]
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
    13
    Seed = ClimbHome
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
    14
    TurnTime = 999999999
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
    15
    EnableGameFlags(gfOneClanMode)
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
    16
    DisableGameFlags(gfBottomBorder+gfBorder)
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
    17
    CaseFreq = 0
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
    18
    Explosives = 0
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
    19
    Map = "ClimbHome"
10581
f0b4c14a3c62 Wuzzy's changes to climbhome w/ some tweaks by me
nemo
parents: 10413
diff changeset
    20
    AddTeam(loc("Lonely Hog"), 0xDD0000, "Simple", "Island", "Default")
10413
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
    21
    player = AddHog(loc("Climber"), 0, 1, "NoHat")
10581
f0b4c14a3c62 Wuzzy's changes to climbhome w/ some tweaks by me
nemo
parents: 10413
diff changeset
    22
    AddTeam(loc("Water Gods"), 0x4980C1, "Simple", "Island", "Default")
f0b4c14a3c62 Wuzzy's changes to climbhome w/ some tweaks by me
nemo
parents: 10413
diff changeset
    23
    dummyHog = AddHog("Poseidon", 5, 1, "NoHat")
f0b4c14a3c62 Wuzzy's changes to climbhome w/ some tweaks by me
nemo
parents: 10413
diff changeset
    24
    --HideHog(dummyHog)
10413
afd746a538ef climb home training/multiplayer
nemo
parents:
diff changeset
    25
end