Page 1 of 1

Scenario - Campaign with Persistence of Units

Posted: Fri Mar 10, 2023 1:12 pm
by TitaniumTrout
Does anyone know of a group of scenarios or campaign that has persistence of units between them? For example, if I have a dozen jets in Scenario 1, lose 3, in Scenario 2 I now only have 9. For the Lua folks I'm looking at a system that is using something like the ScenEdit_SetKeyValue function.

Re: Scenario - Campaign with Persistence of Units

Posted: Fri Mar 10, 2023 1:35 pm
by Parel803
Good afternoon,

Different but got the advice to use .inst
Not tried it yet myself

best regards GJ

Re: Scenario - Campaign with Persistence of Units

Posted: Fri Mar 10, 2023 3:32 pm
by TitaniumTrout
Parel803 wrote: Fri Mar 10, 2023 1:35 pm Good afternoon,

Different but got the advice to use .inst
Not tried it yet myself

best regards GJ
That's a cool idea, thanks!

Re: Scenario - Campaign with Persistence of Units

Posted: Sat Mar 18, 2023 2:10 pm
by KnightHawk75
TitaniumTrout wrote: Fri Mar 10, 2023 1:12 pm Does anyone know of a group of scenarios or campaign that has persistence of units between them? For example, if I have a dozen jets in Scenario 1, lose 3, in Scenario 2 I now only have 9. For the Lua folks I'm looking at a system that is using something like the ScenEdit_SetKeyValue function.
I don't think I ever tried it in a campaign, but should be able to store your table of what to remove from the 'next scene' in the campaign flagged setkeyvalue, combined with triggers for all the destruction events filling the list of what you may want removed in the next/other episodes.
I can explain concept I would have in mind, but don't have a working/function system example handy... hmm maybe I should do a sample one?




Which reminds me that probably need to update this https://www.matrixgames.com/forums/view ... 6&t=392975 to add support for a campaign mode param on the savetabletokey and loadtablefromkey routines.

Re: Scenario - Campaign with Persistence of Units

Posted: Sat Mar 18, 2023 4:22 pm
by TitaniumTrout
KnightHawk75 wrote: Sat Mar 18, 2023 2:10 pm Which reminds me that probably need to update this https://www.matrixgames.com/forums/view ... 6&t=392975 to add support for a campaign mode param on the savetabletokey and loadtablefromkey routines.
This looks really cool! I'll have to check it out. Thanks!