• 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.
Status
Not open for further replies.
Dec 20, 2003
772
0
"Religious Authority Decline" event

As i looked through the Religious_Events.txt i've found perhaps a little bug in event 1152 "Religious Authority Decline":
Code:
###############################
# Religious Authority Decline #
###############################

character_event = {
	id = 1152
	
	picture = "event_religion"

	trigger = {
		condition = { type = is_independent }
		condition = {
			type = or
			condition = {
				type = has_law
				value = { regal_supremacy = yes }
			}
			condition = {
				type = has_law
				value = { monastic_supremacy = yes }
			}
		}
		condition = { type = year value = 1300 }
		condition = {
			type = not
			value = {
				type = year
				value = 1420
			}
		}
	}

	mean_time_to_happen = {
		months = 300

		modifier = {
			condition = { type = ruler_religion value = catholic }
			factor = 1
		}
		modifier = {
			condition = { type = ruler_religion value = orthodox }
			factor = 1.5
		}
		modifier = {
			condition = { type = ruler_religion value = muslim }
			factor = 1
		}
		modifier = {
			condition = { type = ruler_religion value = pagan }
			factor = 0.5
		}
	}

	action_a = {# We will accept this development!
[B]		effect = { type = remove_next_advance value = clerical_celibacy }
		effect = { type = remove_next_advance value = clerical_celibacy }[/B]	}
}

As you can see there is in acton_a two times the same command.
I don't think this is WAD, or???

EDIT: The same for event 1151! ;)
 
Upvote 0
remove_next_advance is used to remove the next advance from the top of a particular category.
add_next_advance is used to add the next advance of a particular category.

value = clerical_celibacy define in which category the effect is applied.

So you can have the effect multiple times, with same line of code, but it will remove (or add) 2 different advances.

At least, that's how it is supposed to work. :)

So the script is correct.

Not sure it is working as intended OTOH, because on the console I seem to remember having problems with it... :eek:o But it may be just a console glitch.

Cat
 
Cat Lord said:
remove_next_advance is used to remove the next advance from the top of a particular category.
add_next_advance is used to add the next advance of a particular category.

value = clerical_celibacy define in which category the effect is applied.

So you can have the effect multiple times, with same line of code, but it will remove (or add) 2 different advances.

At least, that's how it is supposed to work. :)

So the script is correct.

Cat
Ok thanks for your explanation!


Cat Lord said:
Not sure it is working as intended OTOH, because on the console I seem to remember having problems with it... :eek:o But it may be just a console glitch.

Cat
BTW i've experienced, as i've written in another thread, soemething like that with the most of the trait events. Got everytime the message "unknown event"! And yes i've selected a character before firing the event. ;)
 
there is a bug with one of the event files. It will hopefully be fixed in 1.02
 
Status
Not open for further replies.