Page 1 of 1
How can I make a campaign series?
Posted: Wed Jul 15, 2009 5:08 pm
by Labj
Can i make a campaing one-by-one missions ? in the game it starts at Geonosis, so Mygeeto, then Felucia, next Kasshyyyk, I mean to set the maps to be in order so someone cant play them without victory in the last one, i think i didnt get clear at all.
Re: How ?
Posted: Wed Jul 15, 2009 5:57 pm
by [RDH]Zerted
Using a cGC script from the v1.3 patch:
1) Inject your Campaign's button into
ifs_sp_campaign_vbutton_layout.buttonlist
2) Take over
ifs_sp_campaign_fnUpdateButtonVis() and add code to make your button visible
3) Inject your button's handler (what happens when it gets pressed) into
ifs_sp_campaign.Input_Accept()
From there (
ifs_sp_campaign.lua), trace through how the shipped Campaign handles things and setup your shell screens in the same way. The format you need to define your Campaign sequence in is shown in
missionlist.lua. Look for the table variable:
SPCampaign1.
The game uses
ScriptCB_SetSPProgress() to store the progress of the real Campaign, so theres no way to modify that for a custom Campaign

. Instead, you'll have to use the
SaveAndLoadUtils.lua (in the released Assets forum) and save each map when it gets completed into a single table. Only allow the player to play all finished maps and the first non-finished map (the next map not saved).
You should work on getting everything displayed and playable from the shell before you attempt to work on the saving part.
Re: How ?
Posted: Wed Jul 15, 2009 6:28 pm
by Labj
Thanks a lot, that will be fine.