Sorry guys, I probably shouldn't have led with the pylon thing. I was just using that as a shorthand to conceptualize the issue. In truth, I fully track each player's manpower cap using only death counters which are fixed by a few factors (conquering enemy provinces, losing provinces, special events, "building upgrades", etc.) The regeneration rate is also simply another death counter timer, the speed of which is also affected by building upgrades + total territory owned.
The thing is, no buildings are actually really ever created or destroyed in my map. The premise of the map is that when you "mobilize" your army, each unit spawned will subtract from the manpower pool, unless the Manpower DC is 0, at which point they no longer spawn. So their total manpower is always ticking up/regenerating to their cap, but never exceeding it (when units demobilize, they return manpower to the pool, unless it's at capacity, in which case the surplus manpower will simply disappear). I've got everything working nicely with exception of stopping regen when the cap is reached. I try to abstract everything with triggers, and thus I would like to perform as little arithmetic as possible on the Manpower Cap death counter so that it remains fixed, since a miscount could have catastrophic military consequences for the player, and it could suddenly be modified by a different trigger at any moment. When manpower cap is reached, of course, I also want to ensure that I have a system that simply shuts down and won't have to constantly perform arithmetic.
Thats excaktly the issue. If you have 500 triggers you can count 500 values. So if you plan only to have a limited amount of pylons than that way is an option sometimes copy passe triggers Are needed.
I know, unfortunately this seems like the quickest and dirtiest way to compare against a fixed value. I'm just
really reluctant to do it because in the late game if a player conceivably owned half the map and had lots of upgrades, I could forsee having a manpower cap in the realm of over 1000+ – and besides, it would suck to impose an arbitrary hard limit if I don't have to.
I think eud triggers in eud editor have the option if you wanna go that way
I'm thinking of trying to experiment with this, but I don't know if it works well. Are those sorts of triggers laggy?
Post has been edited 1 time(s), last time on Jan 28 2022, 5:12 am by Brusilov.
None.