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

Zagal

Second Lieutenant
1 Badges
Dec 17, 2003
157
0
  • Hearts of Iron III
Hi
Im no expert in event scripting, but I thing that something is wrong with option A of french event 3128 'Protestants expelled from France'
Code is (1.08):
Code:
action_a ={				#Expel the Traitors#
	name = "ACTIONNAME3128A"
	command = { type = trigger which = 3509 }
	command = { type = trigger which = 3521 }
	command = { type = conversion which = -1 }
	command = { type = population which = -3 value = -10000 }
	command = { type = provincetax which = -3 value = -2 }
	command = { type = conversion which = -1 }
	command = { type = population which = -3 value = -10000 }
	command = { type = provincetax which = -3 value = -2 }
	command = { type = conversion which = -1 }
	command = { type = population which = -3 value = -10000 }
	command = { type = provincetax which = -3 value = -2 }
	command = { type = conversion which = -1 }
	command = { type = population which = -3 value = -10000 }
	command = { type = provincetax which = -3 value = -2 }
	command = { type = conversion which = -1 }
	command = { type = population which = -3 value = -10000 }
	command = { type = provincetax which = -3 value = -2 }
	command = { type = gainmanufactory which = -1 value = luxury }
	command = { type = stability value = 2 }
	}

If Im right, this should result in 5 provinces converting to state religion and loosing population and base tax value, along with other outcomes (FAA, stability...)

In my game the conversion-depopulation thing only happened 3 times and 2 of them on the very same province, resulting in a final only 2 provinces converted.

Am I wrong about the interpretation of the script code? or there is a reason for this?

Some data:
- Provinces afected were protestant Mecklemburg (twice) and sunni Smyrna
- I owned 20+ wrong religion provinces, mostly pagan, sunni and protestant

Thanks in advance
 
Upvote 0
You should be getting 5 conversions. Why you only get 3 - I don't know.

The code does not guarantee that the event will target different provinces. If it's 5 random conversions, then they may all happen in the same province, even if there are others that might be targeted. If you have 20 provinces, the chance that 3 random conversions will all target different provinces is 85.5%, so you had some bad luck, but at 15% it's not that unlikely that you will get a double.

And the chance that 5 random conversions will all target different provinces is about 58%.
 
robin74 said:
You should be getting 5 conversions. Why you only get 3 - I don't know.

The code does not guarantee that the event will target different provinces. If it's 5 random conversions, then they may all happen in the same province, even if there are others that might be targeted. If you have 20 provinces, the chance that 3 random conversions will all target different provinces is 85.5%, so you had some bad luck, but at 15% it's not that unlikely that you will get a double.

And the chance that 5 random conversions will all target different provinces is about 58%.

I imagined about the 'double conversion'
IMO, strictly speaking, this is also a bug as no province can be converted twice. But its probably impossible to change with the present scripting rules, and is a minor concern: if you had bad luck you get less conversions with the same penalties
You can imagine that your heretic population was concentrated in the afected province so it resulted particularly depopulated with the expulsion
Maybe, this could be a real problem if you have only 1 or 2 wrong-religion provinces as they would be repeatedly targeted resulting in huge depopulation and BTV reduction (-5!!!) :wacko: for only one conversion.
You can always choose option B. :D

My main concern is about only 3 conversions firing
Im quite sure there were only 3 because I was expecting for this event to happen and when it fires I doublechecked the rollover message over option A.
Moreover: I had a complete list of all wrong-religion provinces so after the event I checked it: only Mecklemburg and Smyrna were converted, just as the rollover message announced
 
Consider yourself lucky :D
post-2-1065569959.jpg


link