# Campaign Mode
Grammar — Turn campaign mode onOff for players
Flags —Native
|Action
|Restricted
Turns campaign mode on or off for a player group. This will only work for Blizzard maps.
# Arguments
playergroup
— Playersbool
<preset::OnOffOption> — On/Off
Returns — void
native void CampaignMode(
playergroup players,
bool campaignMode,
);
# Related
Category: Story / Modes And Sets
- Campaign Mode —
void
— CampaignMode - Story Create Planet Panel —
void
— StoryCreatePlanetPanel - Story Mode —
void
— libNtve_gf_StoryMode - Player In Story Mode —
bool
— libNtve_gf_PlayerInStoryMode - Story Set Change —
void
— StorySetChange
# Examples
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:8193
// Implementation
CampaignMode(PlayerGroupAll(), true);
libNtve_gf_AddRemoveUIFrameTypeForGlobalFilterList(true, c_syncFrameTypeTextTag);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeTeamResourceButton, false);
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12673
// Implementation
CampaignMode(PlayerGroupAll(), true);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeTeamResourceButton, false);
libNtve_gf_AddRemoveUIFrameTypeForGlobalFilterList(true, c_syncFrameTypeTextTag);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6510
// Implementation
CampaignMode(PlayerGroupAll(), true);
libNtve_gf_AddRemoveUIFrameTypeForGlobalFilterList(true, c_syncFrameTypeTextTag);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeTeamResourceButton, false);
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:349
// Implementation
TriggerDebugSetTypeFile(1, "StoryModeDebug.txt");
CampaignMode(PlayerGroupAll(), true);
libNtve_gf_AddRemoveUIFrameTypeForGlobalFilterList(true, c_syncFrameTypeTextTag);
libComC_gv_cC_CurrentMap = lp_storyMap;
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:5829
// Implementation
CampaignMode(PlayerGroupAll(), true);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeTeamResourceButton, false);
libNtve_gf_AddRemoveUIFrameTypeForGlobalFilterList(true, c_syncFrameTypeTextTag);