Skip to content

get and set variable not working #85

Description

@GoldExperience

Describe the bug

get and set variable not working, cannot set and get variable by code

To Reproduce

	print(name, " test val : ",_ink_player.get_variable("test_val"))
	_ink_player.set_variable("test_val","test success")

result
DialogueManager test val : null

image
it seems also related to story load
so here is the code of it.

func _load_InkPlayer():
	if _ink_player.is_connected("loaded",_story_loaded)==false:
		_ink_player.connect("loaded",_story_loaded)
	_ink_player.create_story()

Expected behavior

It should can set and get ink variable by code

Ink files

->hello
VAR pill_type="None"
VAR test_val="test fail"

===hello
effect:heart
test variable {test_val}

Environment:

  • OS: WIN11
  • Godot version: 4.3
  • Inklecate version: 0.14.1
  • inkgd version: 0.6.0

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions