# Set Planet Primary Objective Text
Grammar — Change the primary objective text description of planet to objectiveText
Flags —Native
|Action
Sets the primary objective description for the specified planet.
# Arguments
int
<planet> — Planettext
— ObjectiveText
Returns — void
native void PlanetSetPrimaryObjectiveText(
int inPlanetId,
text inText,
);
# Related
Category: Story / Planet Panel / Planet Properties
- Set Planet Name —
void
— PlanetSetPlanetName - Set Planet State —
void
— PlanetSetState - Set Planet Model —
void
— PlanetSetPlanetModelLink - Set Planet Background Model —
void
— PlanetSetBackgroundModelLink - Set Planet Players —
void
— PlanetSetPlayerGroup - Set Planet Description —
void
— PlanetSetDescriptionText - Set Planet Tooltip —
void
— PlanetSetTooltipText - Set Planet Mission Title —
void
— PlanetSetMissionTitle - Set Planet Mission Name —
void
— PlanetSetMissionName - Set Planet Primary Objective Title —
void
— PlanetSetPrimaryObjectiveTitle - Set Planet Primary Objective Text —
void
— PlanetSetPrimaryObjectiveText - Set Planet Secondary Objective Text —
void
— PlanetSetSecondaryObjectiveText - Set Planet Secondary Objective Title —
void
— PlanetSetSecondaryObjectiveTitle - Set Planet Reward Title —
void
— PlanetSetRewardTitle - Set Planet Reward Text —
void
— PlanetSetRewardText - Set Planet Research Title —
void
— PlanetSetResearchTitle - Set Planet Research Text —
void
— PlanetSetResearchText - Set Planet Bonus Title —
void
— PlanetSetBonusTitle - Set Planet Bonus Text —
void
— PlanetSetBonusText - Set Planet Frame Text —
void
— PlanetSetPlanetText - Set Planet Contact Title —
void
— PlanetSetContactTitle - Set Planet Contact Name —
void
— PlanetSetContactName - Set Planet Contact Model —
void
— PlanetSetContactModelLink - Set Planet Contact Actor —
void
— PlanetSetContactActorLink - Set Planet Contact Tooltip —
void
— PlanetSetContactTooltipText - Set Planet Technology Title —
void
— PlanetSetTechnologyTitle - Set Planet Technology Name —
void
— PlanetSetTechnologyName - Set Planet Technology Text —
void
— PlanetSetTechnologyText - Set Planet Technology Icon —
void
— PlanetSetTechnologyIconFilePath - Set Planet Technology Unit —
void
— PlanetSetTechnologyUnitLink - Set Planet Technology Tooltip —
void
— PlanetSetTechnologyTooltipText
# Examples
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:6335
PlanetSetTooltipText(PlanetLastCreated(), libCamp_gf_MissionPlanetInfo(lv_mission));
PlanetSetMissionName(PlanetLastCreated(), libCamp_gf_MissionNameInUpperCase(lv_mission));
PlanetSetPrimaryObjectiveText(PlanetLastCreated(), (libCamp_gf_MissionObjectivesText(lv_mission)));
PlanetSetRewardTitle(PlanetLastCreated(), StringExternal("Param/Value/lib_Camp_98485AE1"));
if ((libCamp_gf_MissionReward(lv_mission) <= 0)) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1712
libVCUI_gv_pU_MissionNextMap = lp_mission;
PlanetSetMissionName(PlanetLastCreated(), libVoiC_gf_PC_CampaignMapName(libVCUI_gv_pU_MissionNextMap));
PlanetSetPrimaryObjectiveText(PlanetLastCreated(), StringExternal(libVCUI_gf_PU_MissionProperty("PrimaryObjectiveText")));
PlanetSetBackgroundModelLink(PlanetLastCreated(), "SMX2_UI_Screens_Loading_Epilogue02");
PlanetSetContactModelLink(PlanetLastCreated(), libVoiC_gf_PC_CampaignMapContactPortrait(lp_mission));