# Create Research Item

Grammar — Create a new research item in slot slot of researchTier for players|PlayerGroup
FlagsNative | Action

Creates a new research item for the research panel. Use “Last Created Research Item” to get the research item created by this action.

# Arguments

  • playergroup — Players
  • int<preset::ResearchTier> — Research Tier
  • int — Slot

Returns — int<preset::ResearchItem>

native int ResearchItemCreate(
	playergroup inPlayerGroup,
	int inResearchTierId,
	int inState,
);

Category: Story / Research Panel

# Examples

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

        lv_tierIndex = libCamp_gf_TS_StoryResearchTier(lv_indexResearch);
        lv_slotIndex = libCamp_gf_TS_StoryResearchSlot(lv_indexResearch);
        ResearchItemCreate(PlayerGroupAll(), libCamp_gv_tS_ResearchUITiers[lv_categoryIndex][lv_tierIndex], lv_slotIndex);
        libCamp_gv_tS_ResearchUIItem[(lv_indexResearch)] = ResearchItemLastCreated();
        lv_uIItem[lv_categoryIndex][lv_tierIndex][lv_slotIndex] = ResearchItemLastCreated();