Though directly related to my scenario, a SLIC question probably fits in better here.
I tried this SLIC to get a settler into every capital city every 24 turns, and I get no error messages, so far so good...
Then it doesn't work - no settlers, no errors, what am I doing wrong?
Any ideas?
*cough* Dale *cough*
Thanks
Ben
I tried this SLIC to get a settler into every capital city every 24 turns, and I get no error messages, so far so good...
Then it doesn't work - no settlers, no errors, what am I doing wrong?
Code:
HandleEvent(beginturn) 'settlercount' pre{ int_t SettlerCount; city_t tmpCity; int_t i; (SettlerCount = SettlerCount + 1); if(SettlerCount == 3){ for(i = 0; i < 8; i = i + 1){ //how do I get "number of players" instead of 8 ? if(isplayeralive(i)){ tmpCity = player[i].capital; createunit(player[i], UnitDB(UNIT_SETTLER), tmpCity.location, 0); } } settlercount = 0; } }
*cough* Dale *cough*
Thanks
Ben
Comment