• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

TCGM

Recruit
Oct 1, 2019
1
0
First have to say I’m a major noob when it comes to modding, although I have been able to mod a lot so far and am learning tons as I go along.

However, I’m really stumped in moving from modding events that happen to my country (the player’s country) vs AI controlled countries.

I would like to be able to create random events that affect specific AI controlled countries. For example, I’d like to create some revolutionary events where Bactria (as an AI controlled country) would rebel against it’s overlord SEL. Or Judea trying to take the entire Palestine region because they now have claims.

And because I’m such a modding noob, I need a lot of help getting started with the right syntax to get these types of events to “happen”. I say happen instead of trigger because I understand (and so for most of my custom events now) I do the actual triggering of my custom events within the random pulse in the 00_custom_on_action.

But my event for say Judea to gain cores throughout Palestine region and then actively try to wage war to take those provinces I’m struggling with. I've looked things like dhe_rome.17 where Rome gets claims in Illyria Greece for clues on how to do this but I'm still a bit perplexed as it pertains to AI controlled countries.
 
I don't know much about how to alter the ai, but I do know a bit of syntax for some of your other problems.

For example, I’d like to create some revolutionary events where Bactria (as an AI controlled country) would rebel against it’s overlord SEL.
in order to limit an event to only happen to an ai Bactria, is fairly straight forward. You just put something like this in the trigger section of a country event.
Code:
limit = {
     tag = BAC
     ai = yes
}