Page 1 of 1

ShowUIScreen("SelectDeploy", "", "") ;

Posted: Sun May 15, 2016 7:34 pm
by enric
An odd behavior, or a misunderstanding:

1) During German turn X I show a UIScreen with two options: "from where do you want to receive the reinforcements? North or South?
2) German player then selects his preferred place, and the reinforcements appears in place.
3) German player then moves and fires with their new reinforcement units, finish the turn.
4) When allied loads his turn do not see the attacking German reinforcements, he finishes the turn.
5) When German loads his turn: his reinforcements units were gone.

The UIScreen has a SELECTDEPLOY.TXT and a SELECTDEPLOY.BSF files placed in the DATA/UI

The SELECTDEPLOY.BSF has a:

if( IsUIObject(id, "SDCenter") == 1 ) // Button for NORTH
CallFunctionInScript(GetUniversalVar("mainID"), "EnterArea",1);
----

The EnterArea(where) function Just call
germanReinforcements(where);, that places the units.

What's wrong?

Re: ShowUIScreen("SelectDeploy", "", "") ;

Posted: Mon May 16, 2016 3:16 pm
by pipfromslitherine
If you want to have custom operations occur for both sides in MP you need to use the AddCustomOrder function in order to ensure that it happens in the same way as normal unit orders.

Cheers

Pip

Re: ShowUIScreen("SelectDeploy", "", "") ;

Posted: Mon May 16, 2016 3:31 pm
by enric
Thanks, but… how can anyone imagine such thing?

Re: ShowUIScreen("SelectDeploy", "", "") ;

Posted: Mon May 16, 2016 5:37 pm
by pipfromslitherine
I think I added it for a modder way back when, and announced it on the forums, but there are quite a lot of commands now :)

Cheers

Pip