• 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.
Event Generator 1.2 is out!

Changelog:
Code:
Additions:
-Added facility for exporting event texts to text.csv. The generator adds a
 comment at the start of the generated events containing all the necessary
 lines for text.csv. The text.csv lines are generated in the standard format:
 EVENTNAMEXXXX, EVENTHISTXXXX, and ACTIONNAMEXXXXA/B/C/D.
 Also added a menu item to allow the user to pick the column that text will
 be generated into. (Requested by sturmvogel)
-In conjunction with the above, added support for loading events in AGCEEP
 format with texts commented after the fields. The comment immediately
 following the relevant field is assumed to be the text for it. This will not
 work well with Paradox events.

Changes:
-Comments no longer are generated with a space between the '#' and the start
 of the comment text.

Bugfixes:
-Event descriptions should now load properly.
-A few other minor fixes.

It can still be found at the usual place.

Any feedback/comments would be appreciated.
Enjoy! :)
 
New version: 1.21

Changelog:
Code:
Additions:
-It is now possible to use ${tag} and ${provid} in triggers and actions.
 When creating templates with ${tag} and ${provid} in the trigger or the
 actions, they will be replaced by garbage values in the actual templates.
 However, when loading the templates, the garbage values should be
 automatically replaced by the correct macros, so this should be invisible
 to the user.
-Added data files for Interregnum in Data/Interregnum. They can be enabled by
 moving them into Data/, overwriting any files of the same name (backups are
 recommended).

Changes:
-There is now a checkbox for generating events without countries.
 "(No country)", which was in the country selection box, has been removed.
 As a result, it is now possible to select several countries and generate
 events without countries. This, in combination with the new ability to have
 ${tag} in the trigger and actions, allows the creation of a series of events
 that are _about_ countries, rather than _for_ countries.
 Idea from a conversation with MattyG.

Bugfixes:
-Fixed a bug with exporting text for events with two or more actions (the
 second action name was always the same as the first).

It can be found at the same place.

As always, feedback and comments would be appreciated. :)
 
Is it possible for you to replicate this event for each province?

There are no province names mentioned, so it worls for any mod, essentially.

I just do not have the time to work out your program and I am not a very programming-savy kinda guy? :rolleyes:

Code:
event = {
	id = 804001
	random = yes
	province = 1
	trigger = {
		NOT = { control = { province = 1 data = -1 } }
		NOT = { control = { province = 1 data = REB } }
		atwar = yes
	}
	name = "Wake of War"
	desc = "The war has taken its toll, and the enemy's ungentlemanly conduct has resulted in great destruction. They shall pay for their failure to respect the unritten code of conflict!"

	action_a = {
		name = "We shall rebuild when the war is done"
		command = { type = fortress which = 1 value = -1 }
		command = { type = provincemanpower which = 1 value = -1 }
		command = { type = population which = 1 value = -500 }
		command = { type = losebuilding which = 1 value = bailiff }
		command = { type = losebuilding which = 1 value = courthouse }
		command = { type = trade value = -500 }
		command = { type = infra value = -500 }
	}
}
 
Sure, I'll try to do it tomorrow (I have a final exam tomorrow at 8:00). Do you want ID increments of 1?

For something with that many events, I would actually not use my program, because I would have to select each province individually. Rather, I would whip up a simple BeanShell script to loop through all land provinces. Perhaps I should embed BeanShell into the generator; it's very useful sometimes. :)
 
Well, that was ... pretty damned quick. :eek:

Consider me impressed, thankful and humbled. :eek:o
 
Thanks. :eek:o
It took exactly 15 lines of code, once I got the bugs out. I like BeanShell. :D
 
Hey. What I meant in the post in the other thread is the following - when I add new countries for making the event for, the ones other than the first become unselectable once I add them once. The first (MIN), however, can be selected multiple times. So I am asking if I there is any way I can make MIN not be able to be selected multiple times, by setting something in the Event Generator's files. If I managed to do that, I wouldn't have to manually pick every country when making events for all countries, I could just click the "Add" button a lot of times, which is much less work.
 
Hey. What I meant in the post in the other thread is the following - when I add new countries for making the event for, the ones other than the first become unselectable once I add them once. The first (MIN), however, can be selected multiple times. So I am asking if I there is any way I can make MIN not be able to be selected multiple times, by setting something in the Event Generator's files. If I managed to do that, I wouldn't have to manually pick every country when making events for all countries, I could just click the "Add" button a lot of times, which is much less work.
Good idea, and probably not hard--if I could get to it. Added to the list of things that I'll try to get around to once the expansion is released, or possibly before if I get motivated. :)