City State and Adding a Player

S3rgeus

Emperor
Joined
Apr 10, 2011
Messages
1,270
Location
London, United Kingdom
I've got two somewhat separate tasks that are eluding me right now:

I'm trying to create a CityState that goes to war with everyone it meets, and I've found that I can get it to declare war, but not permanent war. (Otherwise any major civ it goes to war with will just make peace right away.) I see SetPermanentWar() and other related functions, but haven't been able to get them to work. Also, the TeamMeet GameEvent doesn't seem to fire for me; has anyone else gotten that working?

Second task:

I'm trying to add a second civilization that functions in the same sort of way as the Barbarians. (With some differences, otherwise I'd just use the barbarian civ) But basically, no cities, just units, at constant war with everyone, and trying to burn down/kill everything it finds. But whenever I use the AddPlayer() function to try to get it started, I lose the game. o.O I'm clearly using the AddPlayer function incorrectly; can someone explain how you use it? (I've looked up the argument list on the wiki, and I'm not 100% sure on what the first argument should be: "PlayerTypes eNewPlayer")
 
Iceco said:
For the first, have you tried letting the major civ declare permanent war on the minor one?

I've tried, but they only ever declare a normal war with the DeclareWar function and so they make peace a few turns later. The SetPermanentWarPeace function (which is confusingly named? o.O) doesn't seem to have any effect on their decisions.

SamBC said:
Doesn't the permanent war mechanic for city-states have them all act together?

Yeah, it's usually them banding together against someone who's attacking city states. I've seen single city states declare permanent war before, but that might have been because all of the others were allied with existing civilizations, so wouldn't join them. I did accidently cause a permanent war last time I was testing by having a major civ declare war against several minor civs to test the function arguments, but it caused a war with several acting together, not just the one I was targetting.
 
Back
Top Bottom