# Player Property (Real)
Grammar — Player p prop
Flags —Native
|Function
Returns the value of the specified player property as a real.
# Arguments
int
— Playerint
<preset::Player_Property_Get> — Property
Returns — fixed
native fixed PlayerGetPropertyFixed(
int inPlayer,
int inProp,
);
# Related
Category: Player / Player Settings
- Modify Player Property (Integer) —
void
— PlayerModifyPropertyInt - Modify Player Property (Real) —
void
— PlayerModifyPropertyFixed - Player Property (Integer) —
int
— PlayerGetPropertyInt - Player Property (Real) —
fixed
— PlayerGetPropertyFixed - Modify Player Score (Integer) —
void
— PlayerScoreValueSetFromInt - Modify Player Score (Real) —
void
— PlayerScoreValueSetFromFixed - Player Score Value (Integer) —
int
— PlayerScoreValueGetAsInt - Player Score Value (Real) —
fixed
— PlayerScoreValueGetAsFixed - Turn Player Flag On/Off —
void
— PlayerSetState - Player Flag Check —
bool
— PlayerGetState - Player License Check —
bool
— PlayerHasLicense - Player Access Check —
bool
— PlayerHasAccessTo - Player Has Reward —
bool
— PlayerHasReward - Player Has Talent —
bool
— PlayerHasTalent - Name Of Player —
text
— PlayerName - Handle Of Player —
string
— PlayerHandle - Race Of Player —
string
<gamelink::Race> — PlayerRace - Hero Of Player —
string
<gamelink::Hero> — PlayerHero - Skin Of Player —
string
<gamelink::Skin> — PlayerSkin - Mount Of Player —
string
<gamelink::Mount> — PlayerMount - Spray Of Player —
string
<gamelink::Spray> — PlayerSpray - Artifact Of Player —
string
<gamelink::Artifact> — PlayerArtifact - Artifact Rank Of Player —
int
— PlayerArtifactRank - Commander Of Player —
string
<gamelink::Commander> — PlayerCommander - Commander Level Of Player —
int
— PlayerCommanderLevel - Commander Mastery Level Of Player —
int
— PlayerCommanderMasteryLevel - Commander Mastery Talent Rank Of Player —
int
— PlayerCommanderMasteryTalentRank - Commander Selected Prestige Of Player —
int
— PlayerCommanderSelectedPrestige - Brutal Plus Difficulty of Player —
int
— PlayerBrutalPlusDifficulty - Retry Mutation Index of Player —
int
— PlayerRetryMutation - Allied Commander Enemy Wave Type —
int
— PlayerACEnemyWaveType - Start Location Of Player —
point
— PlayerStartLocation - Controller Of Player —
int
<preset::PlayerController> — PlayerType - Status Of Player —
int
<preset::PlayerStatus> — PlayerStatus - Set Player Color —
void
— PlayerSetColorIndex - Set Player Race —
void
— PlayerSetRace - Set Player Hero —
void
— PlayerSetHero - Set Player Skin —
void
— PlayerSetSkin - Set Player Console Skin —
void
— PlayerSetConsoleSkin - Apply Player Skin —
void
— PlayerApplySkin - Apply Player Skin (Replacing Existing Unit) —
void
— libNtve_gf_PlayerApplySkinReplacingExistingUnit - Set Player Mount —
void
— PlayerSetMount - Set Player Spray —
void
— PlayerSetSpray - Set Player Commander —
void
— PlayerSetCommander - Set Player Commander Level —
void
— PlayerSetCommanderLevel - Set Player Commander Mastery Level —
void
— PlayerSetCommanderMasteryLevel - Set Player Death Timer —
void
— PlayerSetDeathTimer - Set Player Bounds —
void
— PlayerSetBounds - Add Player Talent —
void
— PlayerAddTalent - Remove Player Talent —
void
— PlayerRemoveTalent - Add Player Response —
void
— PlayerAddResponse - Remove Player Response —
void
— PlayerRemoveResponse - Clear Player Response —
void
— PlayerClearResponse - Player Color —
int
<playercolor> — PlayerGetColorIndex - Override Player Option —
void
— PlayerOptionOverride - Player Hotkey Profile —
string
— PlayerGetHotkeyProfile - Player Property Changed —
void
— TriggerAddEventPlayerPropChange - Player Joins Game —
void
— TriggerAddEventPlayerJoin - Player Leaves Game —
void
— TriggerAddEventPlayerLeft - Triggering Player —
int
— EventPlayer - Triggering Player Property —
int
<preset::Player_Property_Get> — EventPlayerProperty - Triggering Player Property Change (Integer) —
int
— EventPlayerPropertyChangeInt - Triggering Player Property Change (Real) —
fixed
— EventPlayerPropertyChangeFixed - Player Add Label —
void
— PlayerAddLabel - Player Remove Label —
void
— PlayerRemoveLabel - Player Remove All Labels —
void
— PlayerRemoveAllLabels - Player Has Label —
bool
— PlayerHasLabel - Player Add Reward —
void
— PlayerAddReward
# Examples
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:4489
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libSwaC_gv_zS_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:4489
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libSwaC_gv_zS_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:16493
if ((libSwaC_gv_zS_NeedOverlordEnabled == true) && (libNtve_gf_PlayerInCinematicMode(1) == false) && ((TechTreeUnitCount(1, "Hatchery", c_techCountQueuedOrBetter) > 0) || (TechTreeUnitCount(1, "Lair", c_techCountQueuedOrBetter) > 0) || (TechTreeUnitCount(1, "Hive", c_techCountQueuedOrBetter) > 0))) {
lv_made = PlayerGetPropertyFixed(1, c_playerPropSuppliesMade);
lv_used = PlayerGetPropertyFixed(1, c_playerPropSuppliesUsed);
lv_limit = PlayerGetPropertyFixed(1, c_playerPropSuppliesLimit);
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:16494
if ((libSwaC_gv_zS_NeedOverlordEnabled == true) && (libNtve_gf_PlayerInCinematicMode(1) == false) && ((TechTreeUnitCount(1, "Hatchery", c_techCountQueuedOrBetter) > 0) || (TechTreeUnitCount(1, "Lair", c_techCountQueuedOrBetter) > 0) || (TechTreeUnitCount(1, "Hive", c_techCountQueuedOrBetter) > 0))) {
lv_made = PlayerGetPropertyFixed(1, c_playerPropSuppliesMade);
lv_used = PlayerGetPropertyFixed(1, c_playerPropSuppliesUsed);
lv_limit = PlayerGetPropertyFixed(1, c_playerPropSuppliesLimit);
if (((lv_made + (TechTreeUnitCount(1, "Overlord", c_techCountInProgressOnly) * StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, "Overlord", "Food", 1)))) < lv_limit) && ((lv_made + (TechTreeUnitCount(1, "Overlord", c_techCountInProgressOnly) * StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, "Overlord", "Food", 1)))) <= ((lv_used + libSwaC_gv_zS_NeedOverlordFoodRequired) - 0.1))) {
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:16495
lv_made = PlayerGetPropertyFixed(1, c_playerPropSuppliesMade);
lv_used = PlayerGetPropertyFixed(1, c_playerPropSuppliesUsed);
lv_limit = PlayerGetPropertyFixed(1, c_playerPropSuppliesLimit);
if (((lv_made + (TechTreeUnitCount(1, "Overlord", c_techCountInProgressOnly) * StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, "Overlord", "Food", 1)))) < lv_limit) && ((lv_made + (TechTreeUnitCount(1, "Overlord", c_techCountInProgressOnly) * StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, "Overlord", "Food", 1)))) <= ((lv_used + libSwaC_gv_zS_NeedOverlordFoodRequired) - 0.1))) {
if ((libSwaC_gv_zS_NeedOverlordAbilityHighlightOn == false)) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2538
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libVCMI_gv_pM_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2538
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libVCMI_gv_pM_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:7397
if ((libVCMI_gv_pM_NeedPylonEnabled == true) && (libNtve_gf_PlayerInCinematicMode(1) == false) && (TechTreeUnitCount(1, "Nexus", c_techCountQueuedOrBetter) > 0)) {
lv_made = PlayerGetPropertyFixed(1, c_playerPropSuppliesMade);
lv_used = PlayerGetPropertyFixed(1, c_playerPropSuppliesUsed);
lv_limit = PlayerGetPropertyFixed(1, c_playerPropSuppliesLimit);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:7398
if ((libVCMI_gv_pM_NeedPylonEnabled == true) && (libNtve_gf_PlayerInCinematicMode(1) == false) && (TechTreeUnitCount(1, "Nexus", c_techCountQueuedOrBetter) > 0)) {
lv_made = PlayerGetPropertyFixed(1, c_playerPropSuppliesMade);
lv_used = PlayerGetPropertyFixed(1, c_playerPropSuppliesUsed);
lv_limit = PlayerGetPropertyFixed(1, c_playerPropSuppliesLimit);
if (((lv_made + (TechTreeUnitCount(1, "Pylon", c_techCountInProgressOnly) * StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, "Pylon", "Food", 1)))) < lv_limit) && ((lv_made + (TechTreeUnitCount(1, "Pylon", c_techCountInProgressOnly) * StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, "Pylon", "Food", 1)))) <= ((lv_used + libVCMI_gv_pM_NeedPylonFoodRequired) - 0.1))) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:7399
lv_made = PlayerGetPropertyFixed(1, c_playerPropSuppliesMade);
lv_used = PlayerGetPropertyFixed(1, c_playerPropSuppliesUsed);
lv_limit = PlayerGetPropertyFixed(1, c_playerPropSuppliesLimit);
if (((lv_made + (TechTreeUnitCount(1, "Pylon", c_techCountInProgressOnly) * StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, "Pylon", "Food", 1)))) < lv_limit) && ((lv_made + (TechTreeUnitCount(1, "Pylon", c_techCountInProgressOnly) * StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, "Pylon", "Food", 1)))) <= ((lv_used + libVCMI_gv_pM_NeedPylonFoodRequired) - 0.1))) {
if ((libVCMI_gv_pM_NeedPylonAbilityHighlightOn == false)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:444
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime));
lv_combatTime = (TimerGetElapsed(libGame_gv_gobalTimer) - lv_combatTime);
return (lv_combatTime < 3.0);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:444
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime));
lv_combatTime = (TimerGetElapsed(libGame_gv_gobalTimer) - lv_combatTime);
return (lv_combatTime < 3.0);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:461
}
lv_combatTime = PlayerGetPropertyFixed(1, c_playerPropDamageTakenTime);
lv_combatTime = (TimerGetElapsed(libGame_gv_gobalTimer) - lv_combatTime);
return (lv_combatTime < 3.0);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:478
}
lv_combatTime = PlayerGetPropertyFixed(1, c_playerPropDamageDealtTime);
lv_combatTime = (TimerGetElapsed(libGame_gv_gobalTimer) - lv_combatTime);
return (lv_combatTime < 3.0);
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibCMMI.galaxy:91
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libCMMI_gv_NM_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibCMMI.galaxy:91
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libCMMI_gv_NM_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:9197
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libCOMI_gv_cM_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:9197
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libCOMI_gv_cM_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:13164
lv_indexPlayer = PlayerGroupNextPlayer(autoAA8BF894_g, lv_indexPlayer);
if (lv_indexPlayer < 0) { break; }
lv_supplyDelta = (PlayerGetPropertyFixed(lv_indexPlayer, c_playerPropSuppliesUsed) - lv_combinedSupply);
libCOMU_gv_cT_SharedSupplyIndividual[lv_indexPlayer] += lv_supplyDelta;
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:3382
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libA3DDD02B_gv_pP_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:3382
}
lv_combatTime = MaxF(PlayerGetPropertyFixed(lp_player, c_playerPropDamageDealtTime), PlayerGetPropertyFixed(lp_player, c_playerPropDamageTakenTime));
lv_combatTime = (TimerGetElapsed(libA3DDD02B_gv_pP_CombatTimer) - lv_combatTime);
return (lv_combatTime < 4.0);