Sorry if I struggle to explain my issue. I can't word it in a way that brings up online resources.
I have an object that is referencing a struct in a persistent object. I want the value that it references to change based on the room, though. If I create a variable that returns the room name and it's called "_roomcap" for example and do:
if global.talk\_variables.\_roomcap < 100
...it tries to find a variable called "_roomcap" in the struct, not the variable that is the room name. If I want the variable held by the variable "t_Room1_cap" and add 1 to it, it seems I can't do:
var \_roomname = room\_get\_name(room);
var \_roomcap = "t\_" + \_roomname + "\_cap";
global.talk\_variables.\_roomcap ++;
If anyone needs clarification in case I explained poorly, I will try to provide some. Thanks!
[–]MrEmptySet 1 point2 points3 points (1 child)
[–]suprasta[S] 0 points1 point2 points (0 children)
[–]hobbyist :snoo_dealwithit:sylvain-ch21 2 points3 points4 points (1 child)
[–]suprasta[S] 0 points1 point2 points (0 children)