Scenario - Campaign with Persistence of Units

Post new mods and scenarios here.

Moderator: MOD_Command

Post Reply
User avatar
TitaniumTrout
Posts: 469
Joined: Mon Oct 20, 2014 9:06 am
Location: Michigan

Scenario - Campaign with Persistence of Units

Post 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.
Parel803
Posts: 932
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: Scenario - Campaign with Persistence of Units

Post by Parel803 »

Good afternoon,

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

best regards GJ
User avatar
TitaniumTrout
Posts: 469
Joined: Mon Oct 20, 2014 9:06 am
Location: Michigan

Re: Scenario - Campaign with Persistence of Units

Post 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!
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

Re: Scenario - Campaign with Persistence of Units

Post 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.
Last edited by KnightHawk75 on Sun Mar 19, 2023 7:11 am, edited 1 time in total.
User avatar
TitaniumTrout
Posts: 469
Joined: Mon Oct 20, 2014 9:06 am
Location: Michigan

Re: Scenario - Campaign with Persistence of Units

Post 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!
Post Reply

Return to “Mods and Scenarios”