Campaign path decicions in custom campaigns

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, Panzer Corps Moderators, Panzer Corps Design

Post Reply
Ranta
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 87
Joined: Thu Jul 14, 2011 6:35 am

Campaign path decicions in custom campaigns

Post by Ranta »

Hi

The titel says all :)

I am making a custom campaign. In a special scenario during the campaign, you shoul be able to decide whether you like to go to scenario A or B in the following. How can I realise that in my custom campaign (campaign.pzdat). Any ideas?

Best regards

Ranta
AgentX
Sergeant First Class - Panzer IIIL
Sergeant First Class - Panzer IIIL
Posts: 381
Joined: Thu Jan 13, 2011 11:38 pm

Post by AgentX »

Maybe the answer is in the BarbarossaBNoW_decisive PZBRF file. You have a choice of going to Kiev or Rush to Moscow. There is an id line that you put the map name in quotations, then a shortened name with a button prompt.
Last edited by AgentX on Mon Aug 22, 2011 9:39 pm, edited 2 times in total.
Panzer Corps Beta Tester
rezaf
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1487
Joined: Mon Aug 15, 2011 3:27 pm

Post by rezaf »

AgentX is right, that's the place to look.

Basically, you define a value for each option in the briefing file and just leave the field for the ID of the scenario that follows empty in the campaign file.
The field will then be filled with the option you pick during the briefing, and you will in turn be taken to the campaign branch with that ID.
It's actually pretty straight forward.

Unfortunately, the system appears to lack a few possiblities that were present in PGForever - for example, the options that supposedly cost prestige in my campaign don't have any effect - there doesn't appear to be a command to substract prestige any longer.
Too bad Rudankort has gone missing, I bet he could shed some light on the issue.
I hope he's only taken a well deserved vacation and will be back, though.
_____
rezaf
El_Condoro
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 2119
Joined: Tue Jun 03, 2008 9:32 am

Post by El_Condoro »

there doesn't appear to be a command to substract prestige any longer.
Are you saying setting a negative prestige action doesn't work? I was sure I checked that and it did.

Image
Xerkis
Major-General - Tiger I
Major-General - Tiger I
Posts: 2312
Joined: Thu Jul 07, 2011 12:56 pm
Location: Northeast, USA

Post by Xerkis »

El_Condoro wrote:
there doesn't appear to be a command to substract prestige any longer.
Are you saying setting a negative prestige action doesn't work? I was sure I checked that and it did.

Image
Yeah it works - I've used it already.
rezaf
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1487
Joined: Mon Aug 15, 2011 3:27 pm

Post by rezaf »

Well, correct me if I'm mistaken, but these prestige actions can only be called during scenarios, right?
What I was referring to is that, in PGF, you can have a pick in a briefing file that will substract prestige - like "paying" prestige for taking Gibraltar before Sealion 40 to get Sealian plus with Italian help.
_____
rezaf
El_Condoro
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 2119
Joined: Tue Jun 03, 2008 9:32 am

Post by El_Condoro »

^ You're right - these are triggers during scenarios. What you want to do may still be possible if done in the campaign.pzdat but I haven't tested to see if a negative value will be accepted.
rezaf
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1487
Joined: Mon Aug 15, 2011 3:27 pm

Post by rezaf »

El_Condoro wrote:^ You're right - these are triggers during scenarios. What you want to do may still be possible if done in the campaign.pzdat but I haven't tested to see if a negative value will be accepted.
No, that wouldn't work either.
Because you define the prestige reward for a decisive victory, for example, and then the ID of the next scenario or leave it blank for the ID to be filled in by a briefing file.
It would be necessary, however, to give one option less prestige than another option...
_____
rezaf
El_Condoro
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 2119
Joined: Tue Jun 03, 2008 9:32 am

Post by El_Condoro »

rezaf wrote:Basically, you define a value for each option in the briefing file and just leave the field for the ID of the scenario that follows empty in the campaign file.
The field will then be filled with the option you pick during the briefing, and you will in turn be taken to the campaign branch with that ID.
It's actually pretty straight forward.
Looking at what is in the BarbarossabNoW_decisive.pzbrf, I am not sure what you have described is correct, unless I've misunderstood you. The bit about an empty field in the campaign.pzdat is what is confusing me.

Code: Select all

