evennia.contrib.tutorial_examples.bodyfunctions¶
Example script for testing. This adds a simple timer that has your character make observations and notices at irregular intervals.
- To test, use
@script me = tutorial_examples.bodyfunctions.BodyFunctions
The script will only send messages to the object it is stored on, so make sure to put it on yourself or you won’t see any messages!
-
class
evennia.contrib.tutorial_examples.bodyfunctions.
BodyFunctions
(*args, **kwargs)[source]¶ Bases:
evennia.scripts.scripts.DefaultScript
This class defines the script itself
-
at_repeat
()[source]¶ This gets called every self.interval seconds. We make a random check here so as to only return 33% of the time.
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶ Bases:
evennia.scripts.scripts.DefaultScript.MultipleObjectsReturned
-
path
= 'evennia.contrib.tutorial_examples.bodyfunctions.BodyFunctions'¶
-
typename
= 'BodyFunctions'¶
-