How to access nodes and their metadata in dialogue? #1102
Unanswered
AngryApple5000
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.
-
I created a metadata string called "name" inside the player model. I am trying to get the Player node (accessed via unique name %), the name string and it's value in the dialogue to have different speech based on the value, like in the code below.
if %Player.get_meta("name") == "Nothing": TestPerson: Who are you?I am getting the error show_error_for_missing_state_value: Assertion failed: "Player" not found. States with directly referenceable properties/methods/signals include "{ "self": }", "Balloon", "Game". Autoloads need to be referenced by their name to use their properties.
Please help I am struggling to figure out how to do this and I am fairly new to Godot
Beta Was this translation helpful? Give feedback.
All reactions