Set @event/edit to be more clever when selecting events

This commit is contained in:
Vincent Le Goff 2017-03-13 13:16:46 -07:00 committed by Griatch
parent 88516630db
commit 5e43f1370f
3 changed files with 67 additions and 17 deletions

View file

@ -6,6 +6,8 @@ and are designed to be used more by developers to add event types.
"""
from textwrap import dedent
from evennia import logger
from evennia import ScriptDB
@ -123,4 +125,5 @@ def connect_event_types():
types = script.ndb.event_types[typeclass_name]
# Add or replace the event
help_text = dedent(help_text.strip("\n"))
types[event_name] = (variables, help_text)