share/hedgewars/Data/Missions/Campaign/01#Boot_Camp.lua
author nemo
Wed, 03 Jun 2015 07:30:12 -0400
changeset 10978 54a49174dbec
parent 4643 050af7a71cc1
permissions -rw-r--r--
cursor x/y when targeting for mikade's visual effects. this is not synced
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4594
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
     1
-- IMPORTANT -- THIS IS WORK IN PROGRESS AND VERY LIKELY TO BE CHANGED AGAIN
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
     2
-- IMPORTANT -- DO NOT TRANSLATE THIS AS IT USES THE OLD SYSTEM AND WILL BE UPDATED LATER!
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
     3
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
     4
local teamnames = {}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
     5
local hognames = {}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
     6
teamnames[0] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
     7
	["en"] = "Bloody Rookies",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
     8
	["de"] = "Blutige Anfänger",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
     9
	["pl"] = "Żótodzioby",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    10
	["sv"] = "Blodiga nybörjare",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    11
	["es"] = "Reclutas",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    12
	["pt_PT"] = "Recrutas",
4643
050af7a71cc1 Portuguese updates
arrom
parents: 4594
diff changeset
    13
	["pt_BR"] = "Malditos Recrutas",
4594
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    14
	["sk"] = "Regruti"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    15
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    16
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    17
teamnames[1] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    18
	["en"] = "Instructors",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    19
	["de"] = "Ausbilder",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    20
	["pl"] = "Instruktor",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    21
	["sv"] = "Instruktör",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    22
	["es"] = "Instructores",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    23
	["pt_PT"] = "Instrutores",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    24
	["pt_BR"] = "Instrutores",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    25
	["sk"] = "Inštruktori"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    26
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    27
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    28
hognames[0] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    29
	["en"] = "Joker",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    30
	["de"] = "Joker",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    31
	["pl"] = "Joker",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    32
	["sv"] = "Joker",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    33
	["es"] = "Joker",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    34
	["pt_PT"] = "Joker",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    35
	["pt_BR"] = "Comediante",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    36
	["sk"] = "Komediant"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    37
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    38
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    39
hognames[1] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    40
	["en"] = "Harthog",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    41
	["de"] = "Harthog",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    42
	["pl"] = "Harthog",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    43
	["sv"] = "Harthog",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    44
	["es"] = "Harthog",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    45
	["pt_PT"] = "Harthog",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    46
	["pt_BR"] = "Harthog",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    47
	["sk"] = "Harthog"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    48
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    49
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    50
local caption = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    51
	["en"] = "Boot Camp",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    52
	["de"] = "Grundausbildung",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    53
	["pl"] = "Poligon",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    54
	["sv"] = "Grundutbildning",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    55
	["es"] = "Campamento militar",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    56
	["pt_PT"] = "Acampamento militar",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    57
	["pt_BR"] = "Acampamento Militar",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    58
	["sk"] = "Výcvikový tábor"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    59
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    60
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    61
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    62
local subcaption = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    63
	["en"] = "Follow the instructions!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    64
	["de"] = "Befolge die Anweisungen!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    65
	["pl"] = "Wykonuj polecenia!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    66
	["sv"] = "Följ instruktioner!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    67
	["es"] = "¡Sigue las órdenes!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    68
	["pt_PT"] = "Segue as instruções!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    69
	["pt_BR"] = "Siga as ordens!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    70
	["sk"] = "Postupujte podľa inštrukcií!"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    71
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    72
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    73
local goals = {}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    74
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    75
goals[0] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    76
	["en"] = "Listen to your Drill Instructor and follow his lead!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    77
	["de"] = "Höre deinem Ausbilder zu und befolge seine Anweisungen!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    78
	["pl"] = "Słuchaj instruktora i wykonuj jego rozkazy!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    79
	["sv"] = "Lyssna på din instruktör och gör som han säger!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    80
	["es"] = "¡Escucha atentamente a tu instructor de maniobras y sigue sus órdenes!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    81
	["pt_PT"] = "Ouve atentamente o teu Instrutor e segue as suas ordens!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    82
	["pt_BR"] = "Escute seu instrutor de escavação e siga seu líder",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    83
	["sk"] = "Počúvajte vášho inštruktora výcviku a vykonávajte jeho rozkazy!"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    84
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    85
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    86
goals[1] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    87
	["en"] = "Destroy the target to finish this mission!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    88
	["de"] = "Zerstöre das Ziel, um diese Mission abzuschließen!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    89
	["pl"] = "Zniszcz cel by ukończyć misję!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    90
	["sv"] = "Förstör målet för att avklara uppdraget!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    91
	["es"] = "¡Destruye el objetivo para completar esta misión!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    92
	["pt_PT"] = "Destrói o alvo para completar esta missão!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    93
	["pt_BR"] = "Destrua o alvo para concluir a missão",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    94
	["sk"] = "Pre ukončenie misie zneškodnite cieľ!"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    95
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    96
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    97
goals[2] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    98
	["en"] = "Excellent! You've passed the Boot Camp!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
    99
	["de"] = "Ausgezeichnet! Du hast das Ausbildungslager bestanden!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   100
	["pl"] = "Doskonale! Wyszedłeś cało z poligonu!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   101
	["sv"] = "Brilliant! Du har klarat av grundutbildningen!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   102
	["es"] = "¡Excelente! ¡Has completado la maniobra de hoy!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   103
	["pt_PT"] = "Excelente! Completaste o treino para recrutas!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   104
	["pt_BR"] = "Excelente! Você completou a manobra",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   105
	["pt_BR"] = "Výborne! Prešli ste výcvikovým táborom!"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   106
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   107
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   108
local failed = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   109
	["en"] = "You failed! Follow the instructions and shoot the target only!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   110
	["de"] = "Du hast versagt! Befolge die Anweisungen und schieß nur auf das Ziel!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   111
	["pl"] = "Przegrałeś! Wykonuj instrukcje poprawnie i strzelaj tylko w podane cele!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   112
	["sv"] = "Du har misslyckats! Följ instruktionerna och sjut endast på målen!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   113
	["es"] = "¡Has fallado! ¡Sigue las instrucciones y destruye únicamente el objetivo!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   114
	["pt_PT"] = "Falhaste! Segue as instruções e destrói apenas o alvo!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   115
	["pt_BR"] = "Você falhou! Siga as instruções e atire somente no alvo",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   116
	["sk"] = "Prehrali ste! Nasledujte inštrukcie a strieľajte iba na cieľ!"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   117
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   118
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   119
local drill = {}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   120
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   121
drill[0] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   122
	["en"] = "Allright, maggot!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   123
	["de"] = "Also gut, du Made!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   124
	["pl"] = "Słuchaj mnie gnido!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   125
	["sv"] = "Dåså, din mask!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   126
	["es"] = "¡Muy bien, escoria!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   127
	["pt_PT"] = "Bom trabalho verme!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   128
	["pt_BR"] = "Parabéns escória",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   129
	["sk"] = "Počúvaj, ty červík!"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   130
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   131
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   132
drill[1] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   133
	["en"] = "Show that you aren't that useless.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   134
	["de"] = "Zeig, dass du nicht so nutzlos bist.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   135
	["pl"] = "Udowodnij, że nie jesteś bezwartościowy.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   136
	["sv"] = "Visa att du inte är så värdelös!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   137
	["es"] = "Demuéstrame que no eres tan inútil como pareces.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   138
	["pt_PT"] = "Prova-me que não és tão inútil como pareces.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   139
	["pt_BR"] = "Mostre que você não é um inútil.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   140
	["sk"] = "Dokáž, že nie si na svete úplne zbytočným."
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   141
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   142
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   143
drill[2] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   144
	["en"] = "Use [left] to move to the left!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   145
	["de"] = "Benutze [Links], um nach links zu gehen!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   146
	["pl"] = "Użyj [lewo] by poruszyć się w lewą stronę!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   147
	["sv"] = "Använd [vänster] för att gå åt vänster!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   148
	["es"] = "¡Aprieta [izquierda] para desplazarte a la izquierda!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   149
	["pt_PT"] = "Carrega [esquerda] para te moveres para a esquerda!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   150
	["pt_BR"] = "Use [esquerda] para mover para a esquerda",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   151
	["sk"] = "Stlačte [vľavo] pre pohyb doľava"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   152
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   153
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   154
drill[3] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   155
	["en"] = "Good! Now use [right] to come back!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   156
	["de"] = "Gut! Nun komm mit [Rechts] zurück!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   157
	["pl"] = "Dobzre, Teraz użyj [prawo] by wrócić!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   158
	["sv"] = "Bra! Använd nu [höger] för att gå tillbaka!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   159
	["es"] = "¡Muy bien! ¡Ahora presiona [derecha] para volver!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   160
	["pt_PT"] = "Muito bem! Agora pressiona [direita] para voltar!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   161
	["pt_BR"] = "Bom! Agora use [direita] para voltar",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   162
	["sk"] = "Dobre! Teraz použite [vpravo] a vráťte sa naspäť!"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   163
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   164
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   165
drill[4] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   166
	["en"] = "Excellent!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   167
	["de"] = "Ausgezeichnet!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   168
	["pl"] = "Wspaniale!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   169
	["sv"] = "Utmärkt!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   170
	["es"] = "¡Excelente!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   171
	["pt_PT"] = "Excelente!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   172
	["pt_BR"] = "Excelente!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   173
	["sk"] = "Výborne!"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   174
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   175
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   176
drill[5] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   177
	["en"] = "Now jump to the left using [return]!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   178
	["de"] = "Jetzt springe mit [Eingabetaste] nach links!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   179
	["pl"] = "Teraz skocz w lewo używając [Enter]",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   180
	["sv"] = "Hoppa nu åt vänster med hjälp av [enter]!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   181
	["es"] = "¡Ahora salta hacia la izquierda usando [intro]!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   182
	["pt_PT"] = "Agora salta para a esquerda pressionando [retrocesso]!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   183
	["pt_BR"] = "Agora pule para a esquerda usando [return]!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   184
	["sk"] = "Teraz skočte doľava stlačením [enter]!"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   185
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   186
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   187
drill[6] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   188
	["en"] = "Use [up] and [down] to aim.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   189
	["de"] = "Benutze [Hoch] und [Runter], um zu zielen.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   190
	["pl"] = "Użyj klawiszy [góra] i [dół] by celować.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   191
	["sv"] = "Använd [upp] och [ner] för att sikta!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   192
	["es"] = "Presiora [arriba] y [abajo] para apuntar.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   193
	["pt_PT"] = "Pressiona [cima] e [baixo] para apontar.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   194
	["pt_BR"] = "Pressione [acima] e [abaixo] para mirar.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   195
	["sk"] = "Stlačte [hore] a [dole] pre mierenie."
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   196
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   197
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   198
drill[7] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   199
	["en"] = "Hold [space] to power up your shot and then release it to shoot.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   200
	["de"] = "Halte [Leertaste], um deinen Schuss aufzuladen, und lasse dann rechtzeitig los.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   201
	["pl"] = "Przytrzymaj spację by zwiększyć siłę strzału.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   202
	["sv"] = "Håll ner [mellanslag] för att få kraft och släpp för att skjuta!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   203
	["es"] = "Mantén presionada la [barra espaciadora] para controlar la fuerza del disparo y suéltala para disparar.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   204
	["pt_PT"] = "Mantem a [barra de espaços] pressionada para controlar a força do tiro e larga-a para disparar.",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   205
	["pt_BR"] = "Mantenha pressionado [espaço] para aumentar a força do seu tiro e solte para atirar",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   206
	["sk"] = "Držte stlačený [medzerník] pre nabíjanie, jeho uvoľnením vystrelíte."
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   207
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   208
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   209
drill[8] = {
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   210
	["en"] = "Destroy the target to finish your basic training!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   211
	["de"] = "Zerstöre das Ziel, um deine Grundausbildung abzuschließen!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   212
	["pl"] = "Zniszcz cel by by ukończyć trening podstawowy!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   213
	["sv"] = "Förstör målet för att avsluta din grundutbildning!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   214
	["es"] = "¡Destruye el objetivo para completar el entrenamiento básico!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   215
	["pt_PT"] = "Destrói o alvo para completar o treino básico!",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   216
	["pt_BR"] = "Destrua o alvo para terminar o treino básico",
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   217
	["sk"] = "Zneškodnite cieľ na ukončenie základného výcviku!"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   218
}
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   219
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   220
local function loc(text)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   221
	if text == nil then return "**missing**"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   222
	elseif text[L] == nil then return text["en"]
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   223
	else return text[L]
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   224
	end
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   225
end
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   226
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   227
local player = nil
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   228
local instructor = nil
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   229
local target = nil
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   230
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   231
function onGameStart()
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   232
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   233
end
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   234
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   235
local player_start_x = 2300
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   236
local player_start_y = 1250
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   237
local target_x = 1900
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   238
local target_y = 1250
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   239
local player_health = 100
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   240
local instructor_health = 100
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   241
local teamcolor = 14483456
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   242
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   243
local progress = 0
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   244
local time_start = 0
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   245
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   246
function onGameTick()
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   247
	if progress == -1 and (time_start + 2500) == GameTime then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   248
		EndGame()
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   249
	elseif progress == -1 then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   250
		
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   251
	elseif progress > 0 and ((TurnTimeLeft == 0) or (GetHealth(player) ~= player_health) or (GetHealth(instructor) ~= instructor_health)) then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   252
		progress = -1
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   253
		ShowMission(loc(caption), loc(subcaption), loc(failed), -amBazooka, 0)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   254
		time_start = GameTime
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   255
		PlaySound(sndNooo)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   256
		TurnTimeLeft = 0
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   257
	elseif GameTime == 0 then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   258
		ShowMission(loc(caption), loc(subcaption), loc(goals[0]), -amBazooka, 0)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   259
		TurnTimeLeft = 60000
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   260
	elseif GameTime == 2500 then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   261
		FollowGear(instructor)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   262
		HogSay(instructor, loc(drill[0]), SAY_SAY)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   263
	elseif GameTime == 5000 then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   264
		FollowGear(instructor)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   265
		HogSay(instructor, loc(drill[1]), SAY_SAY)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   266
	elseif GameTime == 7500 then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   267
		FollowGear(instructor)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   268
		HogSay(instructor, loc(drill[2]), SAY_SHOUT)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   269
		progress = 1
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   270
		TurnTimeLeft = 10000
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   271
	elseif progress == 1 then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   272
		local x, y = GetGearPosition(player)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   273
		if x < player_start_x - 50 then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   274
			progress = 2
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   275
			FollowGear(instructor)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   276
			HogSay(instructor, loc(drill[3]), SAY_SHOUT)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   277
			TurnTimeLeft = 10000
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   278
		end
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   279
	elseif progress == 2 then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   280
		local x, y = GetGearPosition(player)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   281
		if x > player_start_x then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   282
			progress = 3
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   283
			FollowGear(instructor)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   284
			HogSay(instructor, loc(drill[4]), SAY_SAY)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   285
			time_start = GameTime
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   286
		end
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   287
	elseif progress == 3 and (time_start + 2500 == GameTime) then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   288
		progress = 4
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   289
		FollowGear(instructor)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   290
		HogSay(instructor, loc(drill[5]), SAY_SHOUT)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   291
		HogTurnLeft(player, true)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   292
		TurnTimeLeft = 10000
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   293
	elseif progress == 4 then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   294
		local x, y = GetGearPosition(player)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   295
		if y < player_start_y then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   296
			progress = 5
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   297
			FollowGear(instructor)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   298
			HogSay(instructor, "Yeah!", SAY_SAY)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   299
			time_start = GameTime
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   300
			TurnTimeLeft = 30000
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   301
		end
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   302
	elseif progress == 5 and (time_start + 2500 == GameTime) then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   303
		FollowGear(instructor)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   304
		HogSay(instructor, loc(drill[6]), SAY_SAY)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   305
	elseif progress == 5 and (time_start + 5000 == GameTime) then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   306
		FollowGear(instructor)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   307
		HogSay(instructor, loc(drill[7]), SAY_SAY)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   308
	elseif progress == 5 and (time_start + 7500 == GameTime) then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   309
		FollowGear(instructor)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   310
		HogSay(instructor, loc(drill[8]), SAY_SHOUT)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   311
		ShowMission(loc(caption), loc(subcaption), loc(goals[1]), 1, 0)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   312
		target = AddGear(target_x, target_y, gtTarget, 0, 0, 0, 0)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   313
		TurnTimeLeft = 60000
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   314
	elseif progress == 5 and (time_start + 10000 == GameTime) then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   315
		FollowGear(target)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   316
	elseif progress == 6 then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   317
		progress = 7
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   318
		ShowMission(loc(caption), loc(subcaption), loc(goals[2]), 0, 0)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   319
		PlaySound(sndVictory)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   320
		time_start = GameTime
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   321
	elseif progress == 7 and (time_start + 2500 == GameTime) then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   322
		EndGame()
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   323
	end
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   324
end
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   325
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   326
function onGameInit()
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   327
	Seed = 0
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   328
	GameFlags = gfMultiWeapon + gfOneClanMode
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   329
	TurnTime = 25000
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   330
	CaseFreq = 0
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   331
	MinesNum = 0
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   332
	Explosives = 0
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   333
	Delay = 2500
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   334
	Map = "Mushrooms"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   335
	Theme = "Nature"
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   336
	
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   337
	AddTeam(loc(teamnames[0]), teamcolor, "Simple", "Island", "Default")
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   338
	player = AddHog(loc(hognames[0]), 0, player_health, "NoHat")
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   339
	SetGearPosition(player, player_start_x, player_start_y)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   340
	
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   341
	AddTeam(loc(teamnames[1]), teamcolor + 1, "Simple", "Island", "Default")
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   342
	instructor = AddHog(loc(hognames[1]), 0, instructor_health, "NoHat")
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   343
	SetGearPosition(instructor, player_start_x + 100, player_start_y)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   344
	HogTurnLeft(instructor, true)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   345
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   346
	FollowGear(player)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   347
end
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   348
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   349
function onAmmoStoreInit()
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   350
	SetAmmo(amBazooka, 9, 0, 0, 0)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   351
end
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   352
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   353
function onGearDelete(gear)
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   354
	if GetGearType(gear) == gtTarget then
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   355
		progress = 6
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   356
	end
5645462cc78f removing all " " in filenames under share and replacing "_" with " " in missions
Henek
parents:
diff changeset
   357
end