I have a little question. Knows someone a way to check if particular unit was recruited?
I have a little question. Knows someone a way to check if particular unit was recruited?
Try this:
Or:Code:monitor_event UnitTrained FactionType sicily and UnitType Axemen of Lossarnach end_monitor
Code:monitor_event UnitTrained UnitType Axemen of Lossarnach end_monitor
it works! Thanks again!
I have another question: is there a possibility to make possible replenishment of losses without possibility of recruiting new unit?
is there something what can let me count existing units? I know that there is a condition I_UnitExists. How to use it to count existing units?
It's not going to work how you want it too... Unless you'd like to explain what you want to acomplish and prove me wrong?
i look for a way to simulate the militia system. I need something to limit the number of existing units to number of provinces which belongs to specific faction. I know how to count provinces. Now i look forway to cout existing units and to compare those two numbers.
Counting units: I needed this too but could not find a way to do it. Maybe if there is a counter that gets +1 each time one is recruited and -1 each time one is disbanded. But I don't know if UnitDisbanded fires when units are merged or turn rebel.
is there a possibility to make possible replenishment of losses without possibility of recruiting new unit?If that red number is less than 1 then recruitment is not possible but retraining is. 0.999 means it can replenish a unit that has 99.9% of its soldiers lost. Change the 0.111 to suit the replenishment rate you need.Code:recruit_pool "saus_er_Elven_Rangers" 0 0.111 0.999 0 requires factions { turks, }
And how works UnitDisbanded for units destroyed in the battle?
I don't know.
So it's time to tests. The problem is, that i don't know what to look for![]()
It doesn't, nor are a lot of other possibilities covered. Hence the reason I said it's not going to work like you want it too.
Is there a possible to add label for specific unit? Not for all of units using the same name but for specific troops?
No.
To a unit he means, not all units of that type.
You can on the battle map but not the campaign map. Even if you could I don't think it would be practical. e.g. If you have two units of the same type with a label each and then merge them, which label remains?
e.g. If the attribute was "attrX" and given to the "Peasant" unit in EDU then all Peasant units will have the attrX attribute. He wants the ability to uniquely identify one specific unit of Peasants on the map, not all Peasant units on the map.
Which one of TNZ's suggestions worked?