# Modify Player Property (Real)
Grammar — Modify player p prop: operation|Add/Subtract/Set To val
Flags —Native|Action
Modifies player properties such as supplies limit as a real.
# Arguments
int— Playerint<preset::Player_Property_Get2> — Propertyint<preset::ModifyOperation> — Operationfixed— Value
Returns — void
native void PlayerModifyPropertyFixed(
int inPlayer,
int inProp,
int inOper,
fixed inVal,
);
# 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
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:3919
lv_itPlayerIndex = 1;
for ( ; lv_itPlayerIndex <= autoDED2316F_ae ; lv_itPlayerIndex += 1 ) {
PlayerModifyPropertyFixed(lv_itPlayerIndex, c_playerPropDamageDealtPercent, c_playerPropOperSetTo, 0.0);
PlayerModifyPropertyFixed(lv_itPlayerIndex, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, 0.0);
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:3920
for ( ; lv_itPlayerIndex <= autoDED2316F_ae ; lv_itPlayerIndex += 1 ) {
PlayerModifyPropertyFixed(lv_itPlayerIndex, c_playerPropDamageDealtPercent, c_playerPropOperSetTo, 0.0);
PlayerModifyPropertyFixed(lv_itPlayerIndex, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, 0.0);
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:4134
lv_itPlayerIndex = 1;
for ( ; lv_itPlayerIndex <= auto71712F86_ae ; lv_itPlayerIndex += 1 ) {
PlayerModifyPropertyFixed(lv_itPlayerIndex, c_playerPropDamageDealtPercent, c_playerPropOperSetTo, 0.0);
PlayerModifyPropertyFixed(lv_itPlayerIndex, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, 0.0);
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:4135
for ( ; lv_itPlayerIndex <= auto71712F86_ae ; lv_itPlayerIndex += 1 ) {
PlayerModifyPropertyFixed(lv_itPlayerIndex, c_playerPropDamageDealtPercent, c_playerPropOperSetTo, 0.0);
PlayerModifyPropertyFixed(lv_itPlayerIndex, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, 0.0);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:14996
if ((UnitHasBehavior2(lv_u, "HybridUnitDummy") == true)) {
PlayerModifyPropertyFixed(EventPlayer(), c_playerPropSuppliesUsed, c_playerPropOperAdd, lv_supply);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:15027
if ((UnitHasBehavior2(lv_u, "HybridUnitDummy") == true)) {
PlayerModifyPropertyFixed(EventPlayer(), c_playerPropSuppliesUsed, c_playerPropOperSubtract, lv_supply);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:13180
lv_indexPlayer = PlayerGroupNextPlayer(auto2B81FC8C_g, lv_indexPlayer);
if (lv_indexPlayer < 0) { break; }
PlayerModifyPropertyFixed(lv_indexPlayer, c_playerPropSuppliesUsed, c_playerPropOperSetTo, lv_combinedSupply);
}
Wait(0.0625, c_timeGame);
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:2468
lv_player = PlayerGroupNextPlayer(autoA4692585_g, lv_player);
if (lv_player < 0) { break; }
PlayerModifyPropertyFixed(lv_player, c_playerPropSuppliesMade, c_playerPropOperSetTo, 1000.0);
PlayerModifyPropertyFixed(lv_player, c_playerPropSuppliesLimit, c_playerPropOperSetTo, 1000.0);
PlayerSetState(lv_player, c_playerStateTerrazineCostIgnored, true);
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:2469
if (lv_player < 0) { break; }
PlayerModifyPropertyFixed(lv_player, c_playerPropSuppliesMade, c_playerPropOperSetTo, 1000.0);
PlayerModifyPropertyFixed(lv_player, c_playerPropSuppliesLimit, c_playerPropOperSetTo, 1000.0);
PlayerSetState(lv_player, c_playerStateTerrazineCostIgnored, true);
PlayerSetState(lv_player, c_playerStateCustomCostIgnored, true);
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:2615
if ((UserDataGetUserInstance("LegionDifficultyScaling", lv_difficultyscalinginstance, "Modifier", 1) == lp_difficultyType) && (libWCdr_gf_DifficultyScalingAppliestoCurrentGameMode(lv_difficultyscalinginstance) == true) && (lp_difficultyLevel >= lv_difficultyscalingminlevel) && (lp_difficultyLevel <= lv_difficultyscalingmaxlevel)) {
lv_sum += lv_difficultyscalingvalue;
PlayerModifyPropertyFixed(1, c_playerPropSuppliesLimit, c_playerPropOperSetTo, 200.0);
}