How to check if a timeline exists? #2578
-
Hi! So, I am the main programmer of a game, and my writer is working separately from me. Our dialogue tree is relatively complex, so the way we set everything up is that I handle the logic for the NPC´s dialogues through a decision tree, call the timelines by their names, such as Dialogic.start("welcome_adventurer"), and handle all variables in code. The problem is that, since I don't really know which timelines my writer has already implemented, I would like to check in code if they exist in the file system before calling them with a command such as Dialogic.exists("welcome_adventurer"). Is there such an option with Dialogic? I have tried to find it with no luck, but I can imagine that people working in teams could find such a feature pretty handy. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I agree a proper easy to use exists method would be useful. Feel free to create an issue for it. Right now there are two ways either |
Beta Was this translation helpful? Give feedback.
I agree a proper easy to use exists method would be useful. Feel free to create an issue for it.
Right now there are two ways either
DialogicResourceUtil.get_timeline_resource("identifier") != null
ornot DialogicResourceUtil.is_identifier_unused("dtl", "identifier")