Frontend
The frontend
object is automatically provided by the frontend game environment to script, and provides functionality specific to the frontend. The functions it provides may be called directly on the object in the following form.
Example:
frontend.<function_name>(<args>)
Loaded in Frontend |
-
frontend.start_named_battle(
keystring
)
-
Starts a named battle specified by key from the
battles
table.Parameters:
1
key
Returns:
nil
defined in ../../common/UIDll/Source/FrontEnd/FrontendUIScriptInterface.cpp, line 193
-
frontend.start_xml_battle(
xml_pathstring
)
-
Starts a battle from xml
Parameters:
1
xml_path
Returns:
nil
defined in ../../common/UIDll/Source/FrontEnd/FrontendUIScriptInterface.cpp, line 210
-
frontend.start_campaign(
campaign keystring
,
faction keystring
,
political party keystring
)
-
Starts the specified campaign, by string key from the
campaigns
table. A faction key from thefactions
table and a political party key frompolitical_parties
table.Parameters:
1
campaign key
2
faction key
3
political party key
Returns:
nil
defined in ../../common/UIDll/Source/FrontEnd/FrontendUIScriptInterface.cpp, line 228
-
frontend.load_campaign(
file pathstring
, [
from cloudboolean
])
-
Loads a campaign save file by name.
Parameters:
1
file path
2
optional, default value=false
from cloud
Returns:
nil
defined in ../../common/UIDll/Source/FrontEnd/FrontendUIScriptInterface.cpp, line 251
-
frontend.continue_campaign([
from cloudboolean
])
-
Loads the most recently saved campaign game.
Parameters:
1
optional, default value=false
from cloud
Returns:
nil
defined in ../../common/UIDll/Source/FrontEnd/FrontendUIScriptInterface.cpp, line 277
-
frontend.campaign_saves_exist()
-
Returns whether any singleplayer campaign save files exists.
Returns:
saves existboolean
defined in ../../common/UIDll/Source/FrontEnd/FrontendUIScriptInterface.cpp, line 301
-
frontend.campaign_saves_exist_mp()
-
Returns whether any multiplayer campaign save files exists.
Returns:
saves existboolean
defined in ../../common/UIDll/Source/FrontEnd/FrontendUIScriptInterface.cpp, line 315