mjrice
New member
I'm trying to do something relatively simple to play around with the trader quest system. The idea was just to make a basic "go fetch" quest. In the example below the objective is supposed to be go to get 200 plant fibers and return them to the trader. But when I load this mod and access the trader, I get a NullReferenceException: Object reference not set to an instance of an object.
Code:
<append xpath="/quests">
<quest id="tier1_gofetch">
<property name="name" value="go fetch" />
<property name="subtitle" value="Just what I wanted!" />
<property name="description" value="Ive got a hankering for something special" />
<property name="icon" value="ui_game_symbol_quest" />
<property name="repeatable" value="true" />
<property name="category_key" value="quest" />
<property name="offer" value="Here is my offer" />
<property name="difficulty" value="easy" />
<property name="difficulty_tier" value="1" />
<property name="statement" value="here is my statement" />
<property name="response" value="here is my response" />
<property name="login_rally_reset" value="true" />
<property name="completiontype" value="TurnIn" />
<property name="completion_key" value="quest_clear_completion" />
<objective type="FetchKeep" id="resourceYuccaFibers" value="200" phase="1" >
<property name="phase" value="1" />
</objective>
<objective type="ReturnToNPC">
<property name="phase" value="2" />
</objective>
<objective type="InteractWithNPC">
<property name="phase" value="2" />
</objective>
<reward type="Exp" value="1000" />
<reward type="Item" id="casinoCoin" value="200-500" />
<reward type="LootItem" id="questMelee,questRanged" ischosen="true" isfixed="true" value="1" />
<reward type="LootItem" id="questArmor,questMedical" ischosen="true" isfixed="true" value="1" />
<reward type="LootItem" id="questAmmo" ischosen="true" value="1" />
<reward type="LootItem" id="questTools" ischosen="true" value="1" />
<reward type="LootItem" id="questSchematics" ischosen="true" value="1" />
<reward type="LootItem" id="questMods" ischosen="true" value="1" />
</quest>
</append>
<append xpath="/quests/quest_list[@id='trader_quests']">
<quest id="tier1_gofetch" />
</append>