Jump to content

[CK2 Modding Question] Events only working when they're the first in the file


BorisTheFurious

Recommended Posts

I've been slowly working my way through making a mod, but this issue has me thoroughly confused.

 

Essentially, each of these four events is called by a targeted decision, and each event is functionally identical but with different flavour. Currently, only Event 1 works, while the others simply don't appear when their respective decisions call them (the decisions are also functionally identical, but with different required traits). However, if I move Event 2 so that it's before Event 1 in the file, then it works just fine - but Event 1 no longer works. This is the case for all of the events - whichever is the first in the file works without issue, while all the others don't.

 

I first thought it might be a bracket, but I've checked many times for that and it doesn't appear to be the case. I've tested the decisions extensively by pointing them at different events, so I'm certain that the issue is with the events themselves.

 

Does anyone have any idea what I might be doing wrong here? Any hints would be greatly appreciated.

namespace = ia

# Event 1
character_event = {
	id = ia.230
	desc = EVTDESCia.230
	ai = no
	picture = GFX_evt_buttslut1
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPT1ia.230
		FROMFROM = {
			add_character_modifier = {
				ia_satisfied
			}
		}
	}
}

# Event 2
character_event = {
	id = ia.240
	desc = EVTDESCia.240
	ai = no
	picture = GFX_evt_buttslut1
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPT1ia.240
		FROMFROM = {
			add_character_modifier = {
				ia_satisfied
			}
		}
	}
}

# Event 3
character_event = {
	id = ia.250
	desc = EVTDESCia.250
	ai = no
	picture = GFX_evt_buttslut1
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPT1ia.250
		FROMFROM = {
			add_character_modifier = {
				ia_satisfied
			}
		}
	}
}

# Event 4
character_event = {
	id = ia.260
	desc = EVTDESCia.260
	ai = no
	picture = GFX_evt_buttslut1
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPT1ia.260
		FROMFROM = {
			add_character_modifier = {
				ia_satisfied
			}
		}
	}
}

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use