# Set Planet Reward Text

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

Sets the reward description for the specified planet.

# Arguments

  • int<planet> — Planet
  • text — RewardText

Returns — void

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

Category: Story / Planet Panel / Planet Properties

# Examples

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

    PlanetSetRewardTitle(PlanetLastCreated(), StringExternal("Param/Value/lib_Camp_98485AE1"));
    if ((libCamp_gf_MissionReward(lv_mission) <= 0)) {
        PlanetSetRewardText(PlanetLastCreated(), StringToText(""));
    }
    else {

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

    }
    else {
        PlanetSetRewardText(PlanetLastCreated(), (libCamp_gf_FormatCredits(libCamp_gf_MissionReward(lv_mission), false)));
    }
    if ((lv_mission == libCamp_ge_MapID_MapTHorner05S)) {