# Player Upgrade Changed
Grammar — Player p upgrade changes
Flags —Native
|Event
This event fires when the specified upgrade for the specified player change levels. Use “Triggering Player” to get the player. Use “Triggering Upgrade” to get the upgrade that changed. Use “Trigger Upgrade Level Delta” to get the upgrade that changed.
# Arguments
int
— Player
Returns — void
native void TriggerAddEventUpgradeLevelChanged(
trigger inTrigger,
int player,
);
# Related
Category: Tech Tree / Upgrades
- Triggering Upgrade —
string
<gamelink::Upgrade> — EventUpgradeName - Trigger Upgrade Level Delta —
int
— EventUpgradeLevelDelta - Player Upgrade Changed —
void
— TriggerAddEventUpgradeLevelChanged
# Examples
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:15857
libCOMI_gt_CM_Alarak_Upgrade = TriggerCreate("libCOMI_gt_CM_Alarak_Upgrade_Func");
TriggerEnable(libCOMI_gt_CM_Alarak_Upgrade, false);
TriggerAddEventUpgradeLevelChanged(libCOMI_gt_CM_Alarak_Upgrade, c_playerAny);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:19849
libCOMI_gt_CM_Horner_MTO_Upgrade = TriggerCreate("libCOMI_gt_CM_Horner_MTO_Upgrade_Func");
TriggerEnable(libCOMI_gt_CM_Horner_MTO_Upgrade, false);
TriggerAddEventUpgradeLevelChanged(libCOMI_gt_CM_Horner_MTO_Upgrade, c_playerAny);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:20822
libCOMI_gt_CM_KaraxRepairBeamLimit = TriggerCreate("libCOMI_gt_CM_KaraxRepairBeamLimit_Func");
TriggerEnable(libCOMI_gt_CM_KaraxRepairBeamLimit, false);
TriggerAddEventUpgradeLevelChanged(libCOMI_gt_CM_KaraxRepairBeamLimit, c_playerAny);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:22090
libCOMI_gt_CM_Mengsk_PropagandaUpgraded = TriggerCreate("libCOMI_gt_CM_Mengsk_PropagandaUpgraded_Func");
TriggerEnable(libCOMI_gt_CM_Mengsk_PropagandaUpgraded, false);
TriggerAddEventUpgradeLevelChanged(libCOMI_gt_CM_Mengsk_PropagandaUpgraded, c_playerAny);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:24021
libCOMI_gt_CM_Stetmann_Set = TriggerCreate("libCOMI_gt_CM_Stetmann_Set_Func");
TriggerEnable(libCOMI_gt_CM_Stetmann_Set, false);
TriggerAddEventUpgradeLevelChanged(libCOMI_gt_CM_Stetmann_Set, c_playerAny);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:27092
libCOMI_gt_CM_ZeratulProphecyEventArtifactUsed = TriggerCreate("libCOMI_gt_CM_ZeratulProphecyEventArtifactUsed_Func");
TriggerEnable(libCOMI_gt_CM_ZeratulProphecyEventArtifactUsed, false);
TriggerAddEventUpgradeLevelChanged(libCOMI_gt_CM_ZeratulProphecyEventArtifactUsed, c_playerAny);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:28443
libCOMI_gt_CM_Zeratul_ArtifactRush = TriggerCreate("libCOMI_gt_CM_Zeratul_ArtifactRush_Func");
TriggerEnable(libCOMI_gt_CM_Zeratul_ArtifactRush, false);
TriggerAddEventUpgradeLevelChanged(libCOMI_gt_CM_Zeratul_ArtifactRush, c_playerAny);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:28590
libCOMI_gt_CM_ZeratulArtifactUpgrades = TriggerCreate("libCOMI_gt_CM_ZeratulArtifactUpgrades_Func");
TriggerEnable(libCOMI_gt_CM_ZeratulArtifactUpgrades, false);
TriggerAddEventUpgradeLevelChanged(libCOMI_gt_CM_ZeratulArtifactUpgrades, c_playerAny);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:32752
libCOMI_gt_CM_ArtifactTransmission_Upgraded = TriggerCreate("libCOMI_gt_CM_ArtifactTransmission_Upgraded_Func");
TriggerEnable(libCOMI_gt_CM_ArtifactTransmission_Upgraded, false);
TriggerAddEventUpgradeLevelChanged(libCOMI_gt_CM_ArtifactTransmission_Upgraded, c_playerAny);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:10706
libCOMU_gt_CT_UpgradeChanged = TriggerCreate("libCOMU_gt_CT_UpgradeChanged_Func");
TriggerEnable(libCOMU_gt_CT_UpgradeChanged, false);
TriggerAddEventUpgradeLevelChanged(libCOMU_gt_CT_UpgradeChanged, c_playerAny);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:6404
libCOOC_gt_CC_PrestigeUpgradeSupplement = TriggerCreate("libCOOC_gt_CC_PrestigeUpgradeSupplement_Func");
TriggerEnable(libCOOC_gt_CC_PrestigeUpgradeSupplement, false);
TriggerAddEventUpgradeLevelChanged(libCOOC_gt_CC_PrestigeUpgradeSupplement, c_playerAny);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:9463
libCOUI_gt_CU_ZeratulArtifactUpgraded = TriggerCreate("libCOUI_gt_CU_ZeratulArtifactUpgraded_Func");
TriggerEnable(libCOUI_gt_CU_ZeratulArtifactUpgraded, false);
TriggerAddEventUpgradeLevelChanged(libCOUI_gt_CU_ZeratulArtifactUpgraded, c_playerAny);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:9529
libCOUI_gt_CU_StetelliteMaxChargesChanged = TriggerCreate("libCOUI_gt_CU_StetelliteMaxChargesChanged_Func");
TriggerEnable(libCOUI_gt_CU_StetelliteMaxChargesChanged, false);
TriggerAddEventUpgradeLevelChanged(libCOUI_gt_CU_StetelliteMaxChargesChanged, c_playerAny);
}