After completing tutorial 3, you may have tested your rebirth shrines completed in tutorial 2.
However, you may be asking yourself, "Why am I completing this madness?" This tutorial will help answer that by adding NPC's, quests and dialogue to your mod.
Creating the NPC[]
Importing the NPC[]
- Open Art Manager
- Select mod A1 then goto mod-import record
- Expand the records tree to records-creature-npc-speaking-greece-starting_woman.dbr
- Select and import this record
- In the database tab copy and paste it into a1scrollinstut folder.
- Rename it to a1q1npcamy.dbr
Importing the Dialogue packs[]
- Click mod-import record
- Expand the tree and find records-dialog-greece-starting_woman_a.dbr
- Select and import this record
- In the database tab copy and paste it into a1scrollinstut
- Rename it to a1q1dialog1.dbr
Setting it Up[]
- Double click a1q1dialog1.dbr to open
- Change the following fields:
- Default Dialog - defaultDialogTextTag = taga1q1amydialog1
- Default Dialog - defaultDialogSoundFile = (blank erase all text)
- Under Aditional Dialog and Irritation Dialog erase all fields leaving them blank.
- Save and close the editing record screen.
- Build your databse by right clicking the top folder in your database A1\database and selecting build.
- Find the a1q1npcamy.dbr file
- Double click it to edit it.
- Under Npc Static Dialog change the dialogPak field to the one just made. Double click the field and select the browse files box to the right then find and select the a1q1dialog1.dbr you just made. (note it wont show unless you build your database after you create the file)
- Go down to Actor Variables and change the description tag to taga1q1npcamy.
- Save the file and close the editing record menu.
Modifying Modstrings.txt[]
- In the Art Manager, select the Sources tab
- Find the text-modstrings.txt file
- Double click to edit.
- Add the two tags we used to setup our npc as follows. (Note you can copy and paste these over if you want just make sure there are no extra spaces at the end.)
- taga1q1npcamy=Amy
- taga1q1amydialog1=Please go and kill that shadowstalker named simon it wont leave me alone.
- taga1q1amydialog2=You killed it!? Thanks so much here have this.
- taga1q1amydialog3=Thanks again for killing that shadowstalker.
- taga1q1title=Simple Simon
- taga1q1location=Scrollins Tutorial
- taga1q1text1=A lady named amy wants you to kill a shadowstalker.
- taga1q1text2=You killed the shadowstalker now return to amy.
- taga1q1text3=Amy was glad you killed the shadowstalker and gave you a reward.
- Save by clicking File-Save and Close modstrings.txt (Note if you have not allready created assets for your modstrings file do so by right clicking it in the sources tab and selecting auto create assets.)
Tidying Up[]
- In the database tab,copy and paste the dialog file we made twice.
- Rename them to a1q1dialog2.dbr and a1q1dialog3.dbr
- Open them and change defaultDialogTextTag to taga1q1amydialog2 taga1q1amydialog3 respectively.
- save and close the editing record menu.
- Right click the top folder in your database A1\database and click build
- Close the art manager.
Creating a Quest[]
Now that we have our dialogs and our npc we are ready to create the quest in the quest editor.
- Open the Quest Editor (takes a while to load)
- Click File- Select Mod and select your mod A1. (note this might take a while to load and the editor will stop responding shortly)
- Select File-New Quest Document.
- There should be a file "New Quest 1" on the left. Right click this and select Add Quest Step.
- Select your new quest step
- Click the add Trigger button .
- Under your new trigger select Conditions and click the new condition button .
- Select On Interact with X condition and click ok
- Select the new On Interact with X condition. On the right side you can see the database folders.
- Find a1scrollinstut folder usually at the bottom. Select file a1q1npcamy.dbr.
- At the bottom, click the NPC field. Click the add item button to the right of that field. The a1q1npcamy.dbr file you had selected should automaticly appear in the field.
- Click the Actions header in your trigger
- Click the new action button .
- In the menu scroll down to the bottom and select Add Journal Entry in Region #N and click ok.
- Select your Add Journal Entry action.
- At the bottom fill in the following fields:
- DoComplete = False
- DoSound= True
- FullTextTag = taga1q1text1
- LocationTag = taga1q1location
- RegionNumber = 1
- TitleTag = taga1q1title
- Click File-Save As then browse to MyGames\Titan Quest\Working\CustomMaps\A1\source\Quests\ and save as a1q1
Close the Quest Editor and open the Art Manager - Select your mod
- In the sources tab, open the folder Quests
- Right click your a1q1 file and select auto create assets and click ok.
- Click the Assets tab
- Right click the top folder, click build, and then close the art manager.
Importing the Quest[]
- Open the World Editor
- Open the mod and region and enter editor mode.
- Use the object tool to find and place your npcamy.
- Switch back to layout mode and click Quest-Select Files.
- Click add and browse to find your quest a1q1
- Select it and click ok. Note: if it doesnt show up here then you probably need to either auto create assets for it or build your assets.
- Once your quest is added to the region click File-Save All then close the World Editor.
- Open Art Manager select your mod A1
- select Build-Build then test it out ingame.
If everything was done correctly the npc Amy should tell you "Please go and kill that shadowstalker named simon it wont leave me alone."
And after you talk to her your side quest log will be updated using the tags and dialogs you created and a drum sound will play.
Adding Tokens[]
Now all we need to finish this quest is to add three more steps.
- Open the Quest Editor select your mod A1
- Open the quest a1q1.qst
- To the left right click New Quest 1 under Files and select add quest step.
- Select the new quest step and click the add trigger button
- Repeat this to add two more making four quest steps alltogether your screen should look like this:
We will be using tokens in our quest so lets set them up now. Tokens just keep track of what the player has and hasn't done.
- Click the create tokens button at the top.
- Browse to your quest folder My Documents\My Games\Titan Quest\Working\CustomMaps\A1\Source\Quests\Tokens and click open.
- Enter the name killedsimon and click ok.
- Make another token with the name q1complete
- Close the token editor.
- In your first empty condition, click the new condition button .
- Select Owns Token X and click ok.
- Click that condition
- In the field at the bottom named Token, click the add token button
- To the right, open the token file for this mod and select q1complete and click ok.
- Change the "Not" field from false to true to make your steps look like this:
- Add another condition to the same trigger
- Select Kill Creature X
- Select this Kill Creature condition
- Search the database to the right for the monster we created in tutorial three named simon.
- In the field CreatureDatabaseRecord, select the add file box to the right and it will add your monster there.
If your .dbr files are not there you need to select your mod from File-Select Mod
Let's set the actions to take after player kills simon.
- Click the Actions tab of our Kill Creature X trigger and create a new action
- Select Give Token X
- Open the Tokens file, select killedsimon and click ok.
- Add another action here. Use Add Journal Entry in Region #N and edit the fields as follows:
- DoComplete=False
- DoSound=True
- FullTextTag=taga1q1text2
- LocationTag=taga1q1location
- RegionNumber=1
- TitleTag=taga1q1title
- Add another action.
- Select Illuminate X as Primary and use our a1q1npcamy in the Npc field.
- Add another action.
- Select Update X’s Dialog to X and use a1q1npcamy for the npc and a1q1dialog2 for the dialogpak.
- In the next step add two conditions as follows: Owns Token killedsimon and On Interact with a1q1npcamy.
- Add a new action for this trigger
- Select Give Player X X X Experience and fill in the following fields:
- ExperienceEpic = 3000
- ExperienceLegendary = 4000
- ExperienceNormal = 2000
- Add another action here
- Select Add Jornal Entry in Region #N and change the following fields:
- DoComplete = True
- FullTextTag = taga1q1text3
- LocationTag = taga1q1location
- TitleTag = taga1q1title
- Add another set of actions:
- Remove Token killedsimon
- Give Token q1complete
- Illuminate X as Primary and change the fields as follows:
- Npc = records/a1scrollinstut/a1q1npcamy.dbr
- Type = 2
One more step and we are done.
- In your final quest step create a new condition Owns Token q1complete.
- Create another condition On Interact with a1q1npcamy
- Create a action Update a1q1npcamy's Dialog to a1q1dialog3
- Lastly go back to the first step and add the condition Not Owns Token q1complete. (Owns Token X then change the Not field to true)
Your quest steps should now look as follows: - Save your quest and close the Quest Editor
Finalizing and Testing[]
- Open the World Editor
- Add a hallway and another room
- Move our monster simon to the next room
- Switch to Layout mode and click build- rebuild all pathing and then build- rebuild all maps.
- click File- Save All and close the World Editor
- Open the Art Manager
- Select your mod A1, find your tokens file in source.
- Right click and auto create assets.
- Do this for your quest file and other source files.
- Click Build- Build to build everything
You should have a working side quest.
If anything goes wrong open the quest editor and check back that your triggers and fields are correct. Also by small chance Simon can spawn with a life leach weapon if he does and you are using a level 1 character you might not be able to kill him.