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