Re-routing convoys?

Post Reply
mdsmall
Posts: 715
Joined: Tue Apr 28, 2020 11:36 am
Location: Vancouver, BC

Re-routing convoys?

Post by mdsmall »

Hi Bill,

I have tried without success to write a DE that would give the Entente player the option of re-routing the convoy from France to Italy before Serbia surrenders. The game logic of this is that depending on the situation in mid-1915, it may be of greater advantage to the Entente side to send French MPPs to Italy than Serbia. Also, Serbia can still receive MPPs via the convoy from Russia.

My understanding is that in the game engine, a country can only send one convoy to one destination at time, correct?

Are there any intrinsic obstacles to writing a DE that would flip the French convoy from Serbia to Italy, once Italy enters the war? I have tried writing such a script but can't get it to fire.

Cheers,

Michael
User avatar
BillRunacre
Posts: 5787
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

Re: Re-routing convoys?

Post by BillRunacre »

Hi Michael

Yes, that's certainly possible and we have some examples in our WW2 games.

When you say that it isn't working, is it that the DE isn't appearing, or that the convoy isn't changing to go to Italy?
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
mdsmall
Posts: 715
Joined: Tue Apr 28, 2020 11:36 am
Location: Vancouver, BC

Re: Re-routing convoys?

Post by mdsmall »

Hi Bill - The DE would pop up but the convoy would not re-route to Italy. Specifically, the existing game has three dummy DEs for each of the existing possibilities: convoy goes to Cetinje (250); convoy goes to Salonika (251); convoy goes to Italy (after Serbia surrenders) (252). I have been trying to write a DE 253 which gives the Entente the option of re-routing the convoy to Italy as soon as Italy enters the war. I tried linking DE 250 and 251 to 253, so that LINK = 253(0) so that the Serbia convoy would be unaffected until DE 253 fired. That seemed to prevent the convoy from starting at all. So, I re-set the LINK to 0 (0) and the convoys to Serbia resumed, but still would not switch when DE 253 popped up. Perhaps you can suggest a better approach to writing these scripts?

If you can also give me examples from the WW2 games, I can look up how they are written in the Game Editor.

Cheers,

Michael
User avatar
BillRunacre
Posts: 5787
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

Re: Re-routing convoys?

Post by BillRunacre »

Hi Michael

If you try placing the convoy script for it to go to Italy above the others it should work, with the one keeping it flowing to Serbia directly below it, with all the others beneath that one.

If not, disconnect the convoy to Italy from the DE, and take all the other scripts to Serbia out of the file for the moment, updating and then that will allow you to check that the one to Italy works, i.e. I isn't anything else causing an issue.

If all else fails, email me the campaign and I'll take a look!

Bill
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
mdsmall
Posts: 715
Joined: Tue Apr 28, 2020 11:36 am
Location: Vancouver, BC

Re: Re-routing convoys?

Post by mdsmall »

Hi Bill - good advice. Your first suggestion implies that the order in which a DE script appears in the file makes a difference ie that the game engine runs through the scripts in the order from top to bottom that they appear. Is this correct? If so, it would apply to scripting other kinds of decision trees as well. Grateful for your clarification.

Cheers

Michael
User avatar
BillRunacre
Posts: 5787
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

Re: Re-routing convoys?

Post by BillRunacre »

Yes, they are read from top to bottom but the relevance here is more with the convoy script file, as that is also read from top to bottom and their order is extremely important in this instance.

Hopefully that is it and you can get it working?
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
mdsmall
Posts: 715
Joined: Tue Apr 28, 2020 11:36 am
Location: Vancouver, BC

Re: Re-routing convoys?

Post by mdsmall »

Hi Bill - got it working now. Many thanks!

Michael
Post Reply

Return to “MODS and Scenarios”