Denizen config.yml: Difference between revisions
Aufdemrand (talk | contribs) No edit summary |
Aufdemrand (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<quote>The Denizen config.yml contains nodes to alter the stock behavior and look of Denizen. You'll notice that Denizen does not create its own config.yml. Why is this? Denizen stores its entire config inside memory, so it's not necessary to have a copy inside the Denizen folder unless you need to change the defaults. You can use the config.yml to override those defaults. Not having Denizen write to the config.yml itself (as well as scripts files) ensures that upon a /denizen reload, the config.yml, between a save and reload, is never changed when you don't want it to. This also keeps code comments inside the YML files stay intact, exactly the way you left them from last edit allowing you to leave yourself and others detailed notes and ideas. | |||
This file can be reloaded from disk to Denizen memory at any time by using /denizen reload. Some changes in the config.yml may require a restart of the server. This includes interact_delay_in_ticks, but is not limited to that config node. | |||
</quote> | |||
{{codebox|height=300px|Default Denizen config.yml|<syntaxhighlight lang="yaml"> | {{codebox|height=300px|Default Denizen config.yml|<syntaxhighlight lang="yaml"> | ||
Line 6: | Line 8: | ||
right_click_and_sneak_info_mode_enabled: true | right_click_and_sneak_info_mode_enabled: true | ||
# Interact delay sets the pace of the 'Player Queue' and 'Denizen Queue' | |||
# execution, which is where commands triggered by scripts are stored. | |||
# Recommend 10-20. | |||
# Interact delay sets the pace of the 'Player | |||
# | |||
interact_delay_in_ticks: 10 | interact_delay_in_ticks: 10 | ||
# How long should the maximum line length be for multi-line text? | # How long should the maximum line length be for multi-line text? | ||
multi_line_text_maximum_length: 55 | multi_line_text_maximum_length: 55 | ||
# By default, players can talk to Denizens even if there are no | # By default, players can talk to Denizens even if there are no | ||
Line 52: | Line 30: | ||
# triggers, but the player failed to match one. | # triggers, but the player failed to match one. | ||
chat_globally_if_failed_chat_triggers: false | chat_globally_if_failed_chat_triggers: false | ||
# Should players around the player interacting with the Denizen | # Should players around the player interacting with the Denizen | ||
Line 73: | Line 45: | ||
player_to_npc_whisper_range_in_blocks: 2 | player_to_npc_whisper_range_in_blocks: 2 | ||
npc_to_player_whisper_range_in_blocks: 3 | npc_to_player_whisper_range_in_blocks: 3 | ||
# These nodes define how chatting, shouting, etc. is displayed | # These nodes define how chatting, shouting, etc. is displayed | ||
Line 100: | Line 70: | ||
# Default texts that Denizens use when interacting. These | # Default texts that Denizens use when interacting. These | ||
# can also be set per-denizen, which will override the | # can also be set per-denizen, which will override the | ||
# defaults set below | # defaults set below. | ||
default_no_requirements_met_text: Sorry, I have nothing else for you right now. | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} |
Revision as of 18:20, 8 August 2012
<quote>The Denizen config.yml contains nodes to alter the stock behavior and look of Denizen. You'll notice that Denizen does not create its own config.yml. Why is this? Denizen stores its entire config inside memory, so it's not necessary to have a copy inside the Denizen folder unless you need to change the defaults. You can use the config.yml to override those defaults. Not having Denizen write to the config.yml itself (as well as scripts files) ensures that upon a /denizen reload, the config.yml, between a save and reload, is never changed when you don't want it to. This also keeps code comments inside the YML files stay intact, exactly the way you left them from last edit allowing you to leave yourself and others detailed notes and ideas. This file can be reloaded from disk to Denizen memory at any time by using /denizen reload. Some changes in the config.yml may require a restart of the server. This includes interact_delay_in_ticks, but is not limited to that config node. </quote>
Code: Default Denizen config.yml |
{{{2}}} |