IDS_LOC and MP Missions

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
Old_Warrior
Major - Jagdpanther
Major - Jagdpanther
Posts: 1019
Joined: Fri Apr 30, 2010 3:13 am

IDS_LOC and MP Missions

Post by Old_Warrior »

If scripted properly in BSF and Text1 files can locations be used on the maps? I noted that mine were now working in a MP mission I built.

Here is the BSF file:

include "Functions.BSF"
FUNCTION PreBattleSetup()
{
ShowTextMarker(1, 26, 24, "IDS_LOC_BRIDGE", 12, "FFFFFF", 1);
ShowTextMarker(1, 23, 22, "IDS_LOC_LA-MANOIR", 12, "FFFFFF", 1);
ShowTextMarker(1, 26, 28, "IDS_LOC_CAUSEWAY", 8, "FFFFFF", 1);
ShowTextMarker(1, 33, 46, "IDS_LOC_MEDERET", 8, "FFFFFF", 1);
}

Is the function FUNCTION DrawScenarioUI() required for on map text to show up?

Do I need to add in more sections in this script file to get this to work?
pipfromslitherine
Site Admin
Site Admin
Posts: 9929
Joined: Wed Mar 23, 2005 10:35 pm

Re: IDS_LOC and MP Missions

Post by pipfromslitherine »

Text markers work independently of the DrawScenarioUI function.

Note that PreBattleSetup is not a system function and so would need to be called at some point before you would see anything on the map.

Cheers

Pip
Old_Warrior
Major - Jagdpanther
Major - Jagdpanther
Posts: 1019
Joined: Fri Apr 30, 2010 3:13 am

Re: IDS_LOC and MP Missions

Post by Old_Warrior »

Ah yes, called here:

FUNCTION StartTurn(side)
{
if( GetTurn() == -1)
{
PreBattleSetup() ;
}

Thanks much!
Post Reply

Return to “Battle Academy : Modders Corner ”