Villager Personalities
Villagers in Staxel are fairly moddable, with many parts being able to be switched out, and new creations can add to the pool.
This page is about Villager Personalities, these are found in .villager files and contains information for;
- Several types of dialogue. Normal and when someone is theiving.
- Set regards [Need to look into this sorry.]
- Set idle script
As such this file, in essence, creates the entirety of the villagers personality. This file does not affect the villager's Job which is handled by .viallagerjob files.
Contents
Creating a *.personality file
[Under Construction]
Config Options
"canGiveQuests"
Valid options (Bool): A boolean value.
Default Value: True
This determines whether or not this villager can give quests to the player.
"canLeaveTown"
Valid options (Bool): A boolean value.
Default Value: True
This determines whether or not this villager can leave the town when their totem is incomplete or broken.
"code"
Valid options (String): A unique string which species what this object is.
Default Value: No default value is specified. Always need to provide your own.
A string containing the code of the item the blob will be referring to.
"dialoguePools"
Valid options (List of strings): A list of strings which point to a Dialogue Pool code each
Default Value: Null or nothing specified.
This is a list of strings that point towards the dialogue pools which will be used for general talking. These do not include dialogues for jobs or theft.
"idleScript"
Valid options (String): A string represented pointing to a script that handles idling.
Default Value: "staxel.script.IdleNpcScript"
This determines what code should dictate how the npc's will do while idle. These scripts are snippets of c# code, but the one that is most often used is "staxel.script.IdleNpcScript".
To create your own script, you will have to follow Code Based Mod and implement a class which inherits IScript.
"suppressGeneralDialogue"
Valid options (Bool): True or False
Default Value: False
This defines whether or not the "General" dialogue, or the dialogue that all villagers have, will not be played. (i.e When this property is true, it will not play normal dialogue.)
"theftDialoguePools"
Valid options (List of strings): A list of strings which point to a Dialogue Pool code each
Default Value: Null or nothing specified.
This is a list of strings that point towards the dialogue pools which will be used for general talking. These do not include dialogues for jobs or theft.
"typicalRegards"
[Need to look into]