-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwar3map.j
More file actions
222 lines (184 loc) · 8.44 KB
/
war3map.j
File metadata and controls
222 lines (184 loc) · 8.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
//===========================================================================
//
// DotA v6.74c
//
// Warcraft III map script
// Generated by the Warcraft III World Editor
// Date: Wed Aug 08 16:44:26 2012
// Map Author: jfhs
//
//===========================================================================
//***************************************************************************
//*
//* Global Variables
//*
//***************************************************************************
globals
endglobals
function InitGlobals takes nothing returns nothing
endfunction
//***************************************************************************
//*
//* Players
//*
//***************************************************************************
function InitCustomPlayerSlots takes nothing returns nothing
// Player 1
call SetPlayerStartLocation( Player(1), 0 )
call ForcePlayerStartLocation( Player(1), 0 )
call SetPlayerColor( Player(1), ConvertPlayerColor(1) )
call SetPlayerRacePreference( Player(1), RACE_PREF_NIGHTELF )
call SetPlayerRaceSelectable( Player(1), false )
call SetPlayerController( Player(1), MAP_CONTROL_USER )
// Player 2
call SetPlayerStartLocation( Player(2), 1 )
call ForcePlayerStartLocation( Player(2), 1 )
call SetPlayerColor( Player(2), ConvertPlayerColor(2) )
call SetPlayerRacePreference( Player(2), RACE_PREF_NIGHTELF )
call SetPlayerRaceSelectable( Player(2), false )
call SetPlayerController( Player(2), MAP_CONTROL_USER )
// Player 3
call SetPlayerStartLocation( Player(3), 2 )
call ForcePlayerStartLocation( Player(3), 2 )
call SetPlayerColor( Player(3), ConvertPlayerColor(3) )
call SetPlayerRacePreference( Player(3), RACE_PREF_NIGHTELF )
call SetPlayerRaceSelectable( Player(3), false )
call SetPlayerController( Player(3), MAP_CONTROL_USER )
// Player 4
call SetPlayerStartLocation( Player(4), 3 )
call ForcePlayerStartLocation( Player(4), 3 )
call SetPlayerColor( Player(4), ConvertPlayerColor(4) )
call SetPlayerRacePreference( Player(4), RACE_PREF_NIGHTELF )
call SetPlayerRaceSelectable( Player(4), false )
call SetPlayerController( Player(4), MAP_CONTROL_USER )
// Player 5
call SetPlayerStartLocation( Player(5), 4 )
call ForcePlayerStartLocation( Player(5), 4 )
call SetPlayerColor( Player(5), ConvertPlayerColor(5) )
call SetPlayerRacePreference( Player(5), RACE_PREF_NIGHTELF )
call SetPlayerRaceSelectable( Player(5), false )
call SetPlayerController( Player(5), MAP_CONTROL_USER )
// Player 7
call SetPlayerStartLocation( Player(7), 5 )
call ForcePlayerStartLocation( Player(7), 5 )
call SetPlayerColor( Player(7), ConvertPlayerColor(7) )
call SetPlayerRacePreference( Player(7), RACE_PREF_UNDEAD )
call SetPlayerRaceSelectable( Player(7), false )
call SetPlayerController( Player(7), MAP_CONTROL_USER )
// Player 8
call SetPlayerStartLocation( Player(8), 6 )
call ForcePlayerStartLocation( Player(8), 6 )
call SetPlayerColor( Player(8), ConvertPlayerColor(8) )
call SetPlayerRacePreference( Player(8), RACE_PREF_UNDEAD )
call SetPlayerRaceSelectable( Player(8), false )
call SetPlayerController( Player(8), MAP_CONTROL_USER )
// Player 9
call SetPlayerStartLocation( Player(9), 7 )
call ForcePlayerStartLocation( Player(9), 7 )
call SetPlayerColor( Player(9), ConvertPlayerColor(9) )
call SetPlayerRacePreference( Player(9), RACE_PREF_UNDEAD )
call SetPlayerRaceSelectable( Player(9), false )
call SetPlayerController( Player(9), MAP_CONTROL_USER )
// Player 10
call SetPlayerStartLocation( Player(10), 8 )
call ForcePlayerStartLocation( Player(10), 8 )
call SetPlayerColor( Player(10), ConvertPlayerColor(10) )
call SetPlayerRacePreference( Player(10), RACE_PREF_UNDEAD )
call SetPlayerRaceSelectable( Player(10), false )
call SetPlayerController( Player(10), MAP_CONTROL_USER )
// Player 11
call SetPlayerStartLocation( Player(11), 9 )
call ForcePlayerStartLocation( Player(11), 9 )
call SetPlayerColor( Player(11), ConvertPlayerColor(11) )
call SetPlayerRacePreference( Player(11), RACE_PREF_UNDEAD )
call SetPlayerRaceSelectable( Player(11), false )
call SetPlayerController( Player(11), MAP_CONTROL_USER )
endfunction
function InitCustomTeams takes nothing returns nothing
// Force: TRIGSTR_50002
call SetPlayerTeam( Player(1), 0 )
call SetPlayerTeam( Player(2), 0 )
call SetPlayerTeam( Player(3), 0 )
call SetPlayerTeam( Player(4), 0 )
call SetPlayerTeam( Player(5), 0 )
// Force: TRIGSTR_50003
call SetPlayerTeam( Player(7), 1 )
call SetPlayerTeam( Player(8), 1 )
call SetPlayerTeam( Player(9), 1 )
call SetPlayerTeam( Player(10), 1 )
call SetPlayerTeam( Player(11), 1 )
endfunction
function InitAllyPriorities takes nothing returns nothing
call SetStartLocPrioCount( 0, 5 )
call SetStartLocPrio( 0, 0, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 1, 2, MAP_LOC_PRIO_LOW )
call SetStartLocPrio( 0, 2, 3, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 3, 4, MAP_LOC_PRIO_LOW )
call SetStartLocPrio( 0, 4, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 1, 1 )
call SetStartLocPrio( 1, 0, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 2, 1 )
call SetStartLocPrio( 2, 0, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 3, 1 )
call SetStartLocPrio( 3, 0, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 4, 2 )
call SetStartLocPrio( 4, 0, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 4, 1, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 5, 3 )
call SetStartLocPrio( 5, 0, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 1, 8, MAP_LOC_PRIO_LOW )
call SetStartLocPrio( 5, 2, 9, MAP_LOC_PRIO_LOW )
call SetStartLocPrioCount( 6, 3 )
call SetStartLocPrio( 6, 0, 5, MAP_LOC_PRIO_LOW )
call SetStartLocPrio( 6, 1, 8, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 6, 2, 9, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 7, 1 )
call SetStartLocPrio( 7, 0, 3, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 8, 1 )
call SetStartLocPrio( 8, 0, 9, MAP_LOC_PRIO_HIGH )
call SetStartLocPrioCount( 9, 1 )
call SetStartLocPrio( 9, 0, 8, MAP_LOC_PRIO_HIGH )
endfunction
//***************************************************************************
//*
//* Main Initialization
//*
//***************************************************************************
//===========================================================================
function main takes nothing returns nothing
call SetCameraBounds( -7552.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), -7936.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM), 7552.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), 7424.0 - GetCameraMargin(CAMERA_MARGIN_TOP), -7552.0 + GetCameraMargin(CAMERA_MARGIN_LEFT), 7424.0 - GetCameraMargin(CAMERA_MARGIN_TOP), 7552.0 - GetCameraMargin(CAMERA_MARGIN_RIGHT), -7936.0 + GetCameraMargin(CAMERA_MARGIN_BOTTOM) )
call SetDayNightModels( "Environment\\DNC\\DNCFelwood\\DNCFelwoodTerrain\\DNCFelwoodTerrain.mdl", "Environment\\DNC\\DNCFelwood\\DNCFelwoodUnit\\DNCFelwoodUnit.mdl" )
call SetWaterBaseColor( 0, 0, 255, 255 )
call NewSoundEnvironment( "Default" )
call SetAmbientDaySound( "FelwoodDay" )
call SetAmbientNightSound( "FelwoodNight" )
call SetMapMusic( "Music", true, 0 )
call InitBlizzard( )
call InitGlobals( )
endfunction
//***************************************************************************
//*
//* Map Configuration
//*
//***************************************************************************
function config takes nothing returns nothing
call SetMapName( "TRIGSTR_50000" )
call SetMapDescription( "TRIGSTR_50001" )
call SetPlayers( 10 )
call SetTeams( 10 )
call SetGamePlacement( MAP_PLACEMENT_TEAMS_TOGETHER )
call DefineStartLocation( 0, 6037.3, -3155.6 )
call DefineStartLocation( 1, 4564.4, 3247.0 )
call DefineStartLocation( 2, 4108.3, 4416.3 )
call DefineStartLocation( 3, 1430.1, -5740.3 )
call DefineStartLocation( 4, 6286.7, 4438.3 )
call DefineStartLocation( 5, -2457.1, 5983.3 )
call DefineStartLocation( 6, 637.7, 5940.9 )
call DefineStartLocation( 7, -89.2, -4817.1 )
call DefineStartLocation( 8, 1508.9, 3972.2 )
call DefineStartLocation( 9, 819.1, 3371.4 )
// Player setup
call InitCustomPlayerSlots( )
call InitCustomTeams( )
call InitAllyPriorities( )
endfunction