How to make province-specific dialogues
Posted: Sun Jan 18, 2015 1:11 pm
When you create a NPC for a province mod, you will be confronted to generic topics. Unfortunately, you'll find a lot of references to the province of Morrowind, like local rumors, names of daedrics ruins or other NPCs, etc... If you just use the NoLore variable to get rid of them, NPCs from other mods will be able to use your dialogues if the conditions are not very strict. And you are lazy. You don't want to multiply dialogues lines to match every possibility.
When you create a new NPC, add him the little script NameoftheProvinceLore (replace NameoftheProvince with the name of your province. Ex: Elsweyr, Cyrodiil or Skyrim)
The NoLore variable will get rid of generic topics and the NameoftheProvinceLore variable give you an easy way to filter yours dialogues.
When you create a new dialogue, add the condition Local NameoftheProvinceLore = 0 and your dialogue will be displayed only for a NPC having the script. So, you could create your own rumors, advices, etc...
This is valid for a generic dialogue. Of course, if the conditions are already specifics (like using the ID or depending of a place), you don't have to use the filter.
For a scripted NPC, just add the two variables at the beginning of the script and he will be able to show your topics too.
When you create a new NPC, add him the little script NameoftheProvinceLore (replace NameoftheProvince with the name of your province. Ex: Elsweyr, Cyrodiil or Skyrim)
Code: Select all
Begin NameoftheProvinceLore
short NoLore
short NameoftheProvinceLore
End NameoftheProvinceLore
When you create a new dialogue, add the condition Local NameoftheProvinceLore = 0 and your dialogue will be displayed only for a NPC having the script. So, you could create your own rumors, advices, etc...
This is valid for a generic dialogue. Of course, if the conditions are already specifics (like using the ID or depending of a place), you don't have to use the filter.
For a scripted NPC, just add the two variables at the beginning of the script and he will be able to show your topics too.