Hi once again!
I’m really taking advantage of you guys 
The question
So, i’m making a quiz app and have created a function that can be called and assign a FrameName to a sprite which will generate a random image.
I have put the names in a vector of std::strings and it works great but what i want is, now when it returns the images randomly i want to do something like this:
Let’s say i do this:
Abilities.push_back("ChampSquares/TheOneAb.png");
Then in the function that can be called from other classes:
string QuizGraphic::getRandObj(std::string object)
{
if (object == "quiz") {
if (!Abilities.empty())
{
std::string name = Abilities[1]; (THIS IS NORMALLY A RANDOM NUMBER)
return name;
}
}
return NULL;
}
Then i got some variables:
//Variables
static int state;
//Desription
static std::string description;
And i want to do so that if something like Abilities[random number] returns maybe “a specific name” make the description string to a text that describes that certain object.
Like if the returned object from the vector what an image of an apple i would make the description = “Apple”
Thanks!
Hope you get my point 
PS i’ve not checked the grammar…