# Achievements Are Disabled

Grammar — Achievements are disabled for p
FlagsNative | Function

# Arguments

  • int — Player

Returns — bool

native bool AchievementsDisabled(int player);

Category: Game / Achievements

# Examples

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13064

        lv__SectionName = libSwaC_gf_ZS_BankSectionName(lp_map, "CampaignSetting");
        libSwaC_gf_ZS_SaveTransitionVarInteger(lp_targetBank, lv__SectionName, ("ZerglingRespawn"), libSwaC_gv_zS_ZerglingRespawnCount, 0);
        libSwaC_gf_ZS_SaveTransitionVarBoolean(lp_targetBank, lv__SectionName, ("AchievementsDisabled"), AchievementsDisabled(1), false);
        if ((lp_resultFromSimulation == false) && (lp_resultFromVictoryAgain == false)) {
            lv__SectionName = libSwaC_gf_ZS_BankSectionName(lp_map, "CampaignSetting");

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13621


    // Implementation
    if (((AchievementsDisabled(1) == true) || (libSwaC_gv_zS_ArchivesReloading == true))) {
        return ;
    }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:14181


    SoundtrackStop(PlayerGroupAll(), c_soundtrackCategoryAmbience, true);
    if ((AchievementsDisabled(1) == false) && ((libSwaC_gf_CurrentMap() == "ZKorhal3") || (libSwaC_gv_zS_InCompletedCampaign == true))) {
        CampaignProgressEnableCampaignCompletedSaves(PlayerGroupAll(), true);
    }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:14185

    }

    if ((AchievementsDisabled(1) == false) && (libSwaC_gf_CurrentMap() == "ZKorhal3") && (libSwaC_gv_zS_InCompletedCampaign == false)) {
        CampaignProgressDeleteCampaignSave(PlayerGroupAll());
    }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:14217

    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryAmbience, "Ambience_Mission_Score_Screen", c_soundtrackCueAny, c_soundtrackIndexAny, false);
    libSwaC_gf_PrepareForStoryMode(c_gameOverVictory, libSwaC_gv_zSX_CampaignDifficulty);
    if (((AchievementsDisabled(1) == false) || (libSwaC_gf_CurrentMap() != "ZKorhal3")) && (libSwaC_gv_zSX_IsSimulation == false)) {
        libSwaC_gf_ZS_UpdateCampaignScreen(lp_mission);
    }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:14222


    TriggerExecute(libSwaC_gt_ZS_SaveCampaignStatsData, true, false);
    if (((AchievementsDisabled(1) == false) || (libSwaC_gf_CurrentMap() != "ZKorhal3"))) {
        TextExpressionSetToken("Param/Expression/lib_SwaC_0A349CF7", "A", libSwaC_gf_StoryMapNameLowerCase(lp_mission));
        libSwaC_gf_CreateStoryModeTransitionSave(TextExpressionAssemble("Param/Expression/lib_SwaC_0A349CF7"), StringToText(""));

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:666


    // Implementation
    if ((lib281DEC45_gv_zSS_CampaignComplete == true) && (AchievementsDisabled(1) == true)) {
        return ;
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6772

    // Automatic Variable Declarations
    // Implementation
    if ((AchievementsDisabled(1) == true)) {
        return ;
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7037

        lv__SectionName = libVoiC_gf_PC_BankSectionName(lp_map, "CampaignSetting");
        libVoiC_gf_PC_SaveTransitionVarInteger(lp_targetBank, lv__SectionName, ("MapInstanceID"), libVoiC_gv_pCX_MapInstanceID, 0);
        libVoiC_gf_PC_SaveTransitionVarBoolean(lp_targetBank, lv__SectionName, ("AchievementsDisabled"), AchievementsDisabled(1), false);
        if ((lp_resultFromSimulation == false) && (lp_resultFromVictoryAgain == false)) {
            lv__SectionName = libVoiC_gf_PC_BankSectionName(lp_map, "CampaignSetting");

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:7483


    // Implementation
    if (((AchievementsDisabled(1) == true) || (libVoiC_gv_pC_ArchivesReloading == true))) {
        return ;
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1478

    }

    if ((AchievementsDisabled(1) == false)) {
        CampaignProgressDeleteCampaignSave(PlayerGroupAll());
    }

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:2996

void libComC_gf_CC_CompletedSavesEnable () {
    // Implementation
    if ((AchievementsDisabled(1) == true)) {
        return ;
    }

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:3530


    // Implementation
    if (((AchievementsDisabled(1) == true) || (libComC_gv_cC_ArchivesReloading == true))) {
        return ;
    }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:5927

    // Automatic Variable Declarations
    // Implementation
    if ((AchievementsDisabled(1) == true)) {
        return ;
    }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:6228

        libA3DDD02B_gf_PP_SaveTransitionVarString(lp_targetBank, lv__SectionName, ("LastSuccessfulMission"), libA3DDD02B_gf_PP_StoryMapBankID(libA3DDD02B_gv_pPX_LastSuccessfulMission), "");
        lv__SectionName = libA3DDD02B_gf_PP_BankSectionName(lp_map, "CampaignSetting");
        libA3DDD02B_gf_PP_SaveTransitionVarBoolean(lp_targetBank, lv__SectionName, ("AchievementsDisabled"), AchievementsDisabled(1), false);
        if ((lp_resultFromSimulation == false) && (lp_resultFromVictoryAgain == false)) {
            lv__SectionName = libA3DDD02B_gf_PP_BankSectionName(lp_map, "CampaignSetting");

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:6489


    // Implementation
    if (((AchievementsDisabled(1) == true) || (libA3DDD02B_gv_pP_ArchivesReloading == true))) {
        return ;
    }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:7005

    }

    if ((AchievementsDisabled(1) == false) && (lp_mission == "VoidPrologue03") && (libA3DDD02B_gv_pP_InCompletedCampaign == false)) {
        CampaignProgressDeleteCampaignSave(PlayerGroupAll());
    }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:7017

    }

    if (((AchievementsDisabled(1) == false) || (lp_mission != "VoidPrologue03"))) {
        TextExpressionSetToken("Param/Expression/lib_A3DDD02B_0A349CF7", "A", libA3DDD02B_gf_StoryMapNameLowerCase(lp_mission));
        libA3DDD02B_gf_CreateStoryModeTransitionSave(TextExpressionAssemble("Param/Expression/lib_A3DDD02B_0A349CF7"), StringToText(""));