Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Str For NameStore NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str If CompareGt AttributeLoad NameLoad attr Num body Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler body Assign NameStore Str AugAssignAdd NameStore BinOpMod Call NameLoad Str Dict Str Str Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Num For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore Num For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list
N/A N/A 
The script handler makes sure to check through all stored scripts to
make sure they are still relevant. A scripthandler is automatically
added to all game objects. You access it through the property
`scripts` on the game object.

 builtins object evennia.scripts.models ScriptDB evennia.utils create evennia.utils logger django.utils.translation ugettext _ ScriptHandler N/A object N/A N/A 
    Implements the handler.  This sits on each game object.

     __init__ N/A N/A self obj N/A N/A N/A 
        Set up internal state.

        Args:
            obj (Object): A reference to the object this handler is
                attached to.

         N/A N/A self obj obj N/A __str__ N/A N/A self N/A N/A N/A 
        List the scripts tied to this object.

         N/A scripts N/A N/A N/A ScriptDB objects get_all_scripts_on_obj N/A self obj N/A string N/A script scripts N/A N/A interval inf N/A next_repeat inf N/A repeats inf N/A N/A N/A script interval 0 N/A N/A interval N/A script interval N/A N/A script repeats N/A N/A repeats N/A script repeats N/A N/A N/A next_repeat N/A N/A script time_until_next_repeat N/A N/A N/A N/A next_repeat ? N/A string N/A N/A _ 
 '%(key)s' (%(next_repeat)s/%(interval)s, %(repeats)s repeats): %(desc)s N/A key next_repeat interval repeats desc N/A script key next_repeat interval repeats N/A script desc N/A N/A N/A string strip N/A add N/A N/A self scriptclass key autostart N/A None True N/A N/A 
        Add a script to this object.

        Args:
            scriptclass (Scriptclass, Script or str): Either a class
                object inheriting from DefaultScript, an instantiated
                script object or a python path to such a class object.
            key (str, optional): Identifier for the script (often set
                in script definition and listings)
            autostart (bool, optional): Start the script upon adding it.

         N/A N/A N/A N/A N/A self obj __dbclass__ __name__ PlayerDB N/A N/A script N/A N/A create create_script scriptclass key key player N/A self obj autostart autostart N/A N/A script N/A N/A create create_script scriptclass key key obj N/A self obj autostart autostart N/A N/A script N/A N/A N/A N/A logger log_err N/A Script %s could not be created and/or started. scriptclass N/A False N/A True N/A start N/A N/A self key N/A N/A N/A 
        Find scripts and force-start them

        Args:
            key (str): The script's key or dbref.

        Returns:
            nr_started (int): The number of started scripts found.

         N/A scripts N/A N/A N/A ScriptDB objects get_all_scripts_on_obj N/A self obj key key N/A num 0 N/A script scripts N/A N/A num N/A N/A script start N/A num N/A get N/A N/A self key N/A N/A N/A 
        Search scripts on this object.

        Args:
            key (str): Search criterion, the script's key or dbref.

        Returns:
            scripts (list): The found scripts matching `key`.

         N/A N/A N/A N/A ScriptDB objects get_all_scripts_on_obj N/A self obj key key N/A delete N/A N/A self key N/A None N/A N/A 
        Forcibly delete a script from this object.

        Args:
            key (str, optional): A script key or the path to a script (in the
                latter case all scripts with this path will be deleted!)
                If no key is given, delete *all* scripts on the object!

         N/A delscripts N/A N/A N/A ScriptDB objects get_all_scripts_on_obj N/A self obj key key N/A N/A delscripts N/A N/A delscripts N/A script N/A script N/A N/A N/A ScriptDB objects get_all_scripts_on_obj N/A self obj N/A N/A script path key N/A num 0 N/A script delscripts N/A N/A num N/A N/A script stop N/A num N/A N/A stop delete all N/A N/A self N/A N/A N/A 
        Get all scripts stored in this handler.

         N/A N/A N/A N/A ScriptDB objects get_all_scripts_on_obj N/A self obj N/A validate N/A N/A self init_mode N/A False N/A N/A 
        Runs a validation on this object's scripts only.  This should
        be called regularly to crank the wheels.

        Args:
            init_mode (str, optional): - This is used during server
                upstart and can have three values:
                - `False` (no init mode). Called during run.
                - `"reset"` - server reboot. Kill non-persistent scripts
                - `"reload"` - server reload. Keep non-persistent scripts.

         N/A N/A N/A N/A ScriptDB objects validate obj N/A self obj init_mode init_mode N/A N/A