I'm trying to streamline the process when modding Sugarcube games.
Say a folder has 10 image files in it with file naming from 1 to 10.
As the moment I manually set a variable to record how many pics are in the designated folder.
I'd like to avoid having to modify the code everytime a file is added.
Is there a way for Twine code to count the number of image files in a folder instead?
Further down the line, if I place a set of pictures in the folder and naming them like following
Scene1-1, Scene1-2, Scene1-3,Scene1-4, Scene1-5,
Scene2-1, Scene2-2
Is it possible to run a repeatable code to check how many files are under Scene1-x, and how many are under Scene2-x?
Thanks
Say a folder has 10 image files in it with file naming from 1 to 10.
As the moment I manually set a variable to record how many pics are in the designated folder.
I'd like to avoid having to modify the code everytime a file is added.
Is there a way for Twine code to count the number of image files in a folder instead?
Further down the line, if I place a set of pictures in the folder and naming them like following
Scene1-1, Scene1-2, Scene1-3,Scene1-4, Scene1-5,
Scene2-1, Scene2-2
Is it possible to run a repeatable code to check how many files are under Scene1-x, and how many are under Scene2-x?
Thanks