# Disable Achievements
Grammar — Disable all achievements for p
Flags —Native
|Action
# Arguments
int
— Player
Returns — void
native void AchievementsDisable(int player);
# Related
Category: Game / Achievements
- Award Achievement —
void
— AchievementAward - Set Achievement Term Quantity —
void
— AchievementTermQuantitySet - Add To Achievement Term Quantity —
void
— AchievementTermQuantityAdd - Erase Achievement —
void
— AchievementErase - Disable Achievements —
void
— AchievementsDisable - Achievements Are Disabled —
bool
— AchievementsDisabled - Get Achievement Percent Text —
text
— AchievementPercentText - Set Achievement Panel Category —
void
— AchievementPanelSetCategory
# Examples
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:8221
libCamp_gf_TS_UpdateStoryStates();
if ((libCamp_gf_StoryState(libCamp_ge_StoryStateID_StoryStateAchievementDisabled) > 0)) {
AchievementsDisable(1);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13161
libSwaC_gv_zS_ZerglingRespawnCount = libSwaC_gf_ZS_LoadTransitionVarInteger(lp_sourceBank, lv__SectionName, ("ZerglingRespawn"), 0);
if ((libSwaC_gf_ZS_LoadTransitionVarBoolean(lp_sourceBank, lv__SectionName, ("AchievementsDisabled"), false) == true)) {
AchievementsDisable(1);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7135
libVoiC_gv_pCX_MapInstanceID += 1;
if ((libVoiC_gf_PC_LoadTransitionVarBoolean(lp_sourceBank, lv__SectionName, ("AchievementsDisabled"), false) == true)) {
AchievementsDisable(1);
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6299
libA3DDD02B_gf_PP_SetCampaignDifficulty(libA3DDD02B_gf_PP_DifficultyFromIndex(libA3DDD02B_gf_PP_LoadTransitionVarInteger(lp_sourceBank, lv__SectionName, ("Difficulty"), 0)));
if ((libA3DDD02B_gf_PP_LoadTransitionVarBoolean(lp_sourceBank, lv__SectionName, ("AchievementsDisabled"), false) == true)) {
AchievementsDisable(1);
}