Question by
RPG-Leon · Jan 05, 2020 at 03:07 PM ·
variableslistsfindcustom class
Find entry in list based on part of the variable
I have a custom variable called Card. This variable stores to ints, one for color and one for number. I have a list that stores random Cards in it. Is there any way to find an Entry in that list based only on either the color or the number? Furthermore, if the list contains more than one Card of each color, is there a way to pick only one of them? Maybe even based on what number it should prefer or can i tell the game to store all the matching entries in a seperate list and then pick from that at random?
Comment