summaryrefslogtreecommitdiff
path: root/conf/map
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-05-27 12:40:47 +0200
committerGitHub <noreply@github.com>2020-05-27 12:40:47 +0200
commitfcffb676132949852adfef2fd3f814485f964709 (patch)
treeb00e7b948150ab9c500e9d61b9a11cdd0fe26ad0 /conf/map
parent3d9317d3a0bb200b9262be8fb882f33b40bfbd2e (diff)
parent6aed6b4f7c669c3760c5ebd32b40fbb7da1d5715 (diff)
downloadhercules-fcffb676132949852adfef2fd3f814485f964709.tar.gz
hercules-fcffb676132949852adfef2fd3f814485f964709.tar.bz2
hercules-fcffb676132949852adfef2fd3f814485f964709.tar.xz
hercules-fcffb676132949852adfef2fd3f814485f964709.zip
Merge pull request #2142 from Helianthella/export2
allow local NPC functions to be public or private
Diffstat (limited to 'conf/map')
-rw-r--r--conf/map/script.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/conf/map/script.conf b/conf/map/script.conf
index fc4f26965..4eb84edf4 100644
--- a/conf/map/script.conf
+++ b/conf/map/script.conf
@@ -59,6 +59,16 @@ script_configuration: {
// Defaults to INT_MAX.
//input_max_value: 2147483647
input_max_value: 10000000
+
+ // Specifies whether functions not explicitly marked with a "private" or
+ // "public" keyword should be treated as "private" by default.
+ // Default: true
+ functions_private_by_default: true
+
+ // Specifies whether public functions can be invoked as NPC events. This
+ // allows, for example, to use a `public function OnDeath { ... }` instead
+ // of a `OnDeath:` label for mob death events.
+ functions_as_events: false
}
import: "conf/import/script.conf"