share/hedgewars/Data/Missions/Training/Basic_Training_-_Movement.lua
author Wuzzy <Wuzzy2@mail.ru>
Tue, 17 Jul 2018 22:00:15 +0200
changeset 13508 c5d7376fa58a
parent 13468 4c47a480009b
child 13583 141cdfe0f3ca
permissions -rw-r--r--
Bazooka/Grende training: Hide mission panel on pressing attack key
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
     1
-- Basic Movement Training
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
     2
-- Teaches the basic movement controls.
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
     3
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
     4
--[[ Lessons:
13185
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
     5
* How to show the mission panel again
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
     6
* Walking
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
     7
* Collecting crates
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
     8
* Health basics
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
     9
* Jumping
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    10
* Fall damage
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    11
* Walking and staying on ice
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    12
* Switching hedgehogs
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    13
* Bouncing on rubber
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    14
]]
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    15
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    16
HedgewarsScriptLoad("/Scripts/Locale.lua")
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    17
HedgewarsScriptLoad("/Scripts/Tracker.lua")
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    18
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    19
local hhs = {}
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    20
local hog_greenhorn, hog_cappy
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    21
local crates = {}
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    22
local switcherGear
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    23
local tookDamage = false
13074
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
    24
local switchTextDelay = -1
13185
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
    25
local missionPanelConfirmed = false
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
    26
local turnStarted = false
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    27
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    28
local map = {
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    29
"\1\74\7\29\135\1\74\8\11\0\1\83\7\135\135",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    30
"\1\250\7\135\0\1\204\7\137\135\1\238\7\135\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    31
"\2\17\7\130\0\2\42\7\110\0\2\74\7\94\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    32
"\2\106\7\89\0\2\99\7\121\0\2\76\7\128\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    33
"\2\115\7\98\135\2\147\7\98\0\2\179\7\94\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    34
"\2\147\7\96\0\2\174\7\89\0\2\145\7\91\135",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    35
"\2\115\7\87\0\2\122\7\89\135\2\154\7\89\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    36
"\2\170\7\89\0\2\179\7\105\135\2\179\7\107\135",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    37
"\2\177\7\142\135\2\177\8\105\0\3\74\7\94\135",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    38
"\3\74\8\50\0\3\88\7\89\135\3\129\7\89\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    39
"\3\161\7\91\0\3\193\7\98\0\3\225\7\100\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    40
"\4\1\7\91\0\4\33\7\89\0\4\65\7\98\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    41
"\4\97\7\100\0\4\134\7\103\0\4\166\7\100\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    42
"\4\200\7\98\0\4\232\7\96\0\5\8\7\96\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    43
"\5\40\7\98\0\5\72\7\98\0\5\107\7\100\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    44
"\5\139\7\98\0\5\173\7\89\0\5\207\7\94\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    45
"\5\239\7\100\0\6\15\7\100\0\6\47\7\100\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    46
"\6\86\7\100\0\6\118\7\100\0\6\153\7\94\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    47
"\6\185\7\91\0\6\219\7\91\0\6\251\7\98\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    48
"\7\27\7\103\0\7\61\7\100\0\7\94\7\96\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    49
"\7\126\7\91\0\7\160\7\94\0\7\192\7\105\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    50
"\7\224\7\116\0\7\254\7\126\0\8\34\7\123\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    51
"\8\66\7\119\0\8\98\7\114\0\8\133\7\119\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    52
"\8\165\7\132\0\8\195\7\142\0\8\229\7\146\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    53
"\9\5\7\151\0\9\37\7\155\0\9\69\7\164\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    54
"\9\101\7\174\0\9\131\7\190\0\9\160\7\208\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    55
"\9\186\7\226\0\9\215\7\240\0\9\250\7\238\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    56
"\10\26\7\233\0\10\58\7\233\0\10\90\7\235\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    57
"\10\122\7\238\0\10\154\7\238\0\10\186\7\249\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    58
"\10\213\8\14\0\10\245\8\9\0\11\3\8\39\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    59
"\11\24\8\66\0\11\10\8\62\0\10\213\8\5\135",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    60
"\10\245\8\7\0\11\21\8\14\0\11\56\8\25\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    61
"\11\92\8\37\0\11\106\8\43\0\9\85\8\0\147",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    62
"\9\83\8\0\0\8\208\7\233\147\3\168\7\197\147",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    63
"\8\94\7\197\0\2\83\7\210\147\1\179\7\238\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    64
"\1\44\7\84\139\1\12\7\87\0\0\238\7\98\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    65
"\0\211\7\119\0\0\190\7\144\0\0\165\7\164\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    66
"\0\146\7\190\0\0\140\7\222\0\0\142\7\254\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    67
"\0\153\8\30\0\0\156\8\37\0\1\7\7\178\139",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    68
"\0\247\7\210\0\0\224\7\238\0\0\215\8\14\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    69
"\0\215\8\18\0\1\5\7\238\139\1\19\8\11\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    70
"\1\32\8\43\0\1\39\8\62\0\1\67\7\32\136",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    71
"\1\69\6\253\0\1\69\6\219\0\1\69\6\187\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    72
"\1\74\6\155\0\1\80\6\123\0\1\51\6\109\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    73
"\1\35\6\80\0\1\12\6\105\0\0\243\6\132\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    74
"\0\233\6\176\0\0\252\6\212\0\1\14\6\240\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    75
"\0\252\7\13\0\0\233\6\219\0\0\238\6\182\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    76
"\0\238\6\148\0\1\12\6\164\0\1\9\6\201\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    77
"\0\236\6\224\0\0\206\6\251\0\0\165\7\32\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    78
"\0\144\7\57\0\0\124\7\82\0\0\103\7\107\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    79
"\0\96\7\144\0\0\92\7\176\0\0\112\7\139\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    80
"\0\121\7\105\0\0\130\7\61\0\0\142\7\25\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    81
"\0\156\6\251\0\0\188\6\247\0\0\201\6\217\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    82
"\0\167\6\224\0\0\146\6\251\0\0\130\7\25\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    83
"\0\112\7\66\0\0\98\7\110\0\0\98\7\142\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    84
"\0\98\7\174\0\0\101\7\206\0\0\101\7\238\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    85
"\0\126\8\7\0\0\137\8\14\0\10\46\7\245\136",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    86
"\10\14\7\247\0\9\241\7\229\0\9\209\7\222\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    87
"\9\176\7\226\0\9\138\7\233\0\9\94\7\233\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    88
"\9\62\7\233\0\9\46\7\235\0\2\53\7\139\136",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    89
"\2\21\7\137\0\1\250\7\119\0\1\218\7\116\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    90
"\1\186\7\119\0\1\151\7\119\0\1\119\7\114\0",
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    91
"\1\92\7\135\0\1\78\7\132\0" }
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    92
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    93
local function drawMap()
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    94
	for m=1, #map do
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    95
		ParseCommand("draw "..map[m])
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    96
	end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    97
