Is it possible to write some sort of code that limits a commander to a certain number of units. Say if his command level is low he can only command 5 units. If it rises he can command 10, etc.
Is it possible to write some sort of code that limits a commander to a certain number of units. Say if his command level is low he can only command 5 units. If it rises he can command 10, etc.
no
Under the Patronage of the Dreadful cedric37!
Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod
![]()
Yeah I didnt think so. Damn that would be so cool if you could.
What about writing code to make the more units a army has the higher the upkeep or costs to maintain? Anything?
How about this limited variance:
Add traits whose triggers check for example command points and a certain percentage of bodyguard units.
That trait would decrease the morale of the army because the soldiers wouldn't think the general is capable of leading so big an army and would more easily rout.
Example (for export_descr_character_traits.txt):
Spoiler Alert, click show to read:
This particular example should decrease the overall morale of the army by one if the general has only 4 or less command stars and there are more than 9 unit in the generals army at the start of the turn (asuming that the generals bodyguard has about half as many units as a normal unit and that all units are full, adjust to your liking).
Not tested, cannot guarantee for anything...
Last edited by Bungo Baggins; November 04, 2011 at 09:15 PM.
Thank you for mentioning it, I took the original idea to check the general_unit attribute from your post...![]()
lol OK, so the new me is stupid and the previous me knew what he was talking about.
For some reason I thought PercentageUnitAttribute required the army to be exported from the event
Your trait looks totally fine to me now...![]()
Last edited by Taiji; November 05, 2011 at 06:17 AM.