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

Rotten Venetic

Field Marshal
6 Badges
Jun 10, 2006
4.293
10
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • Europa Universalis IV
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • 500k Club
I've got a mind to write some decisions allowing nations already at partial mobilization (to prevent abuse) to create new divisions by splitting them from existing ones.

The biggest obstacle is that I need a trigger to search if there is at least 1 division of the desired type that has enough strength (40-50), otherwise it would be possible to exploit this by buying an 1 STR tank division and spawning a lot of tanks out of thin air.

Any help/info available?
 
I know we have triggers to check numbers of specific types of division, and those are awesome and allow me to do this by themselves, but ideally I'd like to check if I have divisions with enough Strength.

Actually, I think that reducing the STR of a too small division will erase it, but the division creating command would still have the bigger STR value.

Edit: Also, damage_division is ID-driven, there aren't provisions for simply damaging a random division of this or that type.
 
Last edited:
You can use the modified strength command to reduce STR of a division or all divisions of a given type.

Here it is:

Code:
type = strength which = [all/land/air/naval/unit] type when = [0/1] where = [0/1] [org = x.xx] value = [+/- x.xx] 
	#which 	- specifies unit type(s)
	#when	- 0 – set STR value (if value = 0.0 then the this unit will be instantly deleted), 1 – add to STR value (final STR cannot be less then 0.01 or 1% and more then max unit STR, usually 1.0 or 100%)
	#where	- 0 – take/return MP from/to the pool. If there is not enough MP then the command is skipped. 1 – Ignore MP pool (MP not taken/added to it).
	#value	- 0.0 (0%) to 1.0 (100%). Can be negative if when = 1
	#org	- Percentage of the current ORG that should remain if when = 0 (0.0 – set ORG to 0%, 1.0 – keep current ORG unchanged. Default is 1.0. NOTE: This value is modified by the actual STR change for each division). Set ORG to percentage of max. Org if when = 1
 
From what I understand the command would look like this:

Code:
command = {type = strength which = infantry when = 1 where = 1 value = -0.2 }

But won't this take 20 strength from all inf divisions?
 
Yes (but won't delete units with less then 20 strength, those will be reduced to 1). If you use when = 0 it will set all divisions to 20% strenght.
Honestly, it doesn't look like this is what you wanted, sorry. Unless you make a complex use of add + set + subtract.