]> git.pond.sub.org Git - empserver/blob - tests/retreat/setup-POGO
tests: Wean off deprecated retreat syntax
[empserver] / tests / retreat / setup-POGO
1 || create land
2 desi @0,0:2 a
3 desi 4,4 h
4 des -6,2 h
5 give c * ?des#. 100
6 || country#1
7 add 1 1 1 p
8 edit l * ?des#.&xloc>-6&xloc<0 o 1 O 1
9 desi -2,0 c
10 edit c 1 c -2,0 s 4 b 640 M 25000 T 100
11 | two forts (-2,-2 with return fire, -2,2 without)
12 desi -2,2 f
13 desi -2,-2 f
14 | harbor
15 desi -3,1 h
16 | ships for testing retreat command
17 build s -3,1 lc 5
18 edit s 4 L -5,1 U 7
19 | fleet a defined below
20 | ship to drop depth charges
21 build s -3,1 dd
22 edit s 5 g 1 s 40
23 | ship to launch torpedoes
24 build s -3,1 sb
25 edit s 6 T 165 L -1,3 g 1 s 36
26 | complete the ships
27 edit s * ?own#0 E 100 M 127 m 10
28 | p-bombers with 50% hit chance vs. dd in port
29 build p -2,2 lb 5
30 | marine missiles acc 50
31 edit p 0 U 10 T mi t 160 U 11 U 12 U 13 U 14
32 | p-bombers with 50% hit chance vs. cav
33 edit p 0 U 20 t 400 U 21 U 22 U 23 U 24
34 | very accurate p-bombers
35 edit p 0 U 30 T ac t 400 U 31
36 | complete the planes
37 edit p * ?own#0 e 100 m 127
38 | land units for testing retreat command
39 build l -3,1 inf 5
40 edit u 4 L -4,0 U 7
41 | army a defined below
42 | complete the land units
43 edit u * ?own#0 e 100 M 127 m 10
44 || country#2
45 add 2 2 2 p
46 edit l * ?des#.&own=0 o 2 O 2
47 | mountain, to test "can't retreat into mountain"
48 desi 2,0 ^
49 edit c 2 c 2,0 s 4 b 640 M 25000 T 100
50 | a city for testing canals
51 desi 4,0 c
52 | harbors, 0,2 efficient, 2,2 construction zone
53 desi 0:2,2 h
54 edit l 2,2 e 1
55 | a bit of rail
56 desi 0,-2 +
57 | ship that can return fire to -2,-2 and -5,-1 weakly
58 edit s 5 U 9 O 2 L -4,-2 E 60
59 | a train to carry land units
60 edit u 0 U 9 O 2 T tra L 0,2
61 | target ships gun fire: injured, helpless, not helpless
62 edit s 0 U 20 O 2 U 10 L 0,2 U 11
63 retr 10 nhhnj ih
64 retr 11 n h
65 retr 20 u h
66 | crazy group retreat
67 edit s 10 U 25 L -4,2 U 26 U 27 U 28 U 29 L 5,3
68 edit s 25 U 24 O 1
69 fleet g 24/25/26/27/28/29
70 retr g ggg i
71 retr 26 bn i
72 retr g ?uid=27 bn i
73 retr g ?uid=28 ggg b
74 retr g ?uid=29 ggg i
75 | target ships that want to retreat, but can't:
76 | sunk
77 edit s 10 U 30 E 20
78 | in canal
79 edit s 10 U 31 L 4,0
80 | crewless
81 edit s 10 U 32 m 0
82 | in construction zone
83 edit s 10 U 33 L 2,2
84 | landlocked in 3,1
85 edit s 10 U 34 L 3,1
86 | no mobility
87 edit s 10 U 35 M 0
88 | on sale
89 edit s 10 U 36
90 | set as POGO doesn't work, done in setup-2
91 fleet c 30/32/35/36
92 retr c n i
93 retr 31/33/34 n i
94 | target ships having difficulties during retreat:
95 edit s 10 U 40 U 41 U 42
96 | runs out of mobility
97 edit s 40 M 5
98 retr 40 nnnnh i
99 | into construction zone 2,2
100 retr 41 nuh i
101 | into unfriendly -3,1
102 edit s 42 L -4,2
103 retr 42 ugggh i
104 | as group into minefield -6,4
105 edit s 10 U 43 t ms U 44
106 fleet m 43/44
107 edit s m L -4,4
108 edit l -6,4 M 100
109 retr m gg i
110 | into canal 4,0
111 edit s 10 U 46 L 5,1 U 47 t pt
112 fleet n 46/47
113 retr n y i
114 | missions for retreat to clear
115 | (not all ships can perform missions)
116 miss s * ?own=2&uid#9 int .
117 | target ships depth-charges: injured vs. depth-charged, depth-charged,
118 | helpless, not helpless
119 edit s 10 U 50 t sb L -5,1 U 51 U 52 U 53 L -4,-2
120 retr 50 gg dih
121 retr 51 gg dh
122 retr 52/53 gg h
123 | target ships bombs: injured vs. bombed, bombed
124 | five of each, to have a decent chance at getting both a hit and a miss
125 edit s 10 U 60 t dd L -6,2 U 61 U 62 U 63 U 64 U 65 U 66 U 67 U 68 U 69
126 retr 60/61/62/63/64 nn bih
127 retr 65/66/67/68/69 nn bh
128 | target ships missiles: injured (bombed doesn't apply)
129 | five, to have a decent chance at getting both a hit and a miss
130 edit s 60 U 80 L -6,2 U 81 U 82 U 83 U 84
131 retr 80/81/82/83/84 nn bih
132 | target ships torpedoes: torpedoed (injured not implemented)
133 | five, to have a decent chance at getting both a hit and a miss
134 edit s 10 U 100 L 0,4 U 101 U 102 U 103 U 104
135 retr 100/101/102/103/104 nn tih
136 | target ship sonar
137 edit s 50 U 120
138 retr 120 gg s
139 | target ship boarding
140 edit s 50 U 130 t tt
141 retr 130 gg u
142 | target land units bombs: bombed
143 edit u 9 U 10 T cav L 1,1
144 lret 10 jhhuy b
145 | crazy group retreat
146 edit u 10 U 25 L 3,1 a g U 26 U 27 U 28 U 29 L 4,0
147 edit u 25 U 24 O 1
148 army g 24/25/26/27/28/29
149 lret g bhg b
150 lret 26 uh b
151 lret g ?uid=27 uh b
152 lret g ?uid=28 bhg i
153 lret g ?uid=29 bhg b
154 | target land units that want to retreat, but can't:
155 | destroyed
156 edit u 10 U 30 L 0,2 e 10
157 | loaded on ship
158 edit u 10 U 31 L 0,2 S 35
159 | crewless
160 edit u 10 U 32 L 0,2 m 0
161 | kidnapped
162 edit u 10 U 33 L -1,1
163 | loaded on train
164 edit u 10 U 34 L 0,2 Y 9
165 | no mobility
166 edit u 10 U 35 L 0,2 M 0
167 | on sale
168 edit u 10 U 36 L 0,2
169 | set as POGO doesn't work, done in setup-2
170 | no rail in 1,1
171 edit u 10 U 37 T tra
172 army c 30/31/32/34/35/36
173 lret c j b
174 lret 33/37 j b
175 | target land units having difficulties during retreat:
176 | runs out of mobility
177 edit u 10 U 40 M 5
178 lret 40 nu b
179 | into mountain 2,0
180 edit u 10 U 41
181 lret 41 jy b
182 | into foreign sector -1,1
183 edit u 10 U 42
184 lret 42 g b
185 | as group into minefield 0,0
186 edit u 10 U 10 U 43 T eng U 44
187 army m 43/44
188 edit l 0,0 O 1 M 100
189 lret m yu b
190 | into 0,0 no rail
191 edit u 10 U 45 T tra L 0,-2
192 | non-train retreating with train
193 edit u 10 U 46 L 0,-2
194 army t 45/46
195 lret t nb b
196 | into foreign X,Y
197 edit u 10 U 47 L 1,-1 U 48 T spy
198 army s 47/48
199 lret s gh b
200 | missions and fortification for retreat to clear
201 | (not all land units can perform missions)
202 miss l * ?own=2 res .
203 edit u * ?own=2 F 127
204 | target land units bombs: injured vs. bombed
205 | five, to have a decent chance at getting both a hit and a miss
206 edit u 10 U 60 L 0,0 U 61 U 62 U 63 U 64
207 lret 60/61/62/63/64 nj bih
208 || country#3, allied to #2
209 add 3 3 3 p
210 edit l 2:3,-2:-1 o 3 O 3
211 || country#4, friendly to #2
212 add 4 4 4 p
213 edit l 4,4 o 4 O 4
214 || finishing touches
215 give m * ?des=f 5
216 give g * ?des=f 2
217 give s * ?des=f 100
218 give p * ?des=f 100
219 edit l * ?des#.&eff=0 e 100 m 127
220 fleet a 0/1/3/4
221 army a 0/1/3/4
222 || relations
223 decl w 1 2
224 decl w 2 1
225 decl a 2 3
226 decl f 2 4
227 || show initial state here to help maintainers
228 map *
229 cens * ?des#.
230 ship *
231 retr * q
232 land *
233 lret * q
234 plane *