Need help with a quest mod.

Hello dear modders,

 

I'm trying to create a quest which will give a (custom created) resource as a reward. However, the quest doesn't work - it spawns the right "goodie hut", but the intro text isn't the right one (it's replaced by the 2nd choice text :/). Also, once I arrive at the goodie hut, I do not trigger the fight or have the choice UI pop-up... it just clears the hut, with no reward. Even though I almost copy-pasted it from "the lost horse"...

Can someone help me out?

 

Code: xml
  1. <?xml version="1.0" encoding="utf-8"?><Quests>
  2. <span> </span>&lt;QuestDef InternalName="Quest_Lorekeepers"&gt;<span> </span>&lt;DisplayName&gt;The Lorekeeper Monks in danger !&lt;/DisplayName&gt;    &lt;Description&gt;Within the inn, you come across an experienced traveller. After you buy him a few rounds of good ale, he tells you about one of the most fascinating locations he's seen in his travel: a monastery of monks that collect the lost knowledge from the old times. He gives you the location of this monastery.&lt;/Description&gt;    &lt;QuestClass&gt;Minor&lt;/QuestClass&gt;    &lt;Repeatable&gt;0&lt;/Repeatable&gt;    &lt;TriggerType&gt;QuestLocation&lt;/TriggerType&gt;    &lt;TriggerOrigin&gt;EventLocation&lt;/TriggerOrigin&gt;    &lt;SpawnRating&gt;1&lt;/SpawnRating&gt;    &lt;Image&gt;TombMedallion.png&lt;/Image&gt;<span> </span>&lt;PrefQuestLoc&gt;Quest_Level1_Inn01&lt;/PrefQuestLoc&gt;
  3.     &lt;QuestObjectiveDef InternalName="Objective0"&gt;      &lt;ObjectiveID&gt;0&lt;/ObjectiveID&gt;      &lt;NextObjectiveID&gt;1&lt;/NextObjectiveID&gt;      &lt;Description&gt;Save the Lorekeepers and kill the ogres !&lt;/Description&gt;
  4.       &lt;GameModifier InternalName="CreateGoodieHut"&gt;        &lt;ModType&gt;Map&lt;/ModType&gt;        &lt;Attribute&gt;CreateGoodieHut&lt;/Attribute&gt;        &lt;UnitClass&gt;Lorekeeper_Monestary_Q&lt;/UnitClass&gt;        &lt;StrVal&gt;Monestary of the Lorekeepers&lt;/StrVal&gt;        &lt;Radius&gt;25&lt;/Radius&gt;      &lt;/GameModifier&gt;
  5.       &lt;QuestConditionDef InternalName="Condition1"&gt;        &lt;Description&gt;Kill the ogres in the area to gain access to he monestary.&lt;/Description&gt;        &lt;Class&gt;Success&lt;/Class&gt;        &lt;Type&gt;ClearGoodieHut&lt;/Type&gt;        &lt;TextData&gt;Lorekeeper_Monestary_Q&lt;/TextData&gt;        &lt;Flag&gt;RevealTarget&lt;/Flag&gt;      &lt;/QuestConditionDef&gt;
  6.       &lt;ChoiceText&gt;As you near the monestary, you see a band of ogres attacking the monestary !&lt;/ChoiceText&gt;      &lt;ChoiceMedallion&gt;Gfx\\Medallions\\K_Adventure.png&lt;/ChoiceMedallion&gt;      &lt;ChoiceMedallionFrame&gt;Gfx\\Medallions\\Medallion_Frame_01.png&lt;/ChoiceMedallionFrame&gt;
  7.       &lt;!-- Choice 0 --&gt;      &lt;QuestChoiceDef&gt;Uh... all things considered, don't let me interupt you.&lt;/Description&gt;        &lt;NextObjectiveID&gt;-1&lt;/NextObjectiveID&gt;        &lt;PopupMessage&gt;The Ogres laugh at you.&lt;/PopupMessage&gt;      &lt;/QuestChoiceDef&gt;
  8.       &lt;!-- Choice 1 --&gt;      &lt;QuestChoiceDef&gt;        &lt;Description&gt;Leave the monks alone ! Die, foul creatures ! &lt;/Description&gt;        &lt;NextObjectiveID&gt;1&lt;/NextObjectiveID&gt;        &lt;!-- Create some bad guys, first one becomes the leader --&gt;        &lt;Encounter InternalName="OgreGroup"&gt;          &lt;Liklihood&gt;100&lt;/Liklihood&gt;          &lt;LevelLo&gt;4&lt;/LevelLo&gt;          &lt;LevelHi&gt;6&lt;/LevelHi&gt;          &lt;WillRespawn&gt;0&lt;/WillRespawn&gt;          &lt;WanderingRadius&gt;0&lt;/WanderingRadius&gt;          &lt;UnitInstance&gt;            &lt;UnitType&gt;Ogre&lt;/UnitType&gt;            &lt;UnitName&gt;Ogre Chieftain&lt;/UnitName&gt;            &lt;Level&gt;4&lt;/Level&gt;          &lt;/UnitInstance&gt;          &lt;UnitInstance&gt;            &lt;UnitType&gt;Ogre&lt;/UnitType&gt;            &lt;Level&gt;3&lt;/Level&gt;          &lt;/UnitInstance&gt;        &lt;/Encounter&gt;      &lt;/QuestChoiceDef&gt;    &lt;/QuestObjectiveDef&gt;
  9.     &lt;QuestObjectiveDef InternalName="Objective1"&gt;      &lt;ObjectiveID&gt;1&lt;/ObjectiveID&gt;      &lt;NextObjectiveID&gt;-1&lt;/NextObjectiveID&gt;      &lt;Description&gt;Protect the monestary by killing the ogres !&lt;/Description&gt;      &lt;PopupObjectiveMsg&gt;0&lt;/PopupObjectiveMsg&gt;      &lt;QuestConditionDef InternalName="Condition2"&gt;        &lt;Description&gt;Slay the ogres !&lt;/Description&gt;        &lt;Class&gt;Success&lt;/Class&gt;        &lt;Type&gt;KillMonster&lt;/Type&gt;        &lt;TextData&gt;Ogre&lt;/TextData&gt;        &lt;MoreTextData&gt;Ogre Chieftain&lt;/MoreTextData&gt;        &lt;NumericData&gt;1&lt;/NumericData&gt;        &lt;CompletionText&gt;The Lorekeeer Monks are now safe, thanks to you. They request your protection in exchange for their knowledge of the old lore. You may now build a fortress at this location.&lt;/CompletionText&gt;        &lt;GameModifier InternalName="Reward1"&gt;          &lt;ModType&gt;Map&lt;/ModType&gt;          &lt;Attribute&gt;CreateResourceHoard&lt;/Attribute&gt;          &lt;Count&gt;0.0000&lt;/Count&gt;          &lt;Radius&gt;0.0000&lt;/Radius&gt;          &lt;StrVal&gt;Lorekeepers&lt;/StrVal&gt;        &lt;/GameModifier&gt;      &lt;/QuestConditionDef&gt;    &lt;/QuestObjectiveDef&gt;  &lt;/QuestDef&gt;
  10.  &lt;/Quests&gt;

3,309 views 1 replies
Reply #1 Top

Sorry for the out of context comment, but i would personally befriend ogres rather than monks anytime of day, they are less evil :p