Jump to content

How to change quests.xml for reward type = "Skill" quest?


Recommended Posts

I changed quests.xml as below.


<quest id="quest_BasicSurvival8" group_name_key="quest_BasicSurvival" name_key="quest_BasicSurvival8" subtitle_key="quest_BasicSurvival8_subtitle" description_key="quest_BasicSurvival8_description" icon="ui_game_symbol_campfire" category_key="quest" difficulty="veryeasy">
	<objective type="FetchKeep" id="rockSmall" value="8" />
	<objective type="Craft" id="campfire" value="1" />
	<objective type="BlockPlace" id="campfire" value="1" />

	<reward type="SkillPoints" value="5" />
	<reward type="Skill" id="Scavenging" value="5" />
	<reward type="ShowTip" value="skillPointTip" stage="aftercomplete" />
	<reward type="Quest" id="quest_whiteRiverCitizen1" stage="aftercomplete" />


However, when displaying quest_BasicSurvival, the following error occurred.




NullReferenceException: Object reference not set to an instance of an object
 at RewardSkill.SetupReward () [0x00000] in <filename unknown>:0 
 at BaseReward.get_Icon () [0x00000] in <filename unknown>:0 
 at XUiC_QuestRewardEntry.GetBindingValue (System.String& value, .BindingItem binding) [0x00000] in <filename unknown>:0 
 at BindingItem.GetValue (Boolean forceAll) [0x00000] in <filename unknown>:0 
 at BindingInfo.RefreshValue (Boolean forceAll) [0x00000] in <filename unknown>:0 
 at XUiController.RefreshBindings (Boolean forceAll) [0x00000] in <filename unknown>:0 
 at XUiC_QuestRewardEntry.Update (Single _dt) [0x00000] in <filename unknown>:0 
 at XUiController.Update (Single _dt) [0x00000] in <filename unknown>:0 
 at XUiC_QuestRewardList.Update (Single _dt) [0x00000] in <filename unknown>:0 
 at XUiController.Update (Single _dt) [0x00000] in <filename unknown>:0 
 at XUiController.Update (Single _dt) [0x00000] in <filename unknown>:0 
 at XUiController.Update (Single _dt) [0x00000] in <filename unknown>:0 
 at XUiController.Update (Single _dt) [0x00000] in <filename unknown>:0 
 at XUiC_QuestWindowGroup.Update (Single _dt) [0x00000] in <filename unknown>:0 
 at XUi.OnUpdateDeltaTime (Single updateDeltaTime) [0x00000] in <filename unknown>:0 
 at A.ME.Update () [0x00000] in <filename unknown>:0 
 at GameManager.JQ () [0x00000] in <filename unknown>:0 
 at GameManager.Update () [0x00000] in <filename unknown>:0 

(Filename:  Line: -1)


reward type = "Skill" seems to not work properly with reward chain.


How to display reward type = "Skill" correctly?


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...