- Jun 2, 2018
- 543
- 686
I know its possible with some kind of formatting function but I can't find it!
I have a character folder in my image directory. I want to use this directory as a suedo "character list". Meaning if I add a folder here, I then add a character to the game.
images/characters/female/blonde/Name/etc/etc/etc
I want to isolate the folder: Name
and append the character name to a character list.
I know I will probably have to use .startswith("images/characters/female/blonde/") but there are a lot of different parameters leading up to the character name and am hoping also for a more simple/cleaner function. If anyone has an alternative way to apply common attributes like hair color using folder names that would be fantastic.
Thanks in advance!
I have a character folder in my image directory. I want to use this directory as a suedo "character list". Meaning if I add a folder here, I then add a character to the game.
images/characters/female/blonde/Name/etc/etc/etc
I want to isolate the folder: Name
and append the character name to a character list.
I know I will probably have to use .startswith("images/characters/female/blonde/") but there are a lot of different parameters leading up to the character name and am hoping also for a more simple/cleaner function. If anyone has an alternative way to apply common attributes like hair color using folder names that would be fantastic.
Thanks in advance!