If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

When I trigger the event in the console, I get a little red star next to the unit_in_siege, even though I have units besieging a province (I'm playing Byz, and I have units besieging Lybia: 3 regiments of footsoldiers). And I do get the effect to change the variable in other events, so I doubt that the problem is with the effect.

It could be that the trigger's scope is province, not country. Assuming that this is the case, your event is in fact contradictory: it's a country event, yet checks for a trigger whose scope is province-based and uses a province-scope event effect(owner = {).
You might want to change "country_event" to "province_event," though the event may still not work if something else is wrong with the code.

Speaking of "units_in_province," I wonder what the difference is between this trigger and the "has_siege" modifier. Sounds the same to me, but maybe they're different since these are separate triggers....

Speaking of "units_in_province," I wonder what the difference is between this trigger and the "has_siege" modifier. Sounds the same to me, but maybe they're different since these are separate triggers....

Well, as far as I know, units_in_province has nothing to do with sieges, so you can use it to find out for instance if you have troops in one of your own provinces.

I figured I'd do my normal diagonsis procedure, soooo. First I cleared out everything but the trigger, that way I would know if the effect was the problem. Still getting a red star when I console fire the event. I tried to fire it for multiple countries (i.e. while playing Byz, I fired it for TUR and MAM), but I still got a red star next to Have Units in Siege.

Step 2, per Ese Khan's suggestion, I made the whole event a province_event (see below). Tried it for my country, nothing. Tried console firing it for Libya (where I had a siege going against the Mamluks) and finally I got the green star! Strange thing is, on the list of triggers on the http://forum.paradoxplaza.com/forum/...d.php?t=361849 unit_in_siege was listed under country scope.

I'm confused about the difference between the trigger unit_in_siege and has_siege. I thought that unit_in_siege would fire for a state that had units in a siege, regardless of the status of the province being besieged. So unit_in_siege would be true if I was besieging my own province (held by rebels or a different state), a rebel held province of an ally, or an enemy's province. However, it does not seem to work this way. It only seems to be true for provinces that have units besieging them, which seems no different than has_siege. Is this true, or am I missunderstanding?

Now that we know that unit_in_siege has province scope, there is no difference between it and has_siege.

Can we have a nice funeral for unit_in_siege since its now redundent and its job has been outsourced to has_siege. Maybe with some nice flowers, and then give it a nice resting place in some old, out-of-date version of the game? qq. WE'LL MISS YOU UNIT_IN_SIEGE!!! rest in peace.

Did anyone ever use unit_in_siege in a mod? It doesn't seem to be used in any vanilla events. They added province-scope has_siege in patch 1.2 and the original docs Johan posted showed unit_in_siege to be country-scope so apparently it should be; this could probably be reported as a bug.

"The trouble with fighting for human freedom is that one spends most of one's time defending scoundrels. For it is against scoundrels that oppressive laws are first aimed, and oppression must be stopped at the beginning if it is to be stopped at all." --H. L. Mencken
Playing EU4