Two questions

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
User avatar
BeirutDude
Posts: 2799
Joined: Sat Apr 27, 2013 9:44 am
Location: Jacksonville, FL, USA

Two questions

Post 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
"Some people spend an entire lifetime wondering if they made a difference. The Marines don't have that problem."
PRESIDENT RONALD REAGAN, 1985

I was Navy, but Assigned TAD to the 24th MAU Hq in Beirut. By far the finest period of my service!
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: Two questions

Post 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
User avatar
BeirutDude
Posts: 2799
Joined: Sat Apr 27, 2013 9:44 am
Location: Jacksonville, FL, USA

RE: Two questions

Post 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(]
"Some people spend an entire lifetime wondering if they made a difference. The Marines don't have that problem."
PRESIDENT RONALD REAGAN, 1985

I was Navy, but Assigned TAD to the 24th MAU Hq in Beirut. By far the finest period of my service!
Post Reply

Return to “Lua Legion”