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…