# Unit Research Progress
Grammar — u research progress is stage
Flags —Native
|Event
This event fires when a unit’s research progress reaches a certain point. Use “Triggering Player” to get the player that started the research. Use “Triggering Unit” to get the unit that is doing the research. Use “Triggering Progress Upgrade” to get the upgrade being researched.
# Arguments
unitref
<unit> — Unitint
<preset::Unit_Progress> — Stage
Returns — void
native void TriggerAddEventUnitResearchProgress(
trigger t,
unitref u,
int stage,
);
# Event parameters
- Triggering Game User — EventGameUser
- Triggering Player — EventPlayer
- Triggering Progress Unit — EventUnitProgressUnit
- Triggering Progress Upgrade — libNtve_gf_TriggeringProgressUpgrade
# Related
Category: Unit / Progress And Queues
- Set Unit Progress —
void
— UnitSetProgressComplete - Unit Progress (Percent) —
fixed
— UnitGetProgressComplete - Pause/Resume/Cancel Unit Progress Bar —
void
— UnitSetProgressStage - Unit Progress Bar Check —
bool
— UnitCheckProgressState - Unit Is Under Construction —
bool
— libNtve_gf_UnitIsUnderConstruction - Unit Arming Progress —
void
— TriggerAddEventUnitArmMagazineProgress - Unit Construction Progress —
void
— TriggerAddEventUnitConstructProgress - Unit Learn Progress —
void
— TriggerAddEventUnitLearnProgress - Unit Research Progress —
void
— TriggerAddEventUnitResearchProgress - Unit Revive Progress —
void
— TriggerAddEventUnitReviveProgress - Unit Specialization Progress —
void
— TriggerAddEventUnitSpecializeProgress - Unit Training Progress —
void
— TriggerAddEventUnitTrainProgress - Triggering Progress Object —
string
<gamelink> — EventUnitProgressObjectType - Triggering Progress Ability —
string
<gamelink::Abil> — libNtve_gf_TriggeringProgressAbility - Triggering Progress Effect —
string
<gamelink::Effect> — libNtve_gf_TriggeringProgressEffect - Triggering Progress Unit —
unit
— EventUnitProgressUnit - Triggering Progress Unit Type —
string
<gamelink::Unit> — libNtve_gf_TriggeringProgressUnitType - Triggering Progress Upgrade —
string
<gamelink::Upgrade> — libNtve_gf_TriggeringProgressUpgrade - Number Of Items In Training Queue Slot —
int
— UnitQueueItemCount - Queued Object In Training Queue Slot —
string
<gamelink> — UnitQueueItemGet - Queued Behavior Type In Training Queue Slot —
string
<gamelink::Behavior> — libNtve_gf_QueuedBehaviorTypeInTrainingQueueSlot - Queued Unit Type In Training Queue Slot —
string
<gamelink::Unit> — libNtve_gf_QueuedUnitTypeInTrainingQueueSlot - Queued Upgrade Type In Training Queue Slot —
string
<gamelink::Upgrade> — libNtve_gf_QueuedUpgradeTypeInTrainingQueueSlot - Training Queue Property Of Unit —
int
— UnitQueueGetProperty - Training Queue Slot Type Check —
bool
— UnitQueueItemTypeCheck - Training Queue Time —
fixed
— UnitQueueItemTime
# Examples
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:5530
void gt_EvolutionUpgradePurchased_Init () {
gt_EvolutionUpgradePurchased = TriggerCreate("gt_EvolutionUpgradePurchased_Func");
TriggerAddEventUnitResearchProgress(gt_EvolutionUpgradePurchased, null, c_unitProgressStageStart);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2map — MapScript.galaxy:5530
void gt_EvolutionUpgradePurchased_Init () {
gt_EvolutionUpgradePurchased = TriggerCreate("gt_EvolutionUpgradePurchased_Func");
TriggerAddEventUnitResearchProgress(gt_EvolutionUpgradePurchased, null, c_unitProgressStageStart);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:18823
libSwaC_gt_ZS_CampaignStatsWeaponArmorUpgrades = TriggerCreate("libSwaC_gt_ZS_CampaignStatsWeaponArmorUpgrades_Func");
TriggerEnable(libSwaC_gt_ZS_CampaignStatsWeaponArmorUpgrades, false);
TriggerAddEventUnitResearchProgress(libSwaC_gt_ZS_CampaignStatsWeaponArmorUpgrades, null, c_unitProgressStageComplete);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:15185
libCOMI_gt_CM_Abathur_MeleeBonusUpgrade = TriggerCreate("libCOMI_gt_CM_Abathur_MeleeBonusUpgrade_Func");
TriggerEnable(libCOMI_gt_CM_Abathur_MeleeBonusUpgrade, false);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Abathur_MeleeBonusUpgrade, null, c_unitProgressStageComplete);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:18092
libCOMI_gt_CM_Fenix_AchievementCarrierResearched = TriggerCreate("libCOMI_gt_CM_Fenix_AchievementCarrierResearched_Func");
TriggerEnable(libCOMI_gt_CM_Fenix_AchievementCarrierResearched, false);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_AchievementCarrierResearched, null, c_unitProgressStageComplete);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:18840
libCOMI_gt_CM_Fenix_ChampionUpgradeResearched = TriggerCreate("libCOMI_gt_CM_Fenix_ChampionUpgradeResearched_Func");
TriggerEnable(libCOMI_gt_CM_Fenix_ChampionUpgradeResearched, false);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ChampionUpgradeResearched, null, c_unitProgressStageComplete);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:19266
libCOMI_gt_CM_Fenix_ConclaiveTrainStart = TriggerCreate("libCOMI_gt_CM_Fenix_ConclaiveTrainStart_Func");
TriggerEnable(libCOMI_gt_CM_Fenix_ConclaiveTrainStart, false);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStart, null, c_unitProgressStageStart);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStart, null, c_unitProgressStageResume);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:19267
TriggerEnable(libCOMI_gt_CM_Fenix_ConclaiveTrainStart, false);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStart, null, c_unitProgressStageStart);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStart, null, c_unitProgressStageResume);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:19296
libCOMI_gt_CM_Fenix_ConclaiveTrainStop = TriggerCreate("libCOMI_gt_CM_Fenix_ConclaiveTrainStop_Func");
TriggerEnable(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, false);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStagePause);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStageCancel);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStageComplete);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:19297
TriggerEnable(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, false);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStagePause);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStageCancel);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStageComplete);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:19298
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStagePause);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStageCancel);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Fenix_ConclaiveTrainStop, null, c_unitProgressStageComplete);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:26203
libCOMI_gt_CM_Tychus_UltimateAchievement = TriggerCreate("libCOMI_gt_CM_Tychus_UltimateAchievement_Func");
TriggerEnable(libCOMI_gt_CM_Tychus_UltimateAchievement, false);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Tychus_UltimateAchievement, null, c_unitProgressStageComplete);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:26401
libCOMI_gt_CM_Tychus_TriUnitSpeed_Upgrade = TriggerCreate("libCOMI_gt_CM_Tychus_TriUnitSpeed_Upgrade_Func");
TriggerEnable(libCOMI_gt_CM_Tychus_TriUnitSpeed_Upgrade, false);
TriggerAddEventUnitResearchProgress(libCOMI_gt_CM_Tychus_TriUnitSpeed_Upgrade, null, c_unitProgressStageComplete);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:6424
void libCOOC_gt_CC_SharedUpgradesRecheck_Init () {
libCOOC_gt_CC_SharedUpgradesRecheck = TriggerCreate("libCOOC_gt_CC_SharedUpgradesRecheck_Func");
TriggerAddEventUnitResearchProgress(libCOOC_gt_CC_SharedUpgradesRecheck, null, c_unitProgressStageComplete);
TriggerAddEventPlayerEffectUsed(libCOOC_gt_CC_SharedUpgradesRecheck, c_playerAny, "RefreshSharedUpgrades");
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:9357
libCOUI_gt_CU_TychusEquipmentUpgraded = TriggerCreate("libCOUI_gt_CU_TychusEquipmentUpgraded_Func");
TriggerEnable(libCOUI_gt_CU_TychusEquipmentUpgraded, false);
TriggerAddEventUnitResearchProgress(libCOUI_gt_CU_TychusEquipmentUpgraded, null, c_unitProgressStageComplete);
}