How do I…
Hello everyone, I want to start a dialog from branch but instead of hardcode the name of the branch I want to use a global variable or better an object variable to select the branch.
What is the expected result
Originaly I wanted to have multiple copies of and object called “Marker” each with a String variable called “ID” with a name of a branch ex “Armario” and start a branch when I click over the object.
What is the actual result
The problem is that the code only works with hard coded names not with variables, I manage to make it work like this but i want to know if is possible to do as intended with only the marker object variable or onlyn a global variable instead of copyng lot of times the code to hardcode.
Actually the GdevelopAI give me the exact code i was originally trying (just use the variable as the name of the branchm but didnt work, so i dont know if is a compatibility issue, other AI suggest trying a conversion of some kind but i dont think is needed the variables are already strings so should work directly, I dont know if is a library limitation.
Related screenshots
Thank you for your help!
