# Set Planet Reward Title

Grammar — Change the reward title of planet to text
FlagsNative | Action

Sets the reward title for the specified planet.

# Arguments

  • int<planet> — Planet
  • text — Text

Returns — void

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

Category: Story / Planet Panel / Planet Properties

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:6336

    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)) {
        PlanetSetRewardText(PlanetLastCreated(), StringToText(""));