# Set Planet Primary Objective Text

Grammar — Change the primary objective text description of planet to objectiveText
FlagsNative | Action

Sets the primary objective description for the specified planet.

# Arguments

  • int<planet> — Planet
  • text — ObjectiveText

Returns — void

native void PlanetSetPrimaryObjectiveText(
	int inPlanetId,
	text inText,
);

Category: Story / Planet Panel / Planet Properties

# Examples

campaigns/libertystory.sc2campaignbase.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.sc2campaignbase.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));