Wulf the Traveler: Difference between revisions

From Bonfire by Hogswild Prasetto
m 5 revisions imported
No edit summary
Line 1: Line 1:
{{Bonfire-Character|race = Human|gender = Male|unlock_by = |creator = Buoysel|core_game = No|image1 = Wulf 4242019134724.jpg|location = Island|quote = Hey there! I'm Wulf.|introduced_in_patch = 0.31.X}}Meet Wulf, a wanderer who teaches players about some of the more advanced features in the game.
{{Bonfire-Character|race = Human|gender = Male|unlock_by = |creator = Buoysel|core_game = No|image1 = File:Wulf 4242019134724.jpg|location = Island|quote = Hey there! I'm Wulf.|introduced_in_patch = 0.31.X}}Meet Wulf, a wanderer who teaches players about some of the more advanced features in the game.
==Usage==
==Usage==
In truth, Wulf serves as a template for creating NPCs with multiple conversation topics, quests, and a persistent memory across play sessions. Mod creators are inteded to overwrite Wulf using the "Import Character" button within the NPC Editor, and to replace the default text provided after '''Line 6'''. It's also recommended that Wulf's default data flag "''myQuestFlag" '' be renamed to something unique so it doesn't clash with other modders' NPCs. 
In truth, Wulf serves as a template for creating NPCs with multiple conversation topics, quests, and a persistent memory across play sessions. Mod creators are inteded to overwrite Wulf using the "Import Character" button within the NPC Editor, and to replace the default text provided after '''Line 6'''. It's also recommended that Wulf's default data flag "''myQuestFlag" '' be renamed to something unique so it doesn't clash with other modders' NPCs. 

Revision as of 18:59, 20 June 2021

Wulf the Traveler
File:Wulf 4242019134724.jpg
Alignment
Race Human
Gender Male
Location Island
Quote Hey there! I'm Wulf.
Known Kinks
Requires Patch 0.31.X
Created By Buoysel
Core Game No

Meet Wulf, a wanderer who teaches players about some of the more advanced features in the game.

Usage

In truth, Wulf serves as a template for creating NPCs with multiple conversation topics, quests, and a persistent memory across play sessions. Mod creators are inteded to overwrite Wulf using the "Import Character" button within the NPC Editor, and to replace the default text provided after Line 6. It's also recommended that Wulf's default data flag "myQuestFlag"  be renamed to something unique so it doesn't clash with other modders' NPCs. 

Wulf will create a data flag called "myQuestFlag" and store it within the player's inventory. Next, whenever the player speaks to Wulf, he will check for myQuestFlag's value. If the value is 0, he'll start the first meeting. If the value is 1, he'll start the second meeting, and if the value is 2, he'll start the third.

At the end of the first two meetings he will increase the value of myQuestFlag by 1. So if the value was 0 before the start of the first meeting, it will be 1 when the conversation ends. Because value is now 1, speaking to Wulf again will start the second conversation, and the value will be 2 by the end. Speaking to Wulf a third time will start the final conversation, but this doesn't change the flag's value.

By using this template, you have a framework for creating more complex quests and conversations that allows you to add or remove conversation branches. In addition, because data flags are items stored within the player's inventory, they will retain their value when you save the game. This enables you to create NPCs that will remember the player and their quest progress, even after you close the game.