<p>
<button type="radio" name="NextScn" id="Rush to MoscowNoW">Moscow</button><br/>
</p>
<p>
<button type="radio" name="NextScn" id="KievNoW">Kiev</button>
</p>
The id= string matches a scenario label from the campaign.pzdat (Rush to MoscowNoW or KievNoW). I would assume the game just takes the radio button label and runs the scenario with that label and details.

If that is correct, the starting prestige and the prestige reward will determine what the player starts off a scenario with.
rezaf
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1487
Joined: Mon Aug 15, 2011 3:27 pm

Post by rezaf »

*sigh*

Ok, let me spell that out slowly, hopefully I'll be able to get my point across then.

Let's take a look at the Barbarossa example you picked.
It goes like this in the campaign file:

Code: Select all

BarbarossaNoW;BarbarossaA.pzbrf;Barbarossa.pzscn;;1320;BarbarossaBNoW_decisive.pzbrf;KievNoW;720;BarbarossaC_marginal.pzbrf;END;0;BarbarossaD_loss.pzbrf	
(I replaced the TAB separators with semicolons for better readibility in this context)

This means:
BarbarossaNoW is the ID of this campaign scenario.
BarbarossaA.pzbrf is the corresponding briefing file.
Barbarossa.pzscn is the scenario file.
HERE IS THE EMPTY COLUMN. Normally, this column would spell out the ID of the scenario that follows when you win a decisive victory. It's left empty, because the victory briefing file from two columns later will fill it with the ID of the option you picked.
AND NOW WE HAVE THE IMPORTANT COLUMN. It contains the prestige we get for winning a decisive victory.
So, you see, NO MATTER WHAT WE PICK, we get 1320 prestige. We can reduce this number, or even put a negative one, but it will apply regardless what you picked in the briefing option.
So if option A is "Pay 1500 prestige for the help of the Italian fleet" and option B is "Just directly launch the mission", how would I make A net 1500 prestige less then B?
Comprende?

The next column contains the briefing file, which needs to return the ID if we left the column for the following scenario empty. Then we get the same trinity of columns for maringal victory and for loss. And that's it.

Any further questions?
_____
rezaf
berndN
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 141
Joined: Sat Aug 07, 2010 6:13 pm

Post by berndN »

If I look through the html code in html it would make sense to refine a line so that it would look like this:
<p>
<button type="radio" name="NextScn" id="Rush to MoscowNoW" prestige="100">Moscow</button><br/>
</p>
<p>
<button type="radio" name="NextScn" id="KievNoW" prestige="-100">Kiev</button>
</p>
The question is if the game logic can parse more then the id identifier and if, what keywords are used and which values are accepted.
El_Condoro
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 2119
Joined: Tue Jun 03, 2008 9:32 am

Post by El_Condoro »

@rezaf: thank you for your explanation. I see the blanks you're referring to. Thank you, also, for working definitions of the words 'arrogant', 'rude' and 'condescending'. It would have been just as simple and not wasted your time to say "Look for the blanks on the BarbarossaNoW line". No further questions - not for you, anyway.
rezaf
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1487
Joined: Mon Aug 15, 2011 3:27 pm

Post by rezaf »

El_Condoro wrote:@rezaf: thank you for your explanation. I see the blanks you're referring to. Thank you, also, for working definitions of the words 'arrogant', 'rude' and 'condescending'. It would have been just as simple and not wasted your time to say "Look for the blanks on the BarbarossaNoW line". No further questions - not for you, anyway.
:roll:

You tried to counter my point three times, obviously not even bothering to really look into the issue and sum up the numbers yourself and you're calling me arrogant?
Ah well, fair enough, not even worth getting into an argument about.
_____
rezaf
El_Condoro
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 2119
Joined: Tue Jun 03, 2008 9:32 am

Post by El_Condoro »

Just to be clear, I said "I wasn't sure" and "[this] is confusing me". I was trying to understand. Now I understand, so thank you. If I responded to my students who ask how to understand something that I was teaching them in the way you did (sigh, comprehend?, any other questions?) I would get a similar reaction.
Ranta
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 87
Joined: Thu Jul 14, 2011 6:35 am

Post by Ranta »

thanks a lot guys, this helped me a lot :)
Post Reply

Return to “Panzer Corps : Scenario Design”