Page 1 of 1
Two questions
Posted: Tue Dec 15, 2020 8:21 am
by BeirutDude
1. Has anyone written a Lua script that checks to see if a side's Posture has gone Hostile and resets its Posture to another posture. I was to set Soviet Tattle Tails/Tales but keep the Soviet Union from becoming a belligerent. I've done it with a crude script that checks every second but was thinking there has to be a better way.
2. I'm designing a scenario where it is desirable for the airfields to have limited loadouts but the ports unlimited. Is there a script for setting a specific unit's/group's magazine to unlimited loadouts?
Thanks
RE: Two questions
Posted: Tue Dec 15, 2020 10:37 am
by KnightHawk75
On #2 - Pretty sure that's a nope. You basically have to script in all "auto" restocking yourself that said you could make user of Demeter by angster, with very low timing settings I think to basically constantly restock your stuff if you don't want to script what you may need. It's pretty cool setup angster made, maybe it doesn't work for exactly what you have in mind though, idk. But there is no easy "this based is unlimited flag" to set, it's global for the scene - I do wish that could be flagged at least per-side but can't atm.
Demeter:
fb.asp?m=4843206
I do have some build block stuff related to adding\removing\modifying existing mags I was using for one-offs but it's kinda old probably needs a re-do accounting for lots of changes, and as I recall last time I was working on it there were still some weird behavior with how one of the functions when modifying existing records worked, not sure that got sorted in patches since the spring, maybe they did since Demeter must use them.
On #1 - err yeah but I did exactly what you did, the other way is well... that plus finding just the right combination of 'postures' + disabling 'Collective' such that it doesn't happen to begin with. That will involve some testing to find what combo's *might work for your circumstance. I think replied with some detail to someone a few weeks back in a 'general' area thread where it came up. Things get tricky\complicated and hard to keep entirely straight though depending circumstances such as info-sharing levels of relations though and timing of who is the originator of 'contact' data that may be marked a certain way (then shared with partners).
-KH
RE: Two questions
Posted: Thu Dec 17, 2020 10:54 am
by BeirutDude
Thanks, the Posture script running every second doesn't seem to cause any performance issues. It just seems like there should be better way. [X(]