Adding Spaceship Thoughts for a New Character - shawna-p/mysterious-messenger GitHub Wiki
Notice
These pages are out of date! The most recent version of the documentation can be found here: https://mysterious-messenger.readthedocs.io/en/stable/
This page is retained so that it can still be linked to.
Adding Spaceship Thoughts for a New Character
First, go to variables_editable.rpy. Under the heading SPACESHIP THOUGHT IMAGES you will see several images defined.
For the purposes of this tutorial, these examples will show how to add a character named Bob to the program.
At the end of the declarations, add another image for Bob, using his file_id for the name + "_spacethought".
image b_spacethought = "Menu Screens/Spaceship/b_spacethought.png"
This image should be 651x374 pixels and will be shown behind the thought the character has when the spaceship icon is clicked.
You can then give Bob a SpaceThought
when updating the space_thoughts
list e.g.
$ space_thoughts.new_choices([
SpaceThought(b, "Your thought here."),
SpaceThought(b, "More thoughts.")
])
See Spaceship Thoughts for more information on updating spaceship thoughts.