# Set Research Item State

Grammar — Set the state of researchItem|Researchable to state
FlagsNative | Action

Sets the enabled state of the specified research item.

# Arguments

Returns — void

native void ResearchItemSetState(
	int inResearchItemId,
	int inState,
);

Category: Story / Research Panel

# Examples

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

        ResearchItemSetTooltipText(ResearchItemLastCreated(), libCamp_gf_StoryResearchTooltip(lv_indexResearch));
        ResearchItemSetConfirmationText(ResearchItemLastCreated(), libCamp_gf_StoryResearchConfirmationText(lv_indexResearch));
        ResearchItemSetState(ResearchItemLastCreated(), c_researchItemStateEnabled);
        auto9C5BB20A_i = auto9C5BB20A_i + 1;
    }

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

        lv_indexResearch = libCamp_gv_tS_ResearchID[autoCE1E6292_i];
        ResearchItemSetTooltipText(libCamp_gv_tS_ResearchUIItem[(lv_indexResearch)], libCamp_gf_StoryResearchTooltip(lv_indexResearch));
        ResearchItemSetState(libCamp_gf_TS_StoryResearchUIItem(lv_indexResearch), c_researchItemStateEnabled);
        autoCE1E6292_i = autoCE1E6292_i + 1;
    }

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

        lv_indexResearch = libCamp_gv_tS_ResearchID[autoBAF0C87C_i];
        if ((libCamp_gf_StoryResearchStateCheck(lv_indexResearch, libCamp_ge_StoryResearchState_ResearchStatePurchased) == true)) {
            ResearchItemSetState(libCamp_gf_TS_StoryResearchUIItem(lv_indexResearch), c_researchItemStatePurchased);
            lv_otherResearch = libCamp_gf_TS_StoryResearchTheOtherOfTheSameTier(lv_indexResearch);
            ResearchItemSetState(libCamp_gf_TS_StoryResearchUIItem(lv_otherResearch), c_researchItemStateDisabled);

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

            ResearchItemSetState(libCamp_gf_TS_StoryResearchUIItem(lv_indexResearch), c_researchItemStatePurchased);
            lv_otherResearch = libCamp_gf_TS_StoryResearchTheOtherOfTheSameTier(lv_indexResearch);
            ResearchItemSetState(libCamp_gf_TS_StoryResearchUIItem(lv_otherResearch), c_researchItemStateDisabled);
            autoD1456021_val = libCamp_gf_StoryResearchCategory(lv_otherResearch);
            if (autoD1456021_val == libCamp_ge_StoryResearchCategory_ResearchCategoryProtoss) {