Hi! I have created a data script container which contains static data for a custom quest system.
This data script is saved inside a player flag to keep track of which quests the player has accepted.
Now, I want to add a dynamic key and value to the data script before adding it to the player flag.
However, when I try to add the dynamic data, I can't use the data script anymore, I can't get any values from it.
Is there a way to add a dynamic value, or are data script containers static, or am I doing it wrong?
quest_test:
type: data
name: Test Quest 1
description: hello
steps_list:
1: Talk to the NPC
2: Bla bla
3: Bla bla bla
rewards:
apple: 4
quest_save:
type: world
events:
on player kills entity:
- define questWithStep <script[quest_test]>.currentstep:1
- flag player quests:->:questWithStep