# Create Saved Game

Grammar — Create a saved game with name name and description description using image image and auto save set to automatic
FlagsNative | Action | Restricted

Creates a saved game. This action has the side effect of suspending the current trigger until the next game loop.

# Arguments

  • text — Name
  • text — Description
  • string — Image
  • bool — Automatic

Returns — void

native void GameSaveCreate(
	text inName,
	text inDescription,
	string inImage,
	bool inAutomatic,
);

Category: Game / Game Settings

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L13869
GameSaveCreate(lv_name, StringToText(""), "", true)
// L13869
GameSaveCreate(lv_name, StringToText(""), "", true)

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L799
GameSaveCreate(lv_name, lp_description, "", true)
// L9498
GameSaveCreate(lp_name, lp_transition, "", true)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L3675
GameSaveCreate(lv_name, lp_description, lv_image, true)
// L12886
GameSaveCreate(lp_name, lp_transition, lv_image, true)

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L684
GameSaveCreate(libSwaC_gf_StoryMapName(libSwaC_gf_CurrentMap()), StringToText(""), lv_image, true)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L6496
GameSaveCreate(lp_name, lp_transition, lv_image, true)
// L6757
GameSaveCreate(TextExpressionAssemble("Param/Expression/lib_VoiC_37BD8C51"), StringToText(""), "", true)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L245
GameSaveCreate(lv_name, lp_description, "", true)

# campaigns/voidstory.sc2campaign

VoidCampaignStoryLib.galaxy

// L974
GameSaveCreate(TextExpressionAssemble("Param/Expression/lib_VCST_9B920DB7"), StringToText(""), lv_image, true)

# mods/heroesdata.stormmod

SupportLib.galaxy

// L7704
GameSaveCreate(StringExternal("Param/Value/lib_Sprt_D009FA2B"), StringExternal("Param/Value/lib_Sprt_F0890456"), "", false)

# mods/missionpacks/campaigncommon.sc2mod

LibComC.galaxy

// L2885
GameSaveCreate(lp_name, lp_transition, lv_image, true)

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L1705
GameSaveCreate(lv_name, lp_description, "", true)

# mods/missionpacks/novacampaign.sc2mod

LibNCST.galaxy

// L876
GameSaveCreate(TextExpressionAssemble("Param/Expression/lib_NCST_9B920DB7"), StringToText(""), lv_image, true)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L538
GameSaveCreate(lv_name, lp_description, "", true)

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L2392
GameSaveCreate(lv_name, lp_description, lv_image, true)
// L6028
GameSaveCreate(lp_name, lp_transition, lv_image, true)