Could this be done with videos also?
No.
When you write something like
image myVideo = Movie( play="whatever" )
you are in fact creating an object that will later play the video. And the path to the video is proceeded when you create the object, not when you'll play it. So, it would have no interest to have text substitution here.
Note that it also apply for any
You must be registered to see the links
, for the exact same reason.
If you really need the movie to have a dynamic name, there's a workaround with
You must be registered to see the links
:
Code:
default girlname = "sarah"
label whatever:
[...]
$ renpy.movie_cutscene( "characters/{}/dance.webm".format( girlname ) )
But it's not suitable for all situation since it will display the movie in full screen, whatever the original size of the movie.
Code:
play movie "characters/[girlname]/dance.webm" loop
Tried it before answering, and it didn't works. But like I don't have use for movies (at least for now), my knowledge on this subject is limited and I can have messed my test.