end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    98
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
    99
function onGameInit()
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   100
	GameFlags = gfDisableWind + gfDisableGirders + gfDisableLandObjects + gfOneClanMode + gfInfAttack
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   101
	Map = ""
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   102
	Seed = 0
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   103
	Theme = "Brick"
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   104
	MapGen = mgDrawn
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   105
	TurnTime = 9999000
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   106
	Explosives = 0
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   107
	MinesNum = 0
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   108
	CaseFreq = 0
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   109
	WaterRise = 0
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   110
	HealthDecrease = 0
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   111
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   112
	-- DRAW MAP --
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   113
	drawMap()
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   114
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   115
	------ HOG LIST ------
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   116
	AddTeam(loc("Training Team"), 0xFF0204, "deadhog", "SteelTower", "Default", "hedgewars")
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   117
	
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   118
	hhs[1] = AddHog(loc("Greenhorn"), 0, 100, "NoHat")
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   119
	SetGearPosition(hhs[1], 404, 1714)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   120
	SetEffect(hhs[1], heResurrectable, 1)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   121
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   122
	hhs[2] = AddHog(loc("Rhombus"), 0, 100, "NoHat")
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   123
	SetGearPosition(hhs[2], 620, 1538)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   124
	SetEffect(hhs[2], heResurrectable, 1)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   125
	HogTurnLeft(hhs[2], true)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   126
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   127
	hhs[3] = AddHog(loc("Trapped"), 0, 100, "NoHat")
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   128
	SetGearPosition(hhs[3], 1573, 1824)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   129
	SetEffect(hhs[3], heResurrectable, 1)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   130
	
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   131
	hhs[4] = AddHog(loc("Cappy"), 0, 100, "cap_red")
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   132
	SetGearPosition(hhs[4], 2114, 1411)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   133
	SetEffect(hhs[4], heResurrectable, 1)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   134
	HogTurnLeft(hhs[4], true)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   135
	
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   136
	hhs[5] = AddHog(loc("Ice"), 0, 100, "NoHat")
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   137
	SetGearPosition(hhs[5], 1813, 1285)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   138
	SetEffect(hhs[5], heResurrectable, 1)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   139
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   140
	hog_greenhorn = hhs[1]
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   141
	hog_cappy = hhs[4]
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   142
	
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   143
	SendHealthStatsOff()
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   144
end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   145
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   146
local function LoadGearData()
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   147
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   148
	--BEGIN CORE DATA--
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   149
13189
69e9993aede8 Movement Training: Revert ice girder color for consistency with TechRacer and HedgeEditor
Wuzzy <Wuzzy2@mail.ru>
parents: 13187
diff changeset
   150
	local iceColor = 0x00FAFAFA
