Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 54991 | Differences between
and this patch

Collapse All | Expand All

(-)wargusbaseunpatched/wargus-2.1/scripts/ai/campaign.lua (-16 / +22 lines)
Lines 26-32 Link Here
26
--      along with this program; if not, write to the Free Software
26
--      along with this program; if not, write to the Free Software
27
--      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
--      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
--
28
--
29
--      $Id: campaign.lua,v 1.4 2004/04/26 01:16:18 jsalmon3 Exp $
29
--      $Id: campaign.lua,v 1.8 2005/04/18 17:26:23 jsalmon3 Exp $
30
30
31
--=============================================================================
31
--=============================================================================
32
--  This AI script builds only workers and tankers and oil platform.
32
--  This AI script builds only workers and tankers and oil platform.
Lines 92-101 Link Here
92
    function() return AiSet(AiTanker(), 1) end,
92
    function() return AiSet(AiTanker(), 1) end,
93
    function() return AiWait(AiWorker()) end,
93
    function() return AiWait(AiWorker()) end,
94
    function() return AiNeed(AiPlatform()) end,
94
    function() return AiNeed(AiPlatform()) end,
95
    function() return AiForce(0, {AiDestroyer(), 2, AiSoldier(), 3, AiShooter(), 4, AiTransporter(), 4}) end,
95
	function() return AiSet(AiTransport(), 4) end,
96
    function() return AiForce(1, {AiDestroyer(), 2, AiSoldier(), 3, AiShooter(), 4, AiTransporter(), 4}) end,
96
    function() return AiForce(0, {AiDestroyer(), 2, AiSoldier(), 3, AiShooter(), 4}) end,
97
    function() return AiForce(1, {AiDestroyer(), 2, AiSoldier(), 3, AiShooter(), 4}) end,
97
    function() return AiSleep(27000) end,
98
    function() return AiSleep(27000) end,
98
    function() return AiForce(1, {AiDestroyer(), 4, AiSoldier(), 10, AiShooter(), 8, AiTransporter(), 6}) end,
99
	function() return AiSet(AiTransport(), 6) end,
100
    function() return AiForce(1, {AiDestroyer(), 4, AiSoldier(), 10, AiShooter(), 8}) end,
99
    function() return AiSleep(22000) end,
101
    function() return AiSleep(22000) end,
100
    function() return AiSleep(22000) end,
102
    function() return AiSleep(22000) end,
101
    function() return AiSleep(18000) end,
103
    function() return AiSleep(18000) end,
Lines 166-177 Link Here
166
    function() return AiSet(AiTransporter(), 1) end,
168
    function() return AiSet(AiTransporter(), 1) end,
167
    function() return AiWait(AiWorker()) end,
169
    function() return AiWait(AiWorker()) end,
168
    function() return AiNeed(AiPlatform()) end,
170
    function() return AiNeed(AiPlatform()) end,
169
    function() return AiForce(0, {AiDestroyer(), 3, AiSoldier(), 4, AiShooter(), 3, AiTransporter(), 2}) end,
171
    function() return AiForce(0, {AiDestroyer(), 3, AiSoldier(), 4, AiShooter(), 3}) end,
172
	function() return AiSet(AiTransporter(), 3) end,
170
    function() return AiSleep(3000) end,
173
    function() return AiSleep(3000) end,
171
    function() return AiSleep(4000) end,
174
    function() return AiSleep(4000) end,
172
    function() return AiSleep(4000) end,
175
    function() return AiSleep(4000) end,
173
    function() return AiSleep(12000) end,
176
    function() return AiSleep(12000) end,
174
    function() return AiForce(0, {AiDestroyer(), 4, AiSoldier(), 12, AiShooter(), 4, AiTransporter(), 4}) end,
177
    function() return AiForce(0, {AiDestroyer(), 4, AiSoldier(), 12, AiShooter(), 4}) end,
178
	function() return AiSet(AiTransporter(), 7) end,
175
    function() return AiSleep(14000) end,
179
    function() return AiSleep(14000) end,
176
    function() return AiSleep(12000) end,
180
    function() return AiSleep(12000) end,
177
    function() return AiLoop(hum_05_loop_funcs, hum_05_loop_pos) end,
181
    function() return AiLoop(hum_05_loop_funcs, hum_05_loop_pos) end,
