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

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

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

Post 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?
pipfromslitherine
Site Admin
Site Admin
Posts: 9702
Joined: Wed Mar 23, 2005 10:35 pm

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

Post 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
follow me on Twitter here
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

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

Post by enric »

Thanks, but… how can anyone imagine such thing?
pipfromslitherine
Site Admin
Site Admin
Posts: 9702
Joined: Wed Mar 23, 2005 10:35 pm

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

Post 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
follow me on Twitter here
Post Reply

Return to “Battle Academy 2: Modders Corner”