Refactored ScriptHandler into ScriptContainer. Now uses dictionaries with finer control for script launching.
This commit is contained in:
parent
f1c7471691
commit
1f246484cd
2 changed files with 41 additions and 15 deletions
|
|
@ -552,8 +552,13 @@ PROTOTYPEFUNC_MODULES = ["evennia.utils.prototypefuncs",
|
|||
# The 'key' is a way to quickly index them, and it will also be the
|
||||
# Script Typeclasss's key so it can be quickly retrieved.
|
||||
|
||||
# Values are a dictionary that uses the example format. Available keys
|
||||
# are typeclass (required), interval, repeats, start_delay, and desc
|
||||
# only typeclass is required.
|
||||
|
||||
GLOBAL_SCRIPTS = {
|
||||
# 'key': 'typeclass.path.here',
|
||||
# 'key': {'typeclass': 'typeclass.path.here',
|
||||
# 'repeats': -1, 'interval': 50, 'desc': 'Example script'},
|
||||
}
|
||||
|
||||
######################################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue