• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Help with custom quest

CLA

New member
I'm planning to release a extensive mod soon but it's kinda embarrassing that I have this little issue and for the life of me I can't figure it out despite feeling it staring me in the eye. When I open the custom quest "Gaining a companion", the next field is empty, but if I "never mind" and click back in a few times the quest appears. Not only that but once I've retrieved supplies, it does not show the typical ! with the compass pointing out the position of the trader. So any help here would be GREATLY appreciated. Here are the provided dialogs.xml and quests.xml, as I'm certain this is where the issue lies. Because outside of these two things, everything else works fine.

Code:
<configs>
  <append xpath="/dialogs/dialog[@id='trader']/statement[@id='start']">
    <response_entry id="jobshave7" />
  </append>

  <append xpath="/dialogs/dialog[@id='trader']">
    <response id="jobshave7" text="Gaining a companion" nextstatementid="currentjobs7">
      <requirement type="QuestStatus" id="quest_savePrincess" value="NotStarted"/>
	  <requirement type="CheckCVar" id="IntroComplete" value="1" requirementtype="Hide" />
	  <requirement type="CheckCVar" id="CompanionQuestComplete" value="0" requirementtype="Hide" />
    </response>
  </append>

  <append xpath="/dialogs/dialog[@id='trader']">
    <statement id="currentjobs7" text="quest_savePrincess_offer" nextstatementid="start">
      <quest_entry id="quest_savePrincess" type="add" listindex="0" tier="1" />
      <response_entry id="nevermind" />
    </statement>
  </append>
</configs>
Code:
<configs>
  <append xpath="/quests">

	<quest id="quest_savePrincess">
	  <property name="name_key" value="quest_savePrincess" param1="name"/>
	  <property name="subtitle_key" value="quest_savePrincess_subtitle"/>
	  <property name="description_key" value="quest_savePrincess_description"/>
	  <property name="icon" value="ui_game_symbol_quest"/>
	  <property name="single_quest" value="true"/>
	  <property name="category_key" value="quest"/>
	  <property name="offer_key" value="quest_savePrincess_offer" param1="offer"/>
	  <property name="difficulty_tier" value="1" param1="difficulty"/>
	  <property name="statement_key" value="quest_savePrincess_statement"/>
	  <property name="response_key" value="quest_savePrincess_response"/>
	  <property name="completiontype" value="TurnIn"/>
	  <property name="completion_key" value="quest_savePrincess_completion"/>
	  <property name="shareable" value="false"/>
	  <property name="reward_choices_count" value="1"/>
	  <property name="unique_key" value="princessquest"/>
	  <property name="quest_type" value="special"/>

		<objective type="RandomGotoNPC" phase="1">
			<property name="completion_distance" value="20"/>
			<property name="distance" value="50-100"/>
			<property name="nav_object" value="quest"/>
			<property name="biome_filter_type" value="SameBiome"/>
		</objective>

		<objective type="RallyPoint">
			<property name="start_mode" value="Create"/>
			<property name="phase" value="2"/>
			<property name="nav_object" value="rally"/>
			
			<property name="activate_event" value="quest_treasure_replace_road"/>
		</objective>

		<objective type="StayWithin">
			<property name="phase" value="3"/>
			<property name="radius" value="100"/>
		</objective>

		<objective type="TreasureChest">
			<property name="phase" value="3"/>
			<property name="block" value="cntBuriedFoodStashChest" param1="container"/>
			<property name="default_radius" value="3" param1="radius"/>
			<property name="container_type" value="Supplies"/>
			<property name="nav_object" value="treasure"/>
			<property name="direct_nav_object" value="treasure_direct"/>
			<property name="blocks_per_reduction" value="5"/>
			<property name="radius_reduction_sound" value="ui_radius_shrink"/>
			<property name="use_nearby" value="true"/>
			<property name="explosion_event" value="quest_treasure_explosion_horde"/>
		</objective>

		<objective type="FetchFromTreasure">
			<property name="phase" value="3"/>
			<property name="block" value="cntBuriedFoodStashChest" param1="container"/>
			<property name="quest_item_ID" value="1"/>
			<property name="item_count" value="1"/>
		</objective>

		<action type="SpawnGSEnemy">
			<property name="gamestage_list" value="SleeperGSList"/>
			<property name="count" value="1-2" param1="finish_spawn_count"/>
			<property name="phase" value="4"/>
		</action>

		<objective type="ReturnToNPC">
			<property name="phase" value="4"/>
			<property name="nav_object" value="return_to_trader"/>
		</objective>

		<objective type="InteractWithNPC">
			<property name="phase" value="4"/>
			<property name="nav_object" value="return_to_trader"/>
		</objective>
		
		<action type="SetCVar">
			<property name="cvar" value="CompanionQuestComplete"/>
			<property name="value" value="1"/>
			<property name="on_complete" value="true"/>
		</action>
		
		<reward type="Exp" value="500"/>
		<reward type="LootItem" id="groupQuestFood" ischosen="true" value="2"/>
		

		
		
</quest>


  </append>
</configs>

 
Last edited by a moderator:
Took some time but I figured out the issue of the blank field for "Gaining a companion" unless I "scrolled" through the dialogue a few times. It's tied to my localization for the "offer" text being too long and was(I assume) pushing the mission text out. I moved the offer over to the description and made the offer text brief and that fixed the issue.

 
Back
Top