Page 1 of 1

Disasters and AI

Posted: Fri Jul 10, 2026 8:48 pm
by FriendAtArms
While I finish updating my custom ruleset from v2.6 to v3.0, I may as well post my latest question.

Disasters in my ruleset are disabled by certain improvements. But the AI never actually builds these improvements, so most of their cities get taken out by disasters.

While I'm open to other suggestions, the only solution I can think of is disabling disasters for AI players, at all difficulties above Handicapped. But I don't want the disaster disabled for human players! Would it work to format the requirements like this?
reqs =
{ "type", "name", "range", "present"
"Building", "[insert relevant improvement]", "City", FALSE
"AI", "Handicapped", "Player", TRUE
}
(Of course, if there's a better way to solve the basic problem, I'm all ears.)

Re: Disasters and AI

Posted: Sat Jul 11, 2026 4:51 am
by John Campbell
FriendAtArms wrote: Fri Jul 10, 2026 8:48 pm While I finish updating my custom ruleset from v2.6 to v3.0, I may as well post my latest question.

Disasters in my ruleset are disabled by certain improvements. But the AI never actually builds these improvements, so most of their cities get taken out by disasters.

While I'm open to other suggestions, the only solution I can think of is disabling disasters for AI players, at all difficulties above Handicapped. But I don't want the disaster disabled for human players! Would it work to format the requirements like this?
reqs =
{ "type", "name", "range", "present"
"Building", "[insert relevant improvement]", "City", FALSE
"AI", "Handicapped", "Player", TRUE
}
(Of course, if there's a better way to solve the basic problem, I'm all ears.)
That'll enable it only for Handicapped AIs, so disable it for all other AI levels and for humans, I think what you want is something like:

Code: Select all

reqs =
    { "type", "name", "range", "present"
      "Building", "[insert relevant improvement]", "City", FALSE
      "AI", "Easy", "Player", FALSE
      "AI", "Normal", "Player", FALSE
      "AI", "Hard", "Player", FALSE
      "AI", "Cheating", "Player", FALSE
      [... etc, for all AI levels other than "Handicapped", I forget what they all are, I always play with Hard...]
    }