 |
|  |
 |
|
Grandpa Troll

|
 |
I owe..I owe..it's off to work I go
Jul 2000 time: 00:35
|
|
This allows each city built 4 tanks once you discover tank advance
code:
trigger 'SpawnTank' when (player.1 && discovery.type == 55) { // 55 = tank warfare
i = 0;
while (i < player.1.cities) { // loop through all cities
SetCityByIndex(1, player.1, i);
CreateUnit(player.1, UnitType("UNIT_TANK"), city.location, 0); // create a tank
i = i + 1;
CreateUnit(player.1, UnitType("UNIT_TANK"), city.location, 0); // create a tank
CreateUnit(player.1, UnitType("UNIT_TANK"), city.location, 0); // create a tank
CreateUnit(player.1, UnitType("UNIT_TANK"), city.location, 0); // create a tank
}
}
Last edited by Grandpa Troll on 13-04-2004 at 03:46
|
|
|  |
 |
|
Grandpa Troll

|
 |
I owe..I owe..it's off to work I go
Jul 2000 time: 00:35
|
|
This allows 4 Marines in each city built once you discover Mass Production
code:
trigger 'SpawnMarines' when (player.1 && discovery.type == 59) { // 59 = Mass Production
i = 0;
while (i < player.1.cities) { // loop through all cities
SetCityByIndex(1, player.1, i);
CreateUnit(player.1, UnitType("UNIT_MARINES"), city.location, 0); // create a marine
i = i + 1;
CreateUnit(player.1, UnitType("UNIT_MARINES"), city.location, 0); // create a marine
CreateUnit(player.1, UnitType("UNIT_MARINES"), city.location, 0); // create a marine
CreateUnit(player.1, UnitType("UNIT_MARINES"), city.location, 0); // create a marine
}
}
Last edited by Grandpa Troll on 13-04-2004 at 03:46
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:35. Apolyton Time is 00:35. |
top of page
|
|
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|