0 votes

For context: I'm trying to code location pointers for entrances/exits, as well as dialogue information. Right now, I could probably hard-code it, but I foresee the project growing, so I'd rather store all my information in tables and call it right from the code. It would also be much easier to edit.

The implementation I have in mind is converting a .csv to a .json through code, with the .json properly formatted and ready to be called by the script. The .csv would also be formatted similarly to the tables in this article: https://www.jertype.com/game-localization/

The thing is, I'm not quite sure how I should assign a unique ID (one that never changes!) for each object. For now, my placeholder is assigning a static "id" variable in the script, but that's not going to be possible when multiple nodes use the same script.

Could anyone point me in the right direction? Thanks.

Godot version 3.4
in Engine by (12 points)

i assume you are talking about static nodes in the scene. what about the "NodePath"?

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.