Issue with quiz selection

So I’m creating a game that’s like a pokemon style creature capture rpg. But my initial quiz to determine your partner is giving me issues with a naming prompt. I’m sorta confused bc the idea behind the quiz is to have any possible creature be selected. Right now this is just a trial build but I want to eventually add more creatures and tasks but I think it’s at least playable once this issues resolved.

If anyone can help me resolve this and maybe add some input to help I’m just starting and am trying to learn.

Change your topic to ‘how do i’, thats where people solve questions like this I think

Welcome Drewd6. Are the names in red scene or global variables or objects variables. Either way,variables need to be declared. Either they’re not declared or they’re misspelled.

More information would be helpful.

Also, you used the compare 2 numbers condition. Variables and object variables have their own conditions. The way GDevelop picks objects based on conditions, if they’re object variables it’s important that the object’s variable condition is used. The compare numbers condition doesn’t pick any objects. It just evaluates to true or false.

See also

Hello! what you seem to be trying to acheive is to fetch information from an object that will be selected (which means that you don’t know which one will be selected, until the player selects it).

this is a very fundamental building block of making games. you need to be able to know which instance of object is selected. This is called object picking. Object Picking - GDevelop documentation
note that object picking is a misnomer. it should be called instance picking.

The simplest way to manage selection is to add an object variable [selected] and then when you press on the instance (or any other method of ckecking which one you want to select), you change the variable [selected] of the instance to true (and all the other ones to false). This way you can simply put a condition that ckeck the variable [selected] of an object, and this will pick the object that is selected. So every action and sub-events where the object is called, will only apply to the object that is selected. This include fetching information about its position, name, other object variables, etc…

They are scene, looking at the left of the name it will be a globe for global, event sheet icon for local, and scene icon for scene, and we know it is not an object variable since it would say “Change the variable __ of __…”

I was referring to the variables in red. They are being used as values. They can be anything. A variable that’s a structure or an object variable.

From context, I’m assuming a variable because it’s currentCreature. If that’s the case then maybe they’re not defined.

Oh ok I’m stupid lol

Nah. You’re OK. Just trying to help.