# Apply Player Skin
Grammar — activateDeactivate Skin skin for Player player.
Flags —Native
|Action
Sets the skin of the specified player.
# Arguments
int
— Playerstring
<gamelink::Skin> — Skinbool
<preset::ActivateDeactivate> — Activate/Deactivate
Returns — void
native void PlayerApplySkin(
int inPlayer,
string inSkin,
bool apply,
);
# 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/void.sc2campaign — base.sc2maps/maps/campaign/void/ptaldarim02.sc2map/MapScript.galaxy:1130
PlayerModifyPropertyInt(autoE95D56D5_var, c_playerPropSuppliesMade, c_playerPropOperSetTo, 200);
libNtve_gf_SetUpgradeLevelForPlayer(autoE95D56D5_var, "DarkProtoss", 1);
PlayerApplySkin(autoE95D56D5_var, "TaldarimSkin", true);
PlayerSetColorIndex(autoE95D56D5_var, 1, true);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ptaldarim02.sc2map — MapScript.galaxy:1130
PlayerModifyPropertyInt(autoE95D56D5_var, c_playerPropSuppliesMade, c_playerPropOperSetTo, 200);
libNtve_gf_SetUpgradeLevelForPlayer(autoE95D56D5_var, "DarkProtoss", 1);
PlayerApplySkin(autoE95D56D5_var, "TaldarimSkin", true);
PlayerSetColorIndex(autoE95D56D5_var, 1, true);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6171
if ((lp_enableDisable == true)) {
CatalogLinkReplace(lp_player, c_gameCatalogUnit, (libVoiC_gf_PC_ArmyCategoryUnitType(libVoiC_gf_PC_ArmyCategoryOfArmyUnit(lv_armyCategory2))), (libVoiC_gf_PC_StoryArmyUnitUnitType(lv_armyCategory2)));
PlayerApplySkin(1, libVoiC_gf_PC_ArmyUnitSkin(lv_armyCategory2), true);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:3617
// Implementation
PlayerApplySkin(lp_player, lp_skin, lp_activateDeactivate);
if ((lp_activateDeactivate == false)) {
lv_fromPath = "To";
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:5916
}
PlayerApplySkin(lp_player, PlayerSkin(lp_player), true);
}
mods/liberty.sc2mod — base.sc2data/TriggerLibs/LibertyLib.galaxy:978
lv_itPlayer = PlayerGroupNextPlayer(autoB7B8D940_g, lv_itPlayer);
if (lv_itPlayer < 0) { break; }
PlayerApplySkin(lv_itPlayer, lv_itSkin, true);
}
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:1887
if ((lp_enableDisable == true)) {
CatalogLinkReplace(lp_player, c_gameCatalogUnit, (libComC_gf_CC_ArmyCategoryUnitType(lv_armyCategory)), (libComC_gf_NC_StoryArmyUnitUnitType(lv_armyCategory2)));
PlayerApplySkin(lp_player, libComC_gf_NC_ArmyUnitSkin(lv_armyCategory2), true);
}
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova04.sc2map/MapScript.galaxy:1355
libNovC_gf_SetTechRestrictionsCallback(TriggerGetCurrent());
libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_05_TALDARIM, "DarkProtoss", 1);
PlayerApplySkin(gv_pLAYER_05_TALDARIM, "TaldarimSkin", true);
libComC_gf_EnableCampaignTechUnit(true, "Goliath", gv_pLAYER_01_USER);
libComC_gf_EnableCampaignTechUnit(true, "Banshee", gv_pLAYER_01_USER);
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:3291
TechTreeUpgradeAddLevel(gv_pLAYER_02_PROTOSS_BULLIES, "DarkProtoss", 1);
TechTreeUpgradeAddLevel(gv_pLAYER_04_PROTOSS_WAVES, "DarkProtoss", 1);
PlayerApplySkin(gv_pLAYER_02_PROTOSS_BULLIES, "TaldarimSkin", true);
PlayerApplySkin(gv_pLAYER_04_PROTOSS_WAVES, "TaldarimSkin", true);
TechTreeUpgradeAddLevel(gv_pLAYER_06_TERRAZINE, "FireSuppressionSystems", 1);
mods/novastoryassets.sc2mod — base2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:3292
TechTreeUpgradeAddLevel(gv_pLAYER_04_PROTOSS_WAVES, "DarkProtoss", 1);
PlayerApplySkin(gv_pLAYER_02_PROTOSS_BULLIES, "TaldarimSkin", true);
PlayerApplySkin(gv_pLAYER_04_PROTOSS_WAVES, "TaldarimSkin", true);
TechTreeUpgradeAddLevel(gv_pLAYER_06_TERRAZINE, "FireSuppressionSystems", 1);
TechTreeUpgradeAddLevel(gv_pLAYER_10_TERRAZINETARGET, "FireSuppressionSystems", 1);
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova04.sc2map — MapScript.galaxy:1355
libNovC_gf_SetTechRestrictionsCallback(TriggerGetCurrent());
libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_05_TALDARIM, "DarkProtoss", 1);
PlayerApplySkin(gv_pLAYER_05_TALDARIM, "TaldarimSkin", true);
libComC_gf_EnableCampaignTechUnit(true, "Goliath", gv_pLAYER_01_USER);
libComC_gf_EnableCampaignTechUnit(true, "Banshee", gv_pLAYER_01_USER);
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2map — MapScript.galaxy:3291
TechTreeUpgradeAddLevel(gv_pLAYER_02_PROTOSS_BULLIES, "DarkProtoss", 1);
TechTreeUpgradeAddLevel(gv_pLAYER_04_PROTOSS_WAVES, "DarkProtoss", 1);
PlayerApplySkin(gv_pLAYER_02_PROTOSS_BULLIES, "TaldarimSkin", true);
PlayerApplySkin(gv_pLAYER_04_PROTOSS_WAVES, "TaldarimSkin", true);
TechTreeUpgradeAddLevel(gv_pLAYER_06_TERRAZINE, "FireSuppressionSystems", 1);
mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2map — MapScript.galaxy:3292
TechTreeUpgradeAddLevel(gv_pLAYER_04_PROTOSS_WAVES, "DarkProtoss", 1);
PlayerApplySkin(gv_pLAYER_02_PROTOSS_BULLIES, "TaldarimSkin", true);
PlayerApplySkin(gv_pLAYER_04_PROTOSS_WAVES, "TaldarimSkin", true);
TechTreeUpgradeAddLevel(gv_pLAYER_06_TERRAZINE, "FireSuppressionSystems", 1);
TechTreeUpgradeAddLevel(gv_pLAYER_10_TERRAZINETARGET, "FireSuppressionSystems", 1);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:3654
// Implementation
PlayerApplySkin(lp_player, lp_skin, lp_activateDeactivate);
if ((lp_activateDeactivate == false)) {
lv_fromPath = "To";
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:12776
if ((StringLength(StringWord(EventChatMessage(false), 3)) >= 1)) {
PlayerApplySkin(StringToInt(StringWord(EventChatMessage(false), 3)), (StringWord(EventChatMessage(false), 2)), true);
}
else {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:12779
}
else {
PlayerApplySkin(EventPlayer(), (StringWord(EventChatMessage(false), 2)), true);
}
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:1129
libCOOC_gf_CC_PlayerResponseEnable(lp_player, UserDataGetUserInstance("PlayerPrestige", lp_prestige, "PlayerResponses", lv_index), true);
}
PlayerApplySkin(lp_player, UserDataGetGameLink("PlayerPrestige", lp_prestige, "Skin", 1), true);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:2134
libCOOC_gf_CC_ApplyMasteryTech(lp_player);
if ((libCOOC_gf_CC_CommanderSkin(lv_playerCommander) != "")) {
PlayerApplySkin(lp_player, libCOOC_gf_CC_CommanderSkin(lv_playerCommander), true);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:3360
lv_upgradeLevel = 1;
if ((UserDataGetGameLink("CampaignPerk", lp_perk, "CampaignPerkSkin", 1) != "")) {
PlayerApplySkin(lp_player, UserDataGetGameLink("CampaignPerk", lp_perk, "CampaignPerkSkin", 1), true);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:4023
if ((lp_enableDisable == true)) {
CatalogLinkReplace(lp_player, c_gameCatalogUnit, (libCOOC_gf_CC_ArmyCategoryUnitType(libCOOC_gf_CC_ArmyCategoryOfArmyUnit(lv_armyCategory2))), (libCOOC_gf_CC_StoryArmyUnitUnitType(lv_armyCategory2)));
PlayerApplySkin(lp_player, libCOOC_gf_CC_ArmyUnitSkin(lv_armyCategory2), true);
}