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
- <?xml version="1.0" encoding="utf-8"?><Quests>
- <span> </span><QuestDef InternalName="Quest_Lorekeepers"><span> </span><DisplayName>The Lorekeeper Monks in danger !</DisplayName> <Description>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.</Description> <QuestClass>Minor</QuestClass> <Repeatable>0</Repeatable> <TriggerType>QuestLocation</TriggerType> <TriggerOrigin>EventLocation</TriggerOrigin> <SpawnRating>1</SpawnRating> <Image>TombMedallion.png</Image><span> </span><PrefQuestLoc>Quest_Level1_Inn01</PrefQuestLoc>
- <QuestObjectiveDef InternalName="Objective0"> <ObjectiveID>0</ObjectiveID> <NextObjectiveID>1</NextObjectiveID> <Description>Save the Lorekeepers and kill the ogres !</Description>
- <GameModifier InternalName="CreateGoodieHut"> <ModType>Map</ModType> <Attribute>CreateGoodieHut</Attribute> <UnitClass>Lorekeeper_Monestary_Q</UnitClass> <StrVal>Monestary of the Lorekeepers</StrVal> <Radius>25</Radius> </GameModifier>
- <QuestConditionDef InternalName="Condition1"> <Description>Kill the ogres in the area to gain access to he monestary.</Description> <Class>Success</Class> <Type>ClearGoodieHut</Type> <TextData>Lorekeeper_Monestary_Q</TextData> <Flag>RevealTarget</Flag> </QuestConditionDef>
- <ChoiceText>As you near the monestary, you see a band of ogres attacking the monestary !</ChoiceText> <ChoiceMedallion>Gfx\\Medallions\\K_Adventure.png</ChoiceMedallion> <ChoiceMedallionFrame>Gfx\\Medallions\\Medallion_Frame_01.png</ChoiceMedallionFrame>
- <!-- Choice 0 --> <QuestChoiceDef>Uh... all things considered, don't let me interupt you.</Description> <NextObjectiveID>-1</NextObjectiveID> <PopupMessage>The Ogres laugh at you.</PopupMessage> </QuestChoiceDef>
- <!-- Choice 1 --> <QuestChoiceDef> <Description>Leave the monks alone ! Die, foul creatures ! </Description> <NextObjectiveID>1</NextObjectiveID> <!-- Create some bad guys, first one becomes the leader --> <Encounter InternalName="OgreGroup"> <Liklihood>100</Liklihood> <LevelLo>4</LevelLo> <LevelHi>6</LevelHi> <WillRespawn>0</WillRespawn> <WanderingRadius>0</WanderingRadius> <UnitInstance> <UnitType>Ogre</UnitType> <UnitName>Ogre Chieftain</UnitName> <Level>4</Level> </UnitInstance> <UnitInstance> <UnitType>Ogre</UnitType> <Level>3</Level> </UnitInstance> </Encounter> </QuestChoiceDef> </QuestObjectiveDef>
- <QuestObjectiveDef InternalName="Objective1"> <ObjectiveID>1</ObjectiveID> <NextObjectiveID>-1</NextObjectiveID> <Description>Protect the monestary by killing the ogres !</Description> <PopupObjectiveMsg>0</PopupObjectiveMsg> <QuestConditionDef InternalName="Condition2"> <Description>Slay the ogres !</Description> <Class>Success</Class> <Type>KillMonster</Type> <TextData>Ogre</TextData> <MoreTextData>Ogre Chieftain</MoreTextData> <NumericData>1</NumericData> <CompletionText>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.</CompletionText> <GameModifier InternalName="Reward1"> <ModType>Map</ModType> <Attribute>CreateResourceHoard</Attribute> <Count>0.0000</Count> <Radius>0.0000</Radius> <StrVal>Lorekeepers</StrVal> </GameModifier> </QuestConditionDef> </QuestObjectiveDef> </QuestDef>
- </Quests>