Quest Comment Handling Changes

For all talk about quest development - creation, testing, and quest system.
Post Reply
User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Quest Comment Handling Changes

Post by Interkarma »

Lines starting with the dash "-" character in TEMPLATE are treated as comments. Up until now, lines that started with a dash were always discarded before being parsed in Daggerfall Unity. I'm changing this behaviour slightly in next builds. Here are the new rules.
  • When in neither QRC or QBN: All lines starting with a dash are skipped always.
  • In QRC: All lines starting with a dash are skipped outside of a text block
  • In QRC: All lines starting with a dash are accepted inside of a text block.
  • In QBN: All lines starting with a dash are skipped always.
The short version is that you can now use the dash "-" in text blocks. Everywhere else its the same as before.

This fixes an issue where the dash character is used at start of a line in text blocks (e.g. signing off a letter) and should be accepted as part of the quest text.

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: Quest Comment Handling Changes

Post by Interkarma »

Also note that QRC blocks must always end with an empty line. A comment directly at end of a text block, without an empty line above it, will now be treated as part of text block. For example:

Code: Select all

QuestorOffer:  [1000]
<ce>               Howdy, %pcf.  If you got a few days free,
<ce>            a job just came in for some giant-killin', and
<ce>                    I thought of you.  Interested?
-this will be included in text block

Code: Select all

QuestorOffer:  [1000]
<ce>               Howdy, %pcf.  If you got a few days free,
<ce>            a job just came in for some giant-killin', and
<ce>                    I thought of you.  Interested?

-this will be ignored as a comment

Post Reply