 |
|
Maquiladora
|
|
Ive changed my mind on that telling the units where to move thing. I think itll produce a very rigid scenario so ill just stick to spawning units at random. Thanks though Martin.
|
|
|  |
 |
|
Maquiladora
|
|
Okay its back to the grind just one question this time.
I want to create units buildable by each city, now ive got ALOT of cities and i want to know how to reference many cities in one piece of code, okay it sounds confusing, thats just cause im confused.
code:
GetCityByLocation(alexandriaLoc, tmpCity);
if (CityIsValid(tmpCity)) {
if (tmpCity.owner == 1) {
if (theUnit == UnitDB(UNIT_CHURCHILL_TANK) ||
theUnit == UnitDB(UNIT_VALENTINE_TANK) ||
theUnit == UnitDB(UNIT_MOSQUITO) ||
theUnit == UnitDB(UNIT_SPITFIRE) ||
theUnit == UnitDB(UNIT_LIGHT_TANK) ||
theUnit == UnitDB(UNIT_FIELD_ARTILLERY) ||
theUnit == UnitDB(UNIT_AA_ARTILLERY) ||
theUnit == UnitDB(UNIT_MOTORIZED_INFANTRY)) {
return 1;
} else {
return 0;
}
}
}
Okay how do i define alot of cities to build these particualr units in one piece? Obviously because i dont want to pour out this code for every city. Help is greatly appreciated.
|
|
|  |
 |
|
Maquiladora
|
|
thanks IW
Okay so uploaded weighs in at about 8.1Mb thats about the smallest i could get it without zipping every folder, and its not a completed scenario for anyone scanning this. Theres all the planning crap i did aswell in there, like what sprite is what and screenshots of each.
http://ctpmodmakers.250free.com/Maq...ww2scen_wip.rar
|
|
|  |
 |
|
Maquiladora
|
|
Forgot to mention that it doesnt need any mods to run, just patched ctp2, extract to scenario folder.
Not much slic in there, nothing new at all, in fact its abit dodgy last time i tried it but nothing exe crashable.
New things noticeable in it -
-- china city style from civ 2 (looks better than you would expect but could look better)
-- new watch tower graphic (taken from sudden strike omaha beach map)
-- a few altered tiles to make it look abit more grim
-- new farm and adv farm tile imps
-- city styles relevant to area on map, ie british cities in india have a [i]kind of[i/] indian style, rather than european style (took me a while to figure out how to do that)
thats about it.
|
|
|  |
 |
|
Maquiladora
|
|
Does anyone know why i cant download anything from the ctpmodmakers.250free site?
quote: Due to an inordinate amount of abuse, visitors to
this free account from your region or
country have been restricted. |
Thats sounds a little vague.
|
|
|  |
 |
|
Maquiladora
|
|
Its working from the link above aswell now, odd.
|
|
|  |
All times are GMT. The time now is 05:24. Apolyton Time is 00:24. |
top of page
|
| archivepost |
|
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
|
|
|
|
|
|