From 4fdbae04c22739e571f115cf7f5cf11444d3c5b1 Mon Sep 17 00:00:00 2001 From: Hellgheast Date: Mon, 20 Jun 2022 19:05:18 +0200 Subject: [PATCH] doc: Fixing bodyfunctions script call --- .../Howtos/Beginner-Tutorial/Part1/Building-Quickstart.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/Howtos/Beginner-Tutorial/Part1/Building-Quickstart.md b/docs/source/Howtos/Beginner-Tutorial/Part1/Building-Quickstart.md index f4fa3f3821..49748d4812 100644 --- a/docs/source/Howtos/Beginner-Tutorial/Part1/Building-Quickstart.md +++ b/docs/source/Howtos/Beginner-Tutorial/Part1/Building-Quickstart.md @@ -155,10 +155,10 @@ later, in the [Commands tutorial](./Adding-Commands.md). [Scripts](../../../Components/Scripts.md) are powerful out-of-character objects useful for many "under the hood" things. One of their optional abilities is to do things on a timer. To try out a first script, let's put one -on ourselves. There is an example script in `evennia/contrib/tutorial_examples/bodyfunctions.py` +on ourselves. There is an example script in `evennia/contrib/tutorials/bodyfunctions/bodyfunctions.py` that is called `BodyFunctions`. To add this to us we will use the `script` command: - script self = tutorial_examples.bodyfunctions.BodyFunctions + script self = tutorials.bodyfunctions.BodyFunctions This string will tell Evennia to dig up the Python code at the place we indicate. It already knows to look in the `contrib/` folder, so we don't have to give the full path. @@ -179,7 +179,7 @@ output every time it fires. When you are tired of your character's "insights", kill the script with - script/stop self = tutorial_examples.bodyfunctions.BodyFunctions + script/stop self = tutorials.bodyfunctions.BodyFunctions You create your own scripts in Python, outside the game; the path you give to `script` is literally the Python path to your script file. The [Scripts](../../../Components/Scripts.md) page explains more details.