• 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.

gigau

Imperare Orbis Universi
Moderator
218 Badges
May 4, 2005
43.560
8.243
47
www.twitch.tv
  • Imperator: Rome Deluxe Edition
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • Victoria 3 Sign Up
  • Hearts of Iron IV: Colonel
  • Stellaris: Galaxy Edition
  • 200k Club
  • 500k Club
  • Paradox Order
  • PDXCON 2017 Gold Ticket holder
  • PDXCON 2018 "The Emperor"
  • PDXCon 2019 "King"
  • PDXCon 2017 Awards Winner
I'm having problems (like many, i know) with my AI not doing much, especially in colonization. I edited a save file setting the inflations of all nations to 0.000 (except mine). Changed some AI settings... and POP... i got many little settlers leaving capitals everywhere.

So i wanted to write a little sery of event so that every 25 or 50 years, the inflation level of AI nations are set back to 0.000.... to help the AI.

Code:
event = {

	id = 200006
	trigger = {
		ai = yes
	}
	random = no
	name = "Helping the AI"
	desc = "Lowering the inflation level"
	style = 1

	date = { day = 1 month = january year = 1800 }

	action_a = {
		name = "Good for them"
		command = { type = inflation value = -25 }
	}
}



The event fired for me... and i think not for any AI nations.... what did i do wrong ?

Thanks in advance

Gigau
 

Third Angel

Mad Medievalist
48 Badges
Feb 8, 2005
2.372
53
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Pre-order
  • For The Glory
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Holy Knight (pre-order)
  • Deus Vult
When an event has no specified tag or province, it fires only for the human player when the trigger is met for at least one country.

To have this work properly, you would have to write specific events for each tag. This would be a lot of work, but maybe you could make them for big colonizers only: POR, SPA, ENG, FRA and HOL.
 

gigau

Imperare Orbis Universi
Moderator
218 Badges
May 4, 2005
43.560
8.243
47
www.twitch.tv
  • Imperator: Rome Deluxe Edition
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • Victoria 3 Sign Up
  • Hearts of Iron IV: Colonel
  • Stellaris: Galaxy Edition
  • 200k Club
  • 500k Club
  • Paradox Order
  • PDXCON 2017 Gold Ticket holder
  • PDXCON 2018 "The Emperor"
  • PDXCon 2019 "King"
  • PDXCon 2017 Awards Winner
Third Angel said:
When an event has no specified tag or province, it fires only for the human player when the trigger is met for at least one country.

Ooops :p i didn't know that. More used to writing events in CK rather than in EU2... :D


Third Angel said:
To have this work properly, you would have to write specific events for each tag. This would be a lot of work, but maybe you could make them for big colonizers only: POR, SPA, ENG, FRA and HOL.


I'll try that. Thanks a lot. :)