Lines 254-260 Link Here
254
local hum_08_loop_funcs = {
258
local hum_08_loop_funcs = {
255
    function() print("Looping !") return false end,
259
    function() print("Looping !") return false end,
256
    function() return AiSleep(16000) end,
260
    function() return AiSleep(16000) end,
257
    function() return AiForce(0, {AiSoldier(), 1, AiShooter(), 4, AiCavalry(), 3, AiCatapult, 1}) end,
261
    function() return AiForce(0, {AiSoldier(), 1, AiShooter(), 4, AiCavalry(), 3, AiCatapult(), 1}) end,
258
    function() return AiSleep(14000) end,
262
    function() return AiSleep(14000) end,
259
    function() return AiSleep(12000) end,
263
    function() return AiSleep(12000) end,
260
    function() hum_08_loop_pos[player] = 0; return false end,
264
    function() hum_08_loop_pos[player] = 0; return false end,
Lines 270-281 Link Here
270
    function() return AiSleep(10000) end,
274
    function() return AiSleep(10000) end,
271
    function() return AiSleep(15000) end,
275
    function() return AiSleep(15000) end,
272
    function() return AiResearch(AiUpgradeCavalryMage()) end,
276
    function() return AiResearch(AiUpgradeCavalryMage()) end,
273
    function() return AiResearch(AiCavalryMageSpell1) end,
277
    function() return AiResearch(AiCavalryMageSpell1()) end,
274
    function() return AiResearch(AiUpgradeMissile1) end,
278
    function() return AiResearch(AiUpgradeMissile1()) end,
275
    function() return AiForce(0, {AiSoldier(), 2, AiShooter(), 5, AiCavalry(), 4, AiCatapult(), 1}) end,
279
    function() return AiForce(0, {AiSoldier(), 2, AiShooter(), 5, AiCavalry(), 4, AiCatapult(), 1}) end,
276
    function() return AiSleep(15000) end,
280
    function() return AiSleep(15000) end,
277
    function() return AiResearch(AiUpgradeWeapon1) end,
281
    function() return AiResearch(AiUpgradeWeapon1()) end,
278
    function() return AiResearch(AiUpgradeArmor1) end,
282
    function() return AiResearch(AiUpgradeArmor1()) end,
279
    function() return AiSleep(21000) end,
283
    function() return AiSleep(21000) end,
280
    function() return AiResearch(AiUpgradeEliteShooter()) end,
284
    function() return AiResearch(AiUpgradeEliteShooter()) end,
281
    function() return AiSleep(12000) end,
285
    function() return AiSleep(12000) end,
Lines 314-320 Link Here
314
    function() print("Looping !") return false end,
318
    function() print("Looping !") return false end,
315
    function() return AiSleep(5000) end,
319
    function() return AiSleep(5000) end,
316
    function() return AiForce(0, {AiSoldier(), 4, AiShooter(), 4, AiCavalry(), 4,
320
    function() return AiForce(0, {AiSoldier(), 4, AiShooter(), 4, AiCavalry(), 4,
317
	    AiCatapult(), 1, AiTransporter(), 1}) end,
321
	    AiCatapult(), 1}) end,
322
	function() return AiSet(AiTransporter(), 1) end,
318
    function() return AiSleep(6000) end,
323
    function() return AiSleep(6000) end,
319
    function() return AiForce(0, {AiDestroyer(), 3, AiBattleship(), 1}) end,
324
    function() return AiForce(0, {AiDestroyer(), 3, AiBattleship(), 1}) end,
320
    function() return AiSleep(5000) end,
325
    function() return AiSleep(5000) end,
Lines 333-350 Link Here
333
    function() return AiWait(AiWorker()) end,
338
    function() return AiWait(AiWorker()) end,
334
339
335
    function() return AiSet(AiTransporter(), 1) end,
340
    function() return AiSet(AiTransporter(), 1) end,
336
    function() return AiForce(0, {AiDestroyer(), 2, AiTransporter(), 1}) end,
341
    function() return AiForce(0, {AiDestroyer(), 2}) end,
337
    function() return AiSleep(6000) end,
342
    function() return AiSleep(6000) end,
338
    function() return AiForce(0, {AiSoldier(), 4, AiShooter(), 4,
343
    function() return AiForce(0, {AiSoldier(), 4, AiShooter(), 4,
339
	    AiDestroyer(), 2, AiTransporter(), 1}) end,
344
	    AiDestroyer(), 2}) end,
340
345
341
    function() return AiResearch(AiUpgradeCavalryMage()) end,
346
    function() return AiResearch(AiUpgradeCavalryMage()) end,
342
    function() return AiResearch(AiCavalryMageSpell1()) end,
347
    function() return AiResearch(AiCavalryMageSpell1()) end,
343
    function() return AiResearch(AiMageSpell1()) end,
348
    function() return AiResearch(AiMageSpell1()) end,
344
    function() return AiResearch(AiMageSpell2()) end,
349
    function() return AiResearch(AiMageSpell2()) end,
345
    function() return AiResearch(AiUpgradeMissile1()) end,
350
    function() return AiResearch(AiUpgradeMissile1()) end,
346
351
 
347
    function() return AiForce(0, {AiSoldier(), 4, AiShooter(), 4, AiTransporter(), 1, AiDestroyer(), 2}) end,
352
    function() return AiSet(AiTransporter(), 2) end,
353
    function() return AiForce(0, {AiSoldier(), 4, AiShooter(), 4, AiDestroyer(), 2}) end,
348
    function() return AiResearch(AiUpgradeWeapon1()) end,
354
    function() return AiResearch(AiUpgradeWeapon1()) end,
349
    function() return AiSleep(4000) end,
355
    function() return AiSleep(4000) end,
350
    function() return AiResearch(AiUpgradeArmor1()) end,
356
    function() return AiResearch(AiUpgradeArmor1()) end,

Return to bug 54991