13187
e2a83a7b783c Movement training: Tweak some sprite visuals
Wuzzy <Wuzzy2@mail.ru>
parents: 13185
diff changeset
   151
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   152
	------ GIRDER LIST ------
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   153
	PlaceSprite(292, 1488, sprAmGirder, 6, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   154
	PlaceSprite(454, 1731, sprAmGirder, 4, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   155
	PlaceSprite(467, 1653, sprAmGirder, 4, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   156
	PlaceSprite(611, 1702, sprAmGirder, 5, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   157
	PlaceSprite(426, 1558, sprAmGirder, 7, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   158
	PlaceSprite(555, 1558, sprAmGirder, 5, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   159
	PlaceSprite(649, 1600, sprAmGirder, 7, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   160
	PlaceSprite(1072, 1809, sprAmGirder, 0, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   161
	PlaceSprite(1040, 1831, sprAmGirder, 0, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   162
	PlaceSprite(1124, 1805, sprAmGirder, 2, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   163
	PlaceSprite(1175, 1772, sprAmGirder, 0, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   164
	PlaceSprite(1226, 1738, sprAmGirder, 2, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   165
	PlaceSprite(1275, 1705, sprAmGirder, 0, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   166
	PlaceSprite(1325, 1683, sprAmGirder, 6, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   167
	PlaceSprite(1368, 1560, sprAmGirder, 3, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   168
	PlaceSprite(1390, 1665, sprAmGirder, 6, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   169
	PlaceSprite(1481, 1716, sprAmGirder, 4, 0xFFFFFFFF, nil, nil, nil, lfNormal)
13187
e2a83a7b783c Movement training: Tweak some sprite visuals
Wuzzy <Wuzzy2@mail.ru>
parents: 13185
diff changeset
   170
	PlaceSprite(1625, 1652, sprAmGirder, 7, iceColor, nil, nil, nil, lfIce)
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   171
	PlaceSprite(1729, 1596, sprAmGirder, 0, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   172
	PlaceSprite(1762, 1545, sprAmGirder, 2, 0xFFFFFFFF, nil, nil, nil, lfNormal)
13187
e2a83a7b783c Movement training: Tweak some sprite visuals
Wuzzy <Wuzzy2@mail.ru>
parents: 13185
diff changeset
   173
	PlaceSprite(1563, 1536, sprAmGirder, 5, iceColor, nil, nil, nil, lfIce)
e2a83a7b783c Movement training: Tweak some sprite visuals
Wuzzy <Wuzzy2@mail.ru>
parents: 13185
diff changeset
   174
	PlaceSprite(1506, 1392, sprAmGirder, 6, iceColor, nil, nil, nil, lfIce)
e2a83a7b783c Movement training: Tweak some sprite visuals
Wuzzy <Wuzzy2@mail.ru>
parents: 13185
diff changeset
   175
	PlaceSprite(1591, 1450, sprAmGirder, 3, iceColor, nil, nil, nil, lfIce)
e2a83a7b783c Movement training: Tweak some sprite visuals
Wuzzy <Wuzzy2@mail.ru>
parents: 13185
diff changeset
   176
	PlaceSprite(1650, 1463, sprAmGirder, 1, iceColor, nil, nil, nil, lfIce)
e2a83a7b783c Movement training: Tweak some sprite visuals
Wuzzy <Wuzzy2@mail.ru>
parents: 13185
diff changeset
   177
	PlaceSprite(1766, 1492, sprAmGirder, 4, iceColor, nil, nil, nil, lfIce)
e2a83a7b783c Movement training: Tweak some sprite visuals
Wuzzy <Wuzzy2@mail.ru>
parents: 13185
diff changeset
   178
	PlaceSprite(1925, 1492, sprAmGirder, 4, iceColor, nil, nil, nil, lfIce)
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   179
	PlaceSprite(2114, 1428, sprAmGirder, 0, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   180
	PlaceSprite(2187, 1435, sprAmGirder, 6, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   181
	PlaceSprite(2135, 1478, sprAmGirder, 2, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   182
	PlaceSprite(2284, 1650, sprAmGirder, 4, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   183
	PlaceSprite(2005, 1724, sprAmGirder, 4, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   184
	PlaceSprite(1885, 1562, sprAmGirder, 7, 0xFFFFFFFF, nil, nil, nil, lfNormal)
13187
e2a83a7b783c Movement training: Tweak some sprite visuals
Wuzzy <Wuzzy2@mail.ru>
parents: 13185
diff changeset
   185
	PlaceSprite(2252, 1700, sprAmGirder, 2, iceColor, nil, nil, nil, lfIce)
e2a83a7b783c Movement training: Tweak some sprite visuals
Wuzzy <Wuzzy2@mail.ru>
parents: 13185
diff changeset
   186
	PlaceSprite(2308, 1803, sprAmGirder, 5, iceColor, nil, nil, nil, lfIce)
e2a83a7b783c Movement training: Tweak some sprite visuals
Wuzzy <Wuzzy2@mail.ru>
parents: 13185
diff changeset
   187
	PlaceSprite(2394, 1893, sprAmGirder, 1, iceColor, nil, nil, nil, lfIce)
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   188
	PlaceSprite(605, 1761, sprAmGirder, 2, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   189
	PlaceSprite(1813, 1312, sprAmGirder, 4, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   190
	PlaceSprite(1742, 1260, sprAmGirder, 2, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   191
	PlaceSprite(1812, 1210, sprAmGirder, 4, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   192
	PlaceSprite(1884, 1260, sprAmGirder, 2, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   193
	PlaceSprite(1545, 1811, sprAmGirder, 2, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   194
	PlaceSprite(1577, 1761, sprAmGirder, 0, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   195
	PlaceSprite(1610, 1811, sprAmGirder, 2, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   196
	PlaceSprite(1440, 1531, sprAmGirder, 6, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   197
	PlaceSprite(2082, 1337, sprAmGirder, 6, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   198
	PlaceSprite(2187, 1273, sprAmGirder, 6, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   199
	PlaceSprite(2097, 1246, sprAmGirder, 4, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   200
	PlaceSprite(593, 1465, sprAmGirder, 7, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   201
	PlaceSprite(684, 1505, sprAmGirder, 5, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   202
	PlaceSprite(2046, 1492, sprAmGirder, 0, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   203
	PlaceSprite(2064, 1442, sprAmGirder, 2, 0xFFFFFFFF, nil, nil, nil, lfNormal)
13187
e2a83a7b783c Movement training: Tweak some sprite visuals
Wuzzy <Wuzzy2@mail.ru>
parents: 13185
diff changeset
   204
	PlaceSprite(1849, 1426, sprAmGirder, 4, iceColor, nil, nil, nil, lfIce)
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   205
	PlaceSprite(3051, 1957, sprAmGirder, 6, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   206
	PlaceSprite(3101, 1956, sprAmGirder, 0, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   207
	PlaceSprite(3150, 1954, sprAmGirder, 6, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   208
	PlaceSprite(3233, 1962, sprAmGirder, 5, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   209
	PlaceSprite(3322, 2004, sprAmGirder, 3, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   210
	PlaceSprite(3391, 2001, sprAmGirder, 1, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   211
	PlaceSprite(3483, 1982, sprAmGirder, 7, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   212
	PlaceSprite(2770, 1980, sprAmGirder, 4, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   213
	PlaceSprite(2886, 2005, sprAmGirder, 1, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   214
	PlaceSprite(2698, 1891, sprAmGirder, 6, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   215
	PlaceSprite(2843, 1891, sprAmGirder, 6, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   216
	PlaceSprite(2834, 1771, sprAmGirder, 5, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   217
	PlaceSprite(2706, 1771, sprAmGirder, 7, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   218
	PlaceSprite(2768, 1818, sprAmGirder, 0, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   219
	PlaceSprite(2768, 1899, sprAmGirder, 0, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   220
	PlaceSprite(1760, 1393, sprAmGirder, 2, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   221
	PlaceSprite(516, 1795, sprAmGirder, 4, 0xFFFFFFFF, nil, nil, nil, lfNormal)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   222
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   223
	------ RUBBER LIST ------
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   224
	PlaceSprite(2151, 1659, sprAmRubber, 3, 0xFFFFFFFF, nil, nil, nil, lfBouncy)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   225
	PlaceSprite(2399, 1698, sprAmRubber, 3, 0xFFFFFFFF, nil, nil, nil, lfBouncy)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   226
	PlaceSprite(2467, 1553, sprAmRubber, 2, 0xFFFFFFFF, nil, nil, nil, lfBouncy)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   227
	PlaceSprite(2279, 1497, sprAmRubber, 0, 0xFFFFFFFF, nil, nil, nil, lfBouncy)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   228
	PlaceSprite(2414, 1452, sprAmRubber, 0, 0xFFFFFFFF, nil, nil, nil, lfBouncy)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   229
	PlaceSprite(1860, 1687, sprAmRubber, 1, 0xFFFFFFFF, nil, nil, nil, lfBouncy)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   230
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   231
	------ SPRITE LIST ------
13187
e2a83a7b783c Movement training: Tweak some sprite visuals
Wuzzy <Wuzzy2@mail.ru>
parents: 13185
diff changeset
   232
	PlaceSprite(1297, 1732, sprTargetBee, 0, 0xFFFFFFFF, nil, nil, nil, lfNormal)
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   233
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   234
	------ CRATE LIST ------
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   235
	crates[1] = SpawnHealthCrate(401, 1850)			-- Jumping
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   236
	crates[2] = SpawnHealthCrate(2639, 1973)		-- Final crate
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   237
	crates[3] = SpawnHealthCrate(1969, 1698)		-- Rubber
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   238
	crates[4] = SpawnHealthCrate(889, 1829)			-- Back Jumping
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   239
	crates[5] = SpawnHealthCrate(1486, 1694)		-- Walking on Ice
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   240
	crates[6] = SpawnHealthCrate(2033, 1470)		-- Walking on Ice completed
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   241
	crates[7] = SpawnHealthCrate(1297, 1683)		-- Back Jumping 2
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   242
	crates[8] = SpawnSupplyCrate(1851, 1402, amSwitch, 100)	-- Switch Hedgehog
13185
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   243
	crates[9] = SpawnHealthCrate(564, 1772)			-- Health
13072
1ff4671066d2 Add "Turning Around" to movement training
Wuzzy <Wuzzy2@mail.ru>
parents: 13070
diff changeset
   244
	crates[10] = SpawnHealthCrate(2290, 1622)		-- Turning Around
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   245
end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   246
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   247
local function victory()
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   248
	ShowMission(loc("Basic Movement Training"), loc("Training complete!"),loc("Congratulations! You have completed the obstacle course!"), 0, 0)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   249
	SendStat(siGameResult, loc("You have completed the Basic Movement Training!"))
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   250
	SendStat(siCustomAchievement, loc("Congratulations!"))
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   251
	SendStat(siPlayerKills, "0", loc("Training Team"))
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   252
	PlaySound(sndVictory, CurrentHedgehog)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   253
	-- Disable controls, end game
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   254
	SetInputMask(0)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   255
	SetWeapon(amNothing)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   256
	SetGearMessage(CurrentHedgehog, band(GetGearMessage(CurrentHedgehog), bnot(gmAllStoppable)))
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   257
	EndGame()
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   258
end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   259
13074
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   260
local function switchHedgehogText()
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   261
	if CurrentHedgehog == hog_cappy then
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   262
		ShowMission(loc("Basic Movement Training"), loc("Switch Hedgehog (3/3)"),
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   263
		loc("This is Cappy.").."|"..
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   264
		loc("To finish hedgehog selection, just do anything|with him, like walking."),
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   265
		2, 20000)
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   266
	else
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   267
		ShowMission(loc("Basic Movement Training"), loc("Switch Hedgehog (2/3)"),
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   268
		loc("You have activated Switch Hedgehog!").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   269
		loc("The spinning arrows above your hedgehog show|which hedgehog is selected right now.").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   270
		loc("Hit the “Switch Hedgehog” key until you have|selected Cappy, the hedgehog with the cap!").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   271
		loc("Switch hedgehog: [Tabulator]"), 2, 20000)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   272
	end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   273
end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   274
13074
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   275
function onGearAdd(gear)
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   276
	if GetGearType(gear) == gtSwitcher then
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   277
		switcherGear = gear
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   278
		switchHedgehogText()
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   279
	end
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   280
end
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   281
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   282
function onGearDelete(gear)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   283
	-- Switching done
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   284
	if GetGearType(gear) == gtSwitcher then
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   285
		switcherGear = nil
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   286
		if CurrentHedgehog == hog_cappy then
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   287
			ShowMission(loc("Basic Movement Training"), loc("Leap of Faith"),
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   288
			loc("Good! You now control Cappy.").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   289
			loc("Collect the remaining crates to complete the training."),
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   290
			2, 0)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   291
		else
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   292
			ShowMission(loc("Basic Movement Training"), loc("Switch Hedgehog (Failed!)"),
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   293
			loc("Oops! You have selected the wrong hedgehog! Just try again.").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   294
			loc("Select “Switch Hedgehog” from the ammo menu and|hit the “Attack” key to proceed.").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   295
			loc("Open ammo menu: [Right click]").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   296
			loc("Attack: [Space]"), 2, 0)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   297
		end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   298
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   299
	-- Crate collected (or destroyed, but this should not be possible)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   300
	elseif gear == crates[1] then
13185
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   301
		ShowMission(loc("Basic Movement Training"), loc("Jumping"),
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   302
		loc("Get the next crate by jumping over the abyss.").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   303
		loc("Careful, hedgehogs can't swim!").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   304
		loc("Long Jump: [Enter]"), 2, 5000)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   305
	elseif gear == crates[2] then
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   306
		victory()
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   307
	elseif gear == crates[4] then
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   308
		ShowMission(loc("Basic Movement Training"), loc("Back Jumping (1/2)"),
13072
1ff4671066d2 Add "Turning Around" to movement training
Wuzzy <Wuzzy2@mail.ru>
parents: 13070
diff changeset
   309
		loc("For the next crate, you have to do back jumps.") .. "|" ..
13356
ced5dc3079a3 Minor improvements in tutorial mission texts to make stuff clearer
Wuzzy <Wuzzy2@mail.ru>
parents: 13190
diff changeset
   310
		loc("To reach higher ground, walk to a ledge, look to the left, then do a back jump.") .. "|" ..
ced5dc3079a3 Minor improvements in tutorial mission texts to make stuff clearer
Wuzzy <Wuzzy2@mail.ru>
parents: 13190
diff changeset
   311
		loc("High Jump: [Backspace]").."|"..loc("Back Jump: [Backspace] ×2"), 2, 6600)
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   312
	elseif gear == crates[7] then
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   313
		ShowMission(loc("Basic Movement Training"), loc("Back Jumping (2/2)"),
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   314
		loc("To get over the next obstacle, you need to perform your back jump precisely.").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   315
		loc("Hint: Hit “High Jump” again when you're close to the highest point of a high jump.").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   316
		loc("Hint: Don't stand too close at the wall before you jump!").."|"..
13187
e2a83a7b783c Movement training: Tweak some sprite visuals
Wuzzy <Wuzzy2@mail.ru>
parents: 13185
diff changeset
   317
		loc("Hint: Use the flower for orientation.").."|"..
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   318
		loc("High Jump: [Backspace]").."|"..loc("Back Jump: [Backspace] ×2"), 2, 15000)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   319
	elseif gear == crates[5] then
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   320
		ShowMission(loc("Basic Movement Training"), loc("Walking on Ice"),
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   321
		loc("These girders are slippery, like ice.").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   322
		loc("And you need to move to the top!").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   323
		loc("If you don't want to slip away, you have to keep moving!").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   324
		loc("You can also hold down the key for “Precise Aim” to prevent slipping.").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   325
		loc("Precise Aim: [Left Shift]"), 2, 9000)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   326
	elseif gear == crates[6] then
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   327
		ShowMission(loc("Basic Movement Training"), loc("A mysterious Box"),
13072
1ff4671066d2 Add "Turning Around" to movement training
Wuzzy <Wuzzy2@mail.ru>
parents: 13070
diff changeset
   328
		loc("The next crate is an utility crate.").."|"..loc("What's in the box, you ask? Let's find out!").."|"..
1ff4671066d2 Add "Turning Around" to movement training
Wuzzy <Wuzzy2@mail.ru>
parents: 13070
diff changeset
   329
		loc("Remember: Hold down [Left Shift] to prevent slipping"), 2, 6000)
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   330
	elseif gear == crates[8] then
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   331
		ShowMission(loc("Basic Movement Training"), loc("Switch Hedgehog (1/3)"),
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   332
		loc("You have collected the “Switch Hedgehog” utility!").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   333
		loc("This allows to select any hedgehog in your team!").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   334
		loc("Select “Switch Hedgehog” from the ammo menu and|hit the “Attack” key.").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   335
		loc("Open ammo menu: [Right click]").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   336
		loc("Attack: [Space]"), 2, 30000)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   337
	elseif gear == crates[3] then
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   338
		ShowMission(loc("Basic Movement Training"), loc("Rubber"), loc("As you probably noticed, these rubber bands|are VERY elastic. Hedgehogs and many other|things will bounce off without taking any damage.").."|"..
13072
1ff4671066d2 Add "Turning Around" to movement training
Wuzzy <Wuzzy2@mail.ru>
parents: 13070
diff changeset
   339
		loc("Now try to get out of this bounce house|and take the next crate."), 2, 8000)
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   340
	elseif gear == crates[9] then
13185
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   341
		ShowMission(loc("Basic Movement Training"), loc("Health"), loc("You just got yourself some extra health.|The more health your hedgehogs have, the better!").."|"..
13356
ced5dc3079a3 Minor improvements in tutorial mission texts to make stuff clearer
Wuzzy <Wuzzy2@mail.ru>
parents: 13190
diff changeset
   342
		loc("Now go to the next crate.").."|"..
ced5dc3079a3 Minor improvements in tutorial mission texts to make stuff clearer
Wuzzy <Wuzzy2@mail.ru>
parents: 13190
diff changeset
   343
		loc("Look around: [Mouse movement]"), 2, 10000)
13072
1ff4671066d2 Add "Turning Around" to movement training
Wuzzy <Wuzzy2@mail.ru>
parents: 13070
diff changeset
   344
	elseif gear == crates[10] then
1ff4671066d2 Add "Turning Around" to movement training
Wuzzy <Wuzzy2@mail.ru>
parents: 13070
diff changeset
   345
		ShowMission(loc("Basic Movement Training"), loc("Turning Around"),
1ff4671066d2 Add "Turning Around" to movement training
Wuzzy <Wuzzy2@mail.ru>
parents: 13070
diff changeset
   346
		loc("By the way, you can turn around without walking|by holding down Precise when you hit a walk control.").."|"..
1ff4671066d2 Add "Turning Around" to movement training
Wuzzy <Wuzzy2@mail.ru>
parents: 13070
diff changeset
   347
		loc("Get the final crate to the right to complete the training.").."|"..
1ff4671066d2 Add "Turning Around" to movement training
Wuzzy <Wuzzy2@mail.ru>
parents: 13070
diff changeset
   348
		loc("Turn around: [Left Shift] + [Left]/[Right]")
1ff4671066d2 Add "Turning Around" to movement training
Wuzzy <Wuzzy2@mail.ru>
parents: 13070
diff changeset
   349
		, 2, 8000)
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   350
	end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   351
end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   352
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   353
function onGearDamage(gear)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   354
	if GetGearType(gear) == gtHedgehog and tookDamage == false then
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   355
		ShowMission(loc("Basic Movement Training"), loc("Fall Damage"), loc("Ouch! You just took fall damage.").."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   356
		loc("Better get yourself another health crate to heal your wounds."), 2, 5000)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   357
		tookDamage = true
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   358
	end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   359
end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   360
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   361
function onSwitch()
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   362
	-- Update help while switching hogs
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   363
	if switcherGear then
13074
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   364
		-- Delay for CurrentHedgehog to update
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   365
		switchTextDelay = 1
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   366
	end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   367
end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   368
13185
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   369
local function firstMission()
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   370
	-- This part is CRITICALLY important for all future missions.
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   371
	-- Because the player must know how to show the current mission texts again.
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   372
	-- We force the player to hit Attack before the actual training begins.
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   373
	ShowMission(loc("Basic Movement Training"), loc("Mission Panel"),
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   374
	loc("This is the mission panel.").."|"..
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   375
	loc("Here you will find the current mission instructions.").."|"..
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   376
	loc("Normally, the mission panel disappears after a few seconds.").."|"..
13466
c6ecb87b3231 Update mission texts with regards to mission panel key
Wuzzy <Wuzzy2@mail.ru>
parents: 13356
diff changeset
   377
	loc("IMPORTANT: To see the mission panel again, hold the mission panel key.").."| |"..
13185
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   378
	loc("Note: This basic training assumes default controls.").."|"..
13466
c6ecb87b3231 Update mission texts with regards to mission panel key
Wuzzy <Wuzzy2@mail.ru>
parents: 13356
diff changeset
   379
        loc("Mission panel: [M]").."|"..
13185
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   380
	loc("Quit: [Esc]").."|"..
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   381
	loc("Pause: [P]").."| |"..
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   382
	loc("To begin with the training, hit the attack key!").."|"..
13468
4c47a480009b Prevent manual hiding of some special mission panels
Wuzzy <Wuzzy2@mail.ru>
parents: 13466
diff changeset
   383
	loc("Attack: [Space]"), 2, 900000, true)
13185
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   384
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   385
	-- TODO: This and other training missions are currently hardcoding control names.
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   386
	-- This should be fixed eventually.
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   387
end
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   388
13074
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   389
function onGameTick20()
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   390
	if switchTextDelay > 0 then
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   391
		switchTextDelay = switchTextDelay - 1
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   392
	elseif switchTextDelay == 0 then
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   393
		switchHedgehogText()
e69cb8d5512c Basic Movement Training: Fix inconsistent help texts when switching Cappy a 2nd time
Wuzzy <Wuzzy2@mail.ru>
parents: 13072
diff changeset
   394
		switchTextDelay = -1
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   395
	end
13185
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   396
	if turnStarted and GameTime % 10000 == 0 and not missionPanelConfirmed then
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   397
		-- Forces the first mission panel to be displayed without time limit
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   398
		firstMission()
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   399
	end
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   400
end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   401
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   402
function onGearResurrect(gear)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   403
	AddCaption(loc("Your hedgehog has been revived!"))
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   404
	if gear == hog_cappy then
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   405
		SetGearPosition(gear, 404, 1714)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   406
	elseif gear == hog_greenhorn then
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   407
		SetGearPosition(gear, 401, 1850)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   408
	else
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   409
		-- Generic teleport to Rhombus' cage
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   410
		SetGearPosition(gear, 619, 1559)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   411
	end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   412
	FollowGear(gear)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   413
end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   414
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   415
function onNewTurn()
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   416
	SwitchHog(hog_greenhorn)
13185
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   417
	FollowGear(hog_greenhorn)
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   418
	if not missionPanelConfirmed then
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   419
		turnStarted = true
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   420
		PlaySound(sndHello, hog_greenhorn)
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   421
		firstMission()
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   422
	end
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   423
end
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   424
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   425
function onAttack()
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   426
	if not missionPanelConfirmed then
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   427
		-- Mission panel confirmed, release controls
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   428
		PlaySound(sndPlaced)
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   429
		SetInputMask(0xFFFFFFFF)
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   430
		SetSoundMask(sndYesSir, false)
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   431
		PlaySound(sndYesSir, hog_greenhorn)
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   432
		-- First mission: How to walk
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   433
		ShowMission(loc("Basic Movement Training"), loc("First Steps"), loc("Complete the obstacle course.") .."|"..
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   434
		loc("To begin, walk to the crate to the right.").."|"..
13185
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   435
		loc("Walk: [Left]/[Right]"), 2, 7000)
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   436
		missionPanelConfirmed = true
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   437
	end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   438
end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   439
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   440
function onGameStart()
13185
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   441
	-- Disable input to force player to confirm first message
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   442
	SetInputMask(0)
1b31c3fb65fc Movement Training: Make the use of the mission panel clearer and harder to overlook
Wuzzy <Wuzzy2@mail.ru>
parents: 13074
diff changeset
   443
	SetSoundMask(sndYesSir, true)
13070
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   444
	LoadGearData()
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   445
	ShowMission(loc("Basic Movement Training"), loc("Basic Training"), loc("Complete the obstacle course."), 1, 0)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   446
	FollowGear(hog_greenhorn)
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   447
end
53cbf7aea5f0 Add Basic Movement Training
Wuzzy <Wuzzy2@mail.ru>
parents:
diff changeset
   448