Extra Database - Accessing Variables
Posted: Thu Mar 03, 2022 6:05 pm
Hey, I'm playing with the structure for my game and I was hoping to use ExtraDatabase component for certain things. Such as, controlling an entire minigame in dialogue.
This one complex conversation has lots of variables, but they only matter from the beginning to end of the 'conversation' (which encapsulates the full minigame loop). I was hoping that the variables would be usable when I merged in the minigame's database at runtime, but the values are all nil and cannot be set.
Is there any way I could get the variables to merge in? If not, is there a way to declare new variables at runtime or within a conversation (maybe by using a custom sequence command)? It would be very suboptimal to have all variables, including these very temporary ones, in the initial/main database, which I would like to only hold things that I would put in a player's save file. Is there something I'm missing that can do this, or is the backend lua system not quite set up for this use-case?
Thanks for any help!
This one complex conversation has lots of variables, but they only matter from the beginning to end of the 'conversation' (which encapsulates the full minigame loop). I was hoping that the variables would be usable when I merged in the minigame's database at runtime, but the values are all nil and cannot be set.
Is there any way I could get the variables to merge in? If not, is there a way to declare new variables at runtime or within a conversation (maybe by using a custom sequence command)? It would be very suboptimal to have all variables, including these very temporary ones, in the initial/main database, which I would like to only hold things that I would put in a player's save file. Is there something I'm missing that can do this, or is the backend lua system not quite set up for this use-case?
Thanks for any help!