Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the ability for mods to add new Biography templates #2065

Merged
merged 1 commit into from
Apr 15, 2021

Conversation

KABoissonneault
Copy link
Collaborator

I felt like investigating the biography and History system in Daggerfall, and noticed that it wouldn't be too hard for DFU to give mods the ability to introduce alternative biographies for character.

With these changes, after choosing a class (ex: Mage aka 0), the game looks for all files that match BIOG00T([0-9]+).txt in the BIOG source folder. If multiple files are found, one is selected at random (note: could be extended later to offer a list to choose from).

In addition, an extension was added to the BIOG file format. Before the first question, if a line starts with #, the rest of the line will be interpreted as a string id, and will be used for the backstory. With a custom ITextProvider, mods can make use of unused string values to provide new backstory text.

For example, if a mod adds a BIOG00T1.txt file, when a player creates a Mage (or similar custom class), the game will randomly pick between BIOG00T0 and BIOG00T1, with possibility for a new set of questions and/or a different backstory.

I've asked around, and it seems like it would be a popular feature.

…sing a class (ex: Mage aka 0), the game looks for all files that match BIOG00T([0-9]+).txt in the BIOG source folder. If multiple files are found, one is selected at random.

In addition, an extension was added to the BIOG file format. Before the first question, if a line starts with #, the rest of the line will be interpreted as a string id, and will be used for the backstory. With a custom ITextProvider, mods can make use of unused string values to provide new backstory text.

For example, if a mod adds a BIOG00T1.txt file, when a player creates a Mage (or similar custom class), the game will randomly pick between BIOG00T0 and BIOG00T1, with possibility for a new set of questions and/or a different backstory.
@Interkarma
Copy link
Owner

I'm happy to merge this, will be interesting to see where it goes. Cheers!

@Interkarma Interkarma merged commit 218c3e5 into Interkarma:master Apr 15, 2021
@KABoissonneault KABoissonneault deleted the feat/custom-biography branch April 19, 2021 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants