is there a quick way of referencing multiple png's? Like referencing all art work in one folder?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By CluelessCoder

I’m creating a NPC generator and I have folders of art work for different clothes and body parts. I could go through and reference all of them in the script by creating a unique variable for each one but there are a ton of them and it would take a while. Is there a quicker way? Could i script something that would look through the folder and pick one at random without me having to reference each and every sprite.

:bust_in_silhouette: Reply From: Wakatta

Here is a related question that you can further expand on and create 2 additional functions. 1 to get a random png from the list and another to get the names.

thanks. i’ll look into it

CluelessCoder | 2023-05-08 01:08