Creating an entity at runtime? #232
Unanswered
KieranCarden
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there currently a way to create, and save, an entity at runtime? I've tried
Pandora.create_entity()with the required arguments, and also trying withPandoraEntity.new()and setting values like the category (set_category) that way, but nothing seems to stick.When I print the output of the category I'm adding entities to, they're listed, but this seems temporary as they don't get saved in the data.pandora file and don't show up in the editor, and restarting the project effectively wipes them. I'm using
Pandora.save_data()after supposedly creating them, but that doesn't seem to really do anything either.Is there something or some step I'm missing to make these save in the data file and/or show up in the editor?
Edit: For a bit of context, I'm creating a (personal) interactive twitch chat application where users create a player through redemptions, and I'd like to use Pandora for this as it can take care of a large amount of the RPG aspects I have. Just need to get player entities saved in their respective category upon creation.
Beta Was this translation helpful? Give feedback.
All reactions