# Set Achievement Panel Category
Grammar — Set achievement panel category to category for players
Flags —Native
|Action
|Restricted
This feature only works on Blizzard-signed maps.
# Arguments
playergroup
— Playersstring
<gamelink::Achievement> — Category
Returns — void
native void AchievementPanelSetCategory(
playergroup players,
string name,
);
# 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:2123
lv_defaultAchievement = libCamp_gv_tS_MapAchievements[(libCamp_gv_tS_CurrentMap)][1];
if ((lv_defaultAchievement != null)) {
AchievementPanelSetCategory(PlayerGroupAll(), lv_defaultAchievement);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12680
UserDataSetInt("Maps", libSwaC_gf_ZS_MapUserDataInstance(lp_map), "IsCurrent", 1, 1);
libSwaC_gv_zS_InStoryMode = libSwaC_gf_StoryMapTypeCheck(libSwaC_gf_CurrentMap(), c_mapKindStory);
AchievementPanelSetCategory(PlayerGroupAll(), UserDataGetGameLink("Maps", libSwaC_gf_ZS_MapUserDataInstance(lp_map), "Achievements", 1));
TriggerDebugOutput(1, StringExternal("Param/Value/lib_SwaC_ED876F0C"), false);
libSwaC_gf_ZS_LoadAllTransitionData(lp_map);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:1655
// Implementation
if ((libVoiC_gf_PC_CampaignMapTypeCheck(libVoiC_gf_CurrentMap(), c_mapKindMission) == true)) {
AchievementPanelSetCategory(PlayerGroupAll(), UserDataGetGameLink("Maps", libVoiC_gf_PC_MapUserDataInstance(libVoiC_gf_CurrentMap()), "Achievements", 1));
}
else {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:1658
}
else {
AchievementPanelSetCategory(PlayerGroupAll(), "PStoryTalk");
}
}
mods/challenges.sc2mod — base.sc2data/LibChal.galaxy:1881
// Implementation
libChal_gf_CHL_InitChallengeData();
AchievementPanelSetCategory(PlayerGroupAll(), "Challenge_TerranCombat_Basic");
libChal_gv_cHL_CurrentType = lp_type;
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:145
// Implementation
if ((libComC_gf_CampaignMapTypeCheck(libComC_gf_CurrentMap(), c_mapKindMission) == true) && (UserDataGetGameLink("Maps", libComC_gf_CC_MapUserDataInstance(libComC_gf_CurrentMap()), "Achievements", 1) != null)) {
AchievementPanelSetCategory(PlayerGroupAll(), UserDataGetGameLink("Maps", libComC_gf_CC_MapUserDataInstance(libComC_gf_CurrentMap()), "Achievements", 1));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:4344
UserDataSetInt("Maps", libCOOC_gf_CC_MapUserDataInstance(libCOOC_gv_cC_CurrentMap), "IsCurrent", 1, 1);
if ((libCOOC_gv_cC_InContestMap == false)) {
AchievementPanelSetCategory(PlayerGroupAll(), "DifficultyRecruit1");
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:5837
UserDataSetInt("Maps", libA3DDD02B_gf_PP_MapUserDataInstance(lp_map), "IsCurrent", 1, 1);
libA3DDD02B_gv_pP_InStoryMode = libA3DDD02B_gf_StoryMapTypeCheck(libA3DDD02B_gf_CurrentMap(), c_mapKindStory);
AchievementPanelSetCategory(PlayerGroupAll(), UserDataGetGameLink("Maps", libA3DDD02B_gf_PP_MapUserDataInstance(lp_map), "Achievements", 1));
TriggerDebugOutput(1, StringExternal("Param/Value/lib_A3DDD02B_ED876F0C"), false);
libA3DDD02B_gf_PP_LoadAllTransitionData(lp_map);