Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#560013 18/12/14 12:01 AM
Joined: Oct 2014
Location: Hogwarts
member
OP Offline
member
Joined: Oct 2014
Location: Hogwarts
I'd like to add a journal with some text to my mod. I checked other mods and the journals aren't global so the text can't be attached using a script. I can't find anything on the Side Bar where the text would go either. Help?

Joined: Oct 2014
B
enthusiast
Offline
enthusiast
B
Joined: Oct 2014
Journals are basically a massive pain in the ass the first time you do it, after that it's ezpz.

There are a lot of steps. I'll break them down as best I can here:

1.) Take the Mods/Story/Journal folder and copy it to your same directory in your mod.

2.) Get notepad++ if you don't have it, it's free.

3.) Use notepad++ to open Quest_Prototypes.lsx in that folder, go ahead and clear it all out.

4.) Copy this into that file you just cleared out:

Quote

<?xml version="1.0" encoding="UTF-8" ?>
<save>
<region id="Quests">
<node id="root">
<children>

<node id ="Quest">
<attribute id="QuestID" value="Undead" type="22"/>
<attribute id="MainQuest" value="1" type="19"/>
<attribute id="QuestTitle" value="UndeadQuest_Title" type="22"/>
<children>

<node id ="QuestState">
<attribute id="Status" value="Update1" type="22"/>
<attribute id="Description" value="UndeadQuest1" type="22"/>
<attribute id="Rewards" value="" type="22"/>
<attribute id="Marker" value="" type="22"/>
<attribute id="Achievement" value="quest1" type="22"/>
<attribute id="Act" value="" type="4"/>
<attribute id="Gain" value="" type="4"/>
<attribute id="ReputationGain" value="" type="4"/>
</node>



</children>
</node>



</children>
</node>

</region>

</save>


The text above has some of my own settings in it, but the lines you'll want to change to your own liking are in BOLD.

Restart the editor every time after making changes to this file.

5.) Open the TranslatedStringKey Editor and add two new keys:
a.)Whatever you put for your value on this line:
<attribute id="QuestTitle" value="UndeadQuest_Title" type="22"/>

b.)Whatever you put for your value on this line:
<attribute id="Description" value="UndeadQuest1" type="22"/>

In the Content sections of the TranslatedStringKey for the title - put your quest title. Something simple. For the content of the second new key (UndeadQuest1 in my case), put what you want the journal to describe to the player.

6.)Somewhere in your story editor script when the player gets the quest, you're going to want to add the following lines:

QuestAdd("Undead");
QuestUpdate("Undead","Update1");

Those are pretty self explanatory, but the first one works off of THIS line in the quest_prototype file:
<node id ="Quest">
<attribute id="QuestID" value="Undead" type="22"/>

The second one works off of this line:
<node id ="QuestState">
<attribute id="Status" value="Update1" type="22"/>


This is going to take a lot of trial and error, once you get one working though, the rest will come easy.

Be careful editing the quest_Prototype file, one tiny error will make every journal entry in your game stop working.

Edit

Add one

Quote
<node id ="QuestState">
<attribute id="Status" value="Update1" type="22"/>
<attribute id="Description" value="UndeadQuest1" type="22"/>
<attribute id="Rewards" value="" type="22"/>
<attribute id="Marker" value="" type="22"/>
<attribute id="Achievement" value="quest1" type="22"/>
<attribute id="Act" value="" type="4"/>
<attribute id="Gain" value="" type="4"/>
<attribute id="ReputationGain" value="" type="4"/>
</node>


for each update to a quest, change Update1 to 2,3,4, so on. Each should point to a different TranslatedString (UndeadQuest1, 2, 3, etc) in the key editor.


When you're done with one quest, use

Quote

<node id ="Quest">
<attribute id="QuestID" value="Undead" type="22"/>
<attribute id="MainQuest" value="1" type="19"/>
<attribute id="QuestTitle" value="UndeadQuest_Title" type="22"/>
<children>

to add other ones.



Last edited by Burgee; 18/12/14 06:36 AM.
Joined: Oct 2014
Location: Hogwarts
member
OP Offline
member
Joined: Oct 2014
Location: Hogwarts
Oh! This is a script to track quest progress right? I was pretty certain this would be complicated to some degree. What I'm actually working on right now, though, is trying to make it so my characters can [on use] read a book. Like how you can read the player's journal in the cottage of your survival mod.

Sorry >_<

Joined: Oct 2014
B
enthusiast
Offline
enthusiast
B
Joined: Oct 2014
No problem, this one's even easier.

Make a TranslatedStringKey entry (Key and Content).

On your book, open the sidebar, there's an OnUse field. Open it, add "Book" and then just type in the name of your Key in your TranslatedStringKey.

Done!

Joined: Oct 2014
Location: Hogwarts
member
OP Offline
member
Joined: Oct 2014
Location: Hogwarts
It worked, but the text got cut off. How does one fix that?

Joined: Oct 2014
Location: Hogwarts
member
OP Offline
member
Joined: Oct 2014
Location: Hogwarts
Bump. Any ideas why the journal text gets cut off after two sentences or so?

Joined: Oct 2014
Location: Hogwarts
member
OP Offline
member
Joined: Oct 2014
Location: Hogwarts
Solved to some extent. You need to input the text by hand, instead of copy and pasting it from a word document. Not sure how to make the lines between the paragraphs but at least the text is there now!

Joined: Oct 2014
B
enthusiast
Offline
enthusiast
B
Joined: Oct 2014
<br> starts a new line.

Using two in a row <br><br> creates a space between paragraphs.


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5