# Add Mission Archive

Grammar — Add a state type mission archive buttonText|Name for playerGroup
FlagsNative | Action

Adds a mission or scene to the mission archives panel for the specified players. Use “Last Created Mission Archive” to get the mission archive created through this action.

# Arguments

Returns — void

native int BattleReportCreate(
	playergroup inPlayerGroup,
	text inText,
	int inType,
	int inState,
);

Category: Story / Mission Archives Panel

# Examples

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L4169
BattleReportCreate(PlayerGroupAll(), libCamp_gf_MissionNameInUpperCase(lp_mission), c_battleReportTypeMission, lp_state)
// L4255
BattleReportCreate(PlayerGroupAll(), TextExpressionAssemble("Param/Expression/lib_Camp_880903F1"), c_battleReportTypeScene, c_battleReportStateCompleted)
// L4258
BattleReportCreate(PlayerGroupAll(), libCamp_gv_tS_SceneNames[lv_indexScene], c_battleReportTypeScene, c_battleReportStateCompleted)

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L6032
BattleReportCreate(PlayerGroupAll(), libSwaC_gf_StoryMapName(lv_mission), c_battleReportTypeMission, c_battleReportStateCompleted)
// L6038
BattleReportCreate(PlayerGroupAll(), libSwaC_gf_StoryMapName(lv_mission), c_battleReportTypeMission, c_battleReportStateHidden)
// L6059
BattleReportCreate(PlayerGroupAll(), libSwaC_gf_StoryMapName(lv_mission), c_battleReportTypeMission, c_battleReportStateCompleted)
// L6062
BattleReportCreate(PlayerGroupAll(), libSwaC_gf_StoryMapName(lv_mission), c_battleReportTypeMission, c_battleReportStateNormal)
// L6068
BattleReportCreate(PlayerGroupAll(), libSwaC_gf_StoryMapName(lv_mission), c_battleReportTypeMission, c_battleReportStateHidden)
// L6087
BattleReportCreate(PlayerGroupAll(), libSwaC_gf_StorySceneName(lv_scene), c_battleReportTypeScene, c_battleReportStateCompleted)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L6990
BattleReportCreate(PlayerGroupAll(), libVoiC_gf_PC_CampaignMapName(lv_indexMission), c_battleReportTypeMission, c_battleReportStateCompleted)
// L6996
BattleReportCreate(PlayerGroupAll(), libVoiC_gf_PC_CampaignMapName(lv_indexMission), c_battleReportTypeMission, c_battleReportStateHidden)
// L7014
BattleReportCreate(PlayerGroupAll(), libVoiC_gf_StorySceneName(lv_indexScene), c_battleReportTypeScene, c_battleReportStateCompleted)

# mods/missionpacks/novacampaign.sc2mod

LibNCUI.galaxy

// L4233
BattleReportCreate(PlayerGroupAll(), libComC_gf_CC_MapName(lv_indexMission), c_battleReportTypeMission, c_battleReportStateCompleted)
// L4239
BattleReportCreate(PlayerGroupAll(), libComC_gf_CC_MapName(lv_indexMission), c_battleReportTypeMission, c_battleReportStateHidden)
// L4257
BattleReportCreate(PlayerGroupAll(), libComC_gf_CC_SceneName(lv_indexScene), c_battleReportTypeScene, c_battleReportStateCompleted)

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L9649
BattleReportCreate(PlayerGroupAll(), libA3DDD02B_gf_StoryMapName(lv_indexMission), c_battleReportTypeMission, c_battleReportStateCompleted)
// L9667
BattleReportCreate(PlayerGroupAll(), libA3DDD02B_gf_StorySceneName(lv_indexScene), c_battleReportTypeScene, c_battleReportStateCompleted)