Commit fc1c0815 authored by cobaltcore's avatar cobaltcore
Browse files

Update FakePerson section

parent 763c3584
......@@ -124,6 +124,8 @@ From this point onward, whenever `john` speaks, he will show up as `Jacob` inste
### Creating a temporary character
It is possible to create an entirely new speaker-character which can be used in the script as if it were a full-fledged character, with the exception that this "fake" character will not have any sprites. It purely exists to speak dialogue. This is the recommended way of creating new speakers or changing the name of existing ones by having the fake character speak the lines of the existing one.
When creating a `FakePerson`, please prefix them with your scenario prefix to avoid name collisions!
A fake character (or rather, "fake person" as they are called in Student Transfer) can be created and used like this:
=== "Syntax"
......@@ -134,13 +136,13 @@ A fake character (or rather, "fake person" as they are called in Student Transfe
=== "Example"
```python
# Define the fake person
define secretary = FakePerson("Secretary", 'donna')
define example_secretary = FakePerson("Secretary", 'donna')
# Use them in the script
secretary "Hey, listen!"
example_secretary "Hey, listen!"
# Note that you can not do this:
show secretary a_0 at center
show example_secretary a_0 at center
# Fake persons do not have any sprites associated with them!
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment