# Set Research Category Current Level

Grammar — Set the current level of researchCategory|Research Category to level
FlagsNative | Action

Sets the current level for the specified research category to the specified level.

# Arguments

Returns — void

native void ResearchCategorySetCurrentLevel(
	int inResearchCategoryId,
	int inLevel,
);

Category: Story / Research Panel

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:5475

    libCamp_gv_tS_ResearchUIExitEnabled = false;
    libCamp_gf_TS_ResearchUICreate();
    ResearchCategorySetCurrentLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)], libCamp_gv_tSX_ResearchUIOldPoints[(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)]);
    ResearchCategorySetCurrentLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)], libCamp_gv_tSX_ResearchUIOldPoints[(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)]);
    ResearchCategorySetLastLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)], libCamp_gv_tSX_ResearchUIOldPoints[(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)]);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:5476

    libCamp_gf_TS_ResearchUICreate();
    ResearchCategorySetCurrentLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)], libCamp_gv_tSX_ResearchUIOldPoints[(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)]);
    ResearchCategorySetCurrentLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)], libCamp_gv_tSX_ResearchUIOldPoints[(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)]);
    ResearchCategorySetLastLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)], libCamp_gv_tSX_ResearchUIOldPoints[(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)]);
    ResearchCategorySetLastLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)], libCamp_gv_tSX_ResearchUIOldPoints[(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)]);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:5586

    // Implementation
    libCamp_gf_TS_ResearchUICreate();
    ResearchCategorySetCurrentLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)], MinI(libCamp_gf_StoryResearchPointCap(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss), libCamp_gf_StoryResearchPoints(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)));
    ResearchCategorySetCurrentLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)], MinI(libCamp_gf_StoryResearchPointCap(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg), libCamp_gf_StoryResearchPoints(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)));
    autoCE1E6292_i = libCamp_gv_TSC_RESEARCH_FIRST;

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:5587

    libCamp_gf_TS_ResearchUICreate();
    ResearchCategorySetCurrentLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)], MinI(libCamp_gf_StoryResearchPointCap(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss), libCamp_gf_StoryResearchPoints(libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss)));
    ResearchCategorySetCurrentLevel(libCamp_gv_tS_ResearchUICategories[(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)], MinI(libCamp_gf_StoryResearchPointCap(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg), libCamp_gf_StoryResearchPoints(libCamp_ge_StoryResearchCategory_ResearchCategoryZerg)));
    autoCE1E6292_i = libCamp_gv_TSC_RESEARCH_FIRST;
    while (autoCE1E6292_i <= libCamp_gv_TSC_RESEARCH_LAST) {