# Research

Grammar — Research upgrade upgradeType|Upgrade in player player’s town town with priority priority
FlagsNative | Action

Instructs the AI to research the specified upgrade.

# Arguments

  • int — Player
  • int — Priority
  • int — Town
  • string [ gamelink::Upgrade ] — Upgrade Type

Returns — void

native void AIResearch(
	int player,
	int priority,
	int town,
	string aliasUpgradeType,
);

Category: AI Advanced / Construction / Actions

# Examples

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L852
AIResearch(lp_player, 4, -1, lp_upgrade)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L3927
AIResearch(lp_player, 4, -1, lp_upgrade)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L2492
AIResearch(lp_player, 4, -1, lp_upgrade)

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L2837
AIResearch(lp_player, 4, -1, lp_upgrade)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L9037
AIResearch(lp_player, 4, -1, lp_upgrade)

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L2716
AIResearch(lp_player, 4, -1, lp_upgrade)

# mods/warcoop/warmeleeai.sc2mod

Orc.galaxy

// L28
AIResearch(player,0,-1,aliasType)