# Modify Player Property (Integer)
Grammar — Modify player p prop: operation|Add/Subtract/Set To val
Flags —Native
|Action
Modifies player properties such as resources as an integer.
# Arguments
int
— Playerint
[ preset::Player_Property_Get2 ] — Propertyint
[ preset::ModifyOperation ] — Operationint
— Value
Returns — void
native void PlayerModifyPropertyInt(
int inPlayer,
int inProp,
int inOper,
int inVal,
);
# Related
Category: Player / Player Settings
- [F] —
void
— Modify Player Property (Integer) — ( PlayerModifyPropertyInt ) - [F] —
void
— Modify Player Property (Real) — ( PlayerModifyPropertyFixed ) - [F] —
int
— Player Property (Integer) — ( PlayerGetPropertyInt ) - [F] —
fixed
— Player Property (Real) — ( PlayerGetPropertyFixed ) - [F] —
void
— Modify Player Score (Integer) — ( PlayerScoreValueSetFromInt ) - [F] —
void
— Modify Player Score (Real) — ( PlayerScoreValueSetFromFixed ) - [F] —
int
— Player Score Value (Integer) — ( PlayerScoreValueGetAsInt ) - [F] —
fixed
— Player Score Value (Real) — ( PlayerScoreValueGetAsFixed ) - [F] —
void
— Turn Player Flag On/Off — ( PlayerSetState ) - [F] —
bool
— Player Flag Check — ( PlayerGetState ) - [F] —
bool
— Player License Check — ( PlayerHasLicense ) - [F] —
bool
— Player Access Check — ( PlayerHasAccessTo ) - [F] —
bool
— Player Has Reward — ( PlayerHasReward ) - [F] —
bool
— Player Has Talent — ( PlayerHasTalent ) - [F] —
text
— Name Of Player — ( PlayerName ) - [F] —
string
— Handle Of Player — ( PlayerHandle ) - [F] —
string
[ gamelink::Race ] — Race Of Player — ( PlayerRace ) - [F] —
string
[ gamelink::Hero ] — Hero Of Player — ( PlayerHero ) - [F] —
string
[ gamelink::Skin ] — Skin Of Player — ( PlayerSkin ) - [F] —
string
[ gamelink::Mount ] — Mount Of Player — ( PlayerMount ) - [F] —
string
[ gamelink::Spray ] — Spray Of Player — ( PlayerSpray ) - [F] —
string
[ gamelink::Artifact ] — Artifact Of Player — ( PlayerArtifact ) - [F] —
int
— Artifact Rank Of Player — ( PlayerArtifactRank ) - [F] —
string
[ gamelink::Commander ] — Commander Of Player — ( PlayerCommander ) - [F] —
int
— Commander Level Of Player — ( PlayerCommanderLevel ) - [F] —
int
— Commander Mastery Level Of Player — ( PlayerCommanderMasteryLevel ) - [F] —
int
— Commander Mastery Talent Rank Of Player — ( PlayerCommanderMasteryTalentRank ) - [F] —
int
— Commander Selected Prestige Of Player — ( PlayerCommanderSelectedPrestige ) - [F] —
int
— Brutal Plus Difficulty of Player — ( PlayerBrutalPlusDifficulty ) - [F] —
int
— Retry Mutation Index of Player — ( PlayerRetryMutation ) - [F] —
int
— Allied Commander Enemy Wave Type — ( PlayerACEnemyWaveType ) - [F] —
point
— Start Location Of Player — ( PlayerStartLocation ) - [F] —
int
[ preset::PlayerController ] — Controller Of Player — ( PlayerType ) - [F] —
int
[ preset::PlayerStatus ] — Status Of Player — ( PlayerStatus ) - [F] —
void
— Set Player Color — ( PlayerSetColorIndex ) - [F] —
void
— Set Player Race — ( PlayerSetRace ) - [F] —
void
— Set Player Hero — ( PlayerSetHero ) - [F] —
void
— Set Player Skin — ( PlayerSetSkin ) - [F] —
void
— Set Player Console Skin — ( PlayerSetConsoleSkin ) - [F] —
void
— Apply Player Skin — ( PlayerApplySkin ) - [F] —
void
— Apply Player Skin (Replacing Existing Unit) — ( libNtve_gf_PlayerApplySkinReplacingExistingUnit ) - [F] —
void
— Set Player Mount — ( PlayerSetMount ) - [F] —
void
— Set Player Spray — ( PlayerSetSpray ) - [F] —
void
— Set Player Commander — ( PlayerSetCommander ) - [F] —
void
— Set Player Commander Level — ( PlayerSetCommanderLevel ) - [F] —
void
— Set Player Commander Mastery Level — ( PlayerSetCommanderMasteryLevel ) - [F] —
void
— Set Player Death Timer — ( PlayerSetDeathTimer ) - [F] —
void
— Set Player Bounds — ( PlayerSetBounds ) - [F] —
void
— Add Player Talent — ( PlayerAddTalent ) - [F] —
void
— Remove Player Talent — ( PlayerRemoveTalent ) - [F] —
void
— Add Player Response — ( PlayerAddResponse ) - [F] —
void
— Remove Player Response — ( PlayerRemoveResponse ) - [F] —
void
— Clear Player Response — ( PlayerClearResponse ) - [F] —
int
[ playercolor ] — Player Color — ( PlayerGetColorIndex ) - [F] —
void
— Override Player Option — ( PlayerOptionOverride ) - [F] —
string
— Player Hotkey Profile — ( PlayerGetHotkeyProfile ) - [F] —
void
— Player Property Changed — ( TriggerAddEventPlayerPropChange ) - [F] —
void
— Player Joins Game — ( TriggerAddEventPlayerJoin ) - [F] —
void
— Player Leaves Game — ( TriggerAddEventPlayerLeft ) - [F] —
int
— Triggering Player — ( EventPlayer ) - [F] —
int
[ preset::Player_Property_Get ] — Triggering Player Property — ( EventPlayerProperty ) - [F] —
int
— Triggering Player Property Change (Integer) — ( EventPlayerPropertyChangeInt ) - [F] —
fixed
— Triggering Player Property Change (Real) — ( EventPlayerPropertyChangeFixed ) - [F] —
void
— Player Add Label — ( PlayerAddLabel ) - [F] —
void
— Player Remove Label — ( PlayerRemoveLabel ) - [F] —
void
— Player Remove All Labels — ( PlayerRemoveAllLabels ) - [F] —
bool
— Player Has Label — ( PlayerHasLabel ) - [F] —
void
— Player Add Reward — ( PlayerAddReward )
# Examples
# campaigns/liberty.sc2campaign
// L187
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropMinerals, c_playerPropOperSetTo, 1600)
// L188
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropVespene, c_playerPropOperSetTo, 1000)
// L189
PlayerModifyPropertyInt(gv_pLAYER_COMPUTER1, c_playerPropMinerals, c_playerPropOperSetTo, 1600)
// L190
PlayerModifyPropertyInt(gv_pLAYER_COMPUTER1, c_playerPropVespene, c_playerPropOperSetTo, 1000)
// L623
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropMinerals, c_playerPropOperSetTo, 4200)
// L624
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropVespene, c_playerPropOperSetTo, 3000)
// L212
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropMinerals, c_playerPropOperSetTo, 50)
// L213
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropVespene, c_playerPropOperSetTo, 0)
// L521
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropMinerals, c_playerPropOperSetTo, 50)
// L522
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropVespene, c_playerPropOperSetTo, 0)
// L565
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropMinerals, c_playerPropOperSetTo, 0)
// L566
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropVespene, c_playerPropOperSetTo, 0)
// L670
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropMinerals, c_playerPropOperSetTo, 50)
// L671
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropVespene, c_playerPropOperSetTo, 0)
// L1748
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropMinerals, c_playerPropOperSetTo, 50)
// L1749
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropVespene, c_playerPropOperSetTo, 0)
// L334
PlayerModifyPropertyInt(gv_p3_ENEMY_PROTOSS, c_playerPropMinerals, c_playerPropOperSetTo, 100000)
// L493
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropMinerals, c_playerPropOperSetTo, 215)
// L1231
PlayerModifyPropertyInt(gv_p2_ENEMY_ZERG, c_playerPropMinerals, c_playerPropOperSetTo, 100000)
// L1232
PlayerModifyPropertyInt(gv_p2_ENEMY_ZERG, c_playerPropVespene, c_playerPropOperSetTo, 100000)
// L1233
PlayerModifyPropertyInt(gv_p3_ENEMY_PROTOSS, c_playerPropMinerals, c_playerPropOperSetTo, 100000)
// L1234
PlayerModifyPropertyInt(gv_p3_ENEMY_PROTOSS, c_playerPropVespene, c_playerPropOperSetTo, 100000)
// L1328
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropMinerals, c_playerPropOperSetTo, 185)
// L1401
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropVespene, c_playerPropOperSetTo, 0)
// L1415
PlayerModifyPropertyInt(gv_p3_ENEMY_PROTOSS, c_playerPropMinerals, c_playerPropOperSetTo, 100000)
// L2181
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropVespene, c_playerPropOperSetTo, 0)
// L580
PlayerModifyPropertyInt(gv_p1_USER, c_playerPropMinerals, c_playerPropOperSetTo, 200)
// L581
PlayerModifyPropertyInt(gv_p1_USER, c_playerPropVespene, c_playerPropOperSetTo, 50)
// L582
PlayerModifyPropertyInt(gv_p2_ZERG_ORANGE_NW, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L583
PlayerModifyPropertyInt(gv_p2_ZERG_ORANGE_NW, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L584
PlayerModifyPropertyInt(gv_p3_ZERG_LIGHTBLUE_SE, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L585
PlayerModifyPropertyInt(gv_p3_ZERG_LIGHTBLUE_SE, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L586
PlayerModifyPropertyInt(gv_p4_COLONISTS, c_playerPropMinerals, c_playerPropOperSetTo, 0)
// L587
PlayerModifyPropertyInt(gv_p4_COLONISTS, c_playerPropVespene, c_playerPropOperSetTo, 0)
// L815
PlayerModifyPropertyInt(auto395B6C3C_var, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L3548
PlayerModifyPropertyInt(EventPlayer(), c_playerPropMinerals, c_playerPropOperSetTo, 2000)
// L553
PlayerModifyPropertyInt(gv_pLAYER_01_USER, c_playerPropMinerals, c_playerPropOperSetTo, 400)
// L554
PlayerModifyPropertyInt(gv_pLAYER_01_USER, c_playerPropVespene, c_playerPropOperSetTo, 100)
// L705
PlayerModifyPropertyInt(gv_pLAYER_02_REFUGEES, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L706
PlayerModifyPropertyInt(gv_pLAYER_03_INFESTED_REFUGEES, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L707
PlayerModifyPropertyInt(gv_pLAYER_04_INFESTEDREFUGEES, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L708
PlayerModifyPropertyInt(gv_pLAYER_06_INFESTORS, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L521
PlayerModifyPropertyInt(gv_pLAYER01_USER, c_playerPropMinerals, c_playerPropOperSetTo, 400)
// L522
PlayerModifyPropertyInt(gv_pLAYER01_USER, c_playerPropVespene, c_playerPropOperSetTo, 350)
// L523
PlayerModifyPropertyInt(gv_pLAYER02_PROTOSS, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L524
PlayerModifyPropertyInt(gv_pLAYER02_PROTOSS, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L525
PlayerModifyPropertyInt(gv_pLAYER04_PURIFIER, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L526
PlayerModifyPropertyInt(gv_pLAYER04_PURIFIER, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L527
PlayerModifyPropertyInt(gv_pLAYER06_TERRORFLEET, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L528
PlayerModifyPropertyInt(gv_pLAYER06_TERRORFLEET, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L848
PlayerModifyPropertyInt(gv_pLAYER02_PROTOSS, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L849
PlayerModifyPropertyInt(gv_pLAYER04_PURIFIER, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L978
PlayerModifyPropertyInt(gv_p01_USER, c_playerPropMinerals, c_playerPropOperSetTo, 500)
// L979
PlayerModifyPropertyInt(gv_p01_USER, c_playerPropVespene, c_playerPropOperSetTo, 400)
// L980
PlayerModifyPropertyInt(gv_p02_ZERG_EAST, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L981
PlayerModifyPropertyInt(gv_p02_ZERG_EAST, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L982
PlayerModifyPropertyInt(gv_p03_VIROPHAGE, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L983
PlayerModifyPropertyInt(gv_p03_VIROPHAGE, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L984
PlayerModifyPropertyInt(gv_p04_ZERG_NORTH, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L985
PlayerModifyPropertyInt(gv_p04_ZERG_NORTH, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L986
PlayerModifyPropertyInt(gv_p08_ZERG_SOUTH, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L987
PlayerModifyPropertyInt(gv_p08_ZERG_SOUTH, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L696
PlayerModifyPropertyInt(gv_pLAYER_01_USER, c_playerPropMinerals, c_playerPropOperSetTo, 200)
// L697
PlayerModifyPropertyInt(gv_pLAYER_01_USER, c_playerPropVespene, c_playerPropOperSetTo, 200)
// L698
PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L699
PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L700
PlayerModifyPropertyInt(gv_pLAYER_03_DOMINION, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L701
PlayerModifyPropertyInt(gv_pLAYER_03_DOMINION, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L702
PlayerModifyPropertyInt(gv_pLAYER_04_DOMINION, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L703
PlayerModifyPropertyInt(gv_pLAYER_04_DOMINION, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L861
PlayerModifyPropertyInt(gv_pLAYER_02_DOMINION, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L862
PlayerModifyPropertyInt(gv_pLAYER_03_DOMINION, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L488
PlayerModifyPropertyInt(gv_p01_USER, c_playerPropMinerals, c_playerPropOperSetTo, 400)
// L489
PlayerModifyPropertyInt(gv_p01_USER, c_playerPropVespene, c_playerPropOperSetTo, 200)
// L490
PlayerModifyPropertyInt(gv_p02_ORLAN_ENEMY, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L491
PlayerModifyPropertyInt(gv_p02_ORLAN_ENEMY, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L492
PlayerModifyPropertyInt(gv_p03_MIRA_HAN, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L493
PlayerModifyPropertyInt(gv_p03_MIRA_HAN, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L494
PlayerModifyPropertyInt(gv_p04_DOMINION, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L495
PlayerModifyPropertyInt(gv_p04_DOMINION, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L783
PlayerModifyPropertyInt(gv_p02_ORLAN_ENEMY, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L784
PlayerModifyPropertyInt(gv_p04_DOMINION, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L389
PlayerModifyPropertyInt(gv_p01_USER, c_playerPropMinerals, c_playerPropOperSetTo, 300)
// L390
PlayerModifyPropertyInt(gv_p01_USER, c_playerPropVespene, c_playerPropOperSetTo, 400)
// L396
PlayerModifyPropertyInt(auto317FADF5_var, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L397
PlayerModifyPropertyInt(auto317FADF5_var, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L587
PlayerModifyPropertyInt(gv_p03_DOMINION_WAREHOUSE, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L588
PlayerModifyPropertyInt(gv_p04_DOMINION_INFANTRY_A, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L589
PlayerModifyPropertyInt(gv_p05_DOMINION_FACTORY, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L590
PlayerModifyPropertyInt(gv_p06_DOMINION_STARPORT_A, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L591
PlayerModifyPropertyInt(gv_p07_DOMINION_STARPORT_B, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L592
PlayerModifyPropertyInt(gv_p08_DOMINION_INFANTRY_B, c_playerPropHandicap, c_playerPropOperSetTo, 50)
// L848
PlayerModifyPropertyInt(gv_p02_DOMINION_INFANTRY, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L849
PlayerModifyPropertyInt(gv_p02_DOMINION_INFANTRY, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L850
PlayerModifyPropertyInt(gv_p03_DOMINION_SIEGE, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L851
PlayerModifyPropertyInt(gv_p03_DOMINION_SIEGE, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L852
PlayerModifyPropertyInt(gv_p04_DOMINION_AIR, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L853
PlayerModifyPropertyInt(gv_p04_DOMINION_AIR, c_playerPropVespene, c_playerPropOperSetTo, 5000)
// L854
PlayerModifyPropertyInt(gv_p05_DOMINION_RAIDER, c_playerPropMinerals, c_playerPropOperSetTo, 5000)
// L855
PlayerModifyPropertyInt(gv_p05_DOMINION_RAIDER, c_playerPropVespene, c_playerPropOperSetTo, 5000)