The Altera Centauri collection has been brought up to date by Darsnan. It comprises every decent scenario he's been able to find anywhere on the web, going back over 20 years.
25 themes/skins/styles are now available to members. Check the select drop-down at the bottom-left of each page.
Call To Power 2 Cradle 3+ mod in progress: https://apolyton.net/forum/other-games/call-to-power-2/ctp2-creation/9437883-making-cradle-3-fully-compatible-with-the-apolyton-edition
Originally posted by Immortal Wombat
Would triggering a STOP on the CreateImprovement event also stop the event which is supposed to create the wonder?
Yes without further modifications. But you could use a global variable if it is set to 0 then the tile improvement can't be build, if it is set to 1 it can be build. So in the event that should build the wonder improvement it will be set to 1 and afterwards to 0 again. But actual I think giving and removing the enabling advance is the way to, because the AI will try only to build the wonder improvments instead of the real ones, so in the end it wouldn't build anything.
If I gave it an insanely high PW cost, would the AI save up for it, or build cheaper ones?
Concrete, Abstract, or Squoingy? "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Originally posted by Immortal Wombat
If I gave it an insanely high PW cost, would the AI save up for it, or build cheaper ones?
You could try it but I think the AI will save up for the best tile improvements that are available. I never saw an AI building roads when it was able to build railroads, the same is true for all the other tileimprovements.
Yeah, good point. It'll have to be the advances then
Concrete, Abstract, or Squoingy? "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Uhm, why don't you just give all the TileImps an advance as prerequisite that's impossible to research (i.e. has itself as prerequisite or is disabled with the mod_* SLIC function)?
Concrete, Abstract, or Squoingy? "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Concrete, Abstract, or Squoingy? "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Originally posted by Locutus
Uhm, why don't you just give all the TileImps an advance as prerequisite that's impossible to research (i.e. has itself as prerequisite or is disabled with the mod_* SLIC function)?
what are the variables for the mod_CanPlayerHaveAdvance function?
(int_t, ) ???
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!" -Jean Rostand
Concrete, Abstract, or Squoingy? "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Did I mention, the wonder code should work - provided when you test it, you don't complete two wonders on consecutive turns. Otherwise the TI isn't built properly, and problems occur.
Concrete, Abstract, or Squoingy? "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Ah. You appear to have prevented any player from having any advance. Put the two if() statements the other way around, replace the second 0 with a 1, and you got it.
But you don't need it really. SubNeural ads can never be researched anyway, and you just need the RemoveAdvance function in a different handler at the end of that turn to make it work.
Set up a player array as a switch, eg:
Code:
int_t IsPlayerExpanding[];
// In the expandcity function
if(sucess == 1){
IsPlayerExpanding[owner] = 1;
}
// and then later...
HandleEvent(endturn) 'remove_ads' pre{
int_t i;
for(i=0; i < preference("NumPlayers"); i = i + 1){ // or whatever
if(IsPlayerExpanding[i] == 1){
RemoveAdvance(i, AdvanceDB(ADVANCE_SUBNEURAL_ADS));
IsPlayerExpanding[i] = 0;
}
}
}
or something
Concrete, Abstract, or Squoingy? "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Comment