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

unmerged(9143)

Captain
May 2, 2002
322
0
Visit site
I don't understand what the civil_war command does. If a country is defined in the revolt.txt file it gains independence and control over some random troops of the country having the civil war.

However, I don't understand why, when I have three countries defined in revolt.txt, one (and always the same one) gains their freedom and control of some troops. I can't find any file that lets me specify which country (or better yet, multiple countries) gaining their independence in a civil_war event.

Also, while I can get their indepence granted in an event, it's sort of pointless when they have *no* troops, not even militia, because its pretty bloody easy to retake a country that has zero troops.

Cheers,

Dr. Charm
 
Originally posted by Dr.Charm


Also, while I can get their indepence granted in an event, it's sort of pointless when they have *no* troops, not even militia, because its pretty bloody easy to retake a country that has zero troops.

Try combining it with switch_allegiance:

type = switch_allegiance which = [country tag] value = [unit id]

The specified unit (or random if 'value = -1') switches allegiance to the specified country.
 
Ah, that should help. If I use -1 for random, does that cause precisely one troop to switch allegiance? In other words if I wanted to have 5 random troops switch sides, would I just put the same line in five times?

I'm also making the assumption that since this is in an event the random choice occurs among only the troops of the country the event is for.

Any thoughts on the civil_war thing? I can work around it with the independence and switch allegiance, but it seems that civil_war would sort of be a nice 'macro' for such things.

Cheers,

Dr. Charm
 
Originally posted by Dr.Charm
Ah, that should help. If I use -1 for random, does that cause precisely one troop to switch allegiance? In other words if I wanted to have 5 random troops switch sides, would I just put the same line in five times?

I'm also making the assumption that since this is in an event the random choice occurs among only the troops of the country the event is for.
Command is one unit, thus command used five times is five units, yes.

Only troops the event is triggered for, yes.


Any thoughts on the civil_war thing? I can work around it with the independence and switch allegiance, but it seems that civil_war would sort of be a nice 'macro' for such things.
I haven't tested the civil_war command much... I'll see if I can take a look at it tonight...
 
Well, is there a way you can limit the effect... say if the whole country have 5 units, than can you have an if statement that would only pull 2 units instead of the above 5?

M
 
Originally posted by Dr.Charm
My understanding from Havard's explanation is: put the line in once, one troop switches; put it in twice 2 troops switch. A very fine control over the number that switch in other words.

Yes. You can have e.g.:
Code:
		command = { type = civil_war }
		command = { type = switch_allegiance which = TAG value = -1 }
		command = { type = switch_allegiance which = TAG value = -1 }

Which will switch two units. There is no way to, as Bismarck wondered, to determin how many units a country have... You'll have to do some guessing ;)
 
Originally posted by Dr.Charm
I don't understand what the civil_war command does. If a country is defined in the revolt.txt file it gains independence and control over some random troops of the country having the civil war.

However, I don't understand why, when I have three countries defined in revolt.txt, one (and always the same one) gains their freedom and control of some troops. I can't find any file that lets me specify which country (or better yet, multiple countries) gaining their independence in a civil_war event.

After some testing I think I can say:
- The country breaking away in a civil_war is always the first country alphabetically (tag-wise)! (U00 will always go before U01)
- Any troops located in the provinces revolting to a new country will switch, as might some others.

There is no problem triggering the command several times to cause more countries to break free. However, if there are countries listed as possible revolters you don't want to brak free you might have a problem if they come in-between the others...
 
Re: Re: What does civil_war do?

Originally posted by Havard
After some testing I think I can say:
- The country breaking away in a civil_war is always the first country alphabetically (tag-wise)! (U00 will always go before U01)
- Any troops located in the provinces revolting to a new country will switch, as might some others.

There is no problem triggering the command several times to cause more countries to break free. However, if there are countries listed as possible revolters you don't want to brak free you might have a problem if they come in-between the others...

Excellent! Thanks for your help, that actually works out very well for me. Combined with switch-allegiance, I should be able to get exactly the effect I want.

Oh, there's something else I discovered. If you have a revolting country that overlaps more than one country, when you run the civil_war (or indepedence) events, only the provinces in the country running the event form part of the new country. I have not yet checked to see what happens if you then run a civil_war (or independence) event in the country where the rest of the revolting provinces are. (Does that make any sense?) :)

Cheers,

Dr. Charm
 
Re: Re: Re: What does civil_war do?

Originally posted by Dr.Charm

Oh, there's something else I discovered. If you have a revolting country that overlaps more than one country, when you run the civil_war (or indepedence) events, only the provinces in the country running the event form part of the new country. I have not yet checked to see what happens if you then run a civil_war (or independence) event in the country where the rest of the revolting provinces are. (Does that make any sense?) :)
Yes, that make sense. As for most of the other event actions the event will only affect provinces owned by another country. In this case the new country will form from the one country and have claims on the other(s).

Since you cannot set free a country that already exist there is no way to have a country form from two countries with these commands. (You could use independence + secedeprovince)