Question about same actor in multiple database
Posted: Mon Jan 08, 2024 10:03 am
Hi Tony,
My game is an visual story type, and it contains different worlds, timelines, currently, I'm using different dialogue database to handle each world and timeline, such as a group.
Actors that might be appeared in multiple world (database), by now I just copy the character settings from one database to another, nothing much, just the name, display name and a custom field that contains the GUID of the actor, and I will use the GUID as the primary key to query my own sqlite character database.
I understand when the game is played, dialogue system use a "masterDatabase" as a merge of all dialogue system database, and that makes me carious about my previous described approach, does that make sense to you? or is there a better logic way to keep a same actor in multiple dialogue database?
Also, another question is that "masterDatabase" only available in playmode, what is the best way to access something similar as "masterDatabase" from editor mode? Currently I just manually use a database array as a serialized field in my component script
My game is an visual story type, and it contains different worlds, timelines, currently, I'm using different dialogue database to handle each world and timeline, such as a group.
Actors that might be appeared in multiple world (database), by now I just copy the character settings from one database to another, nothing much, just the name, display name and a custom field that contains the GUID of the actor, and I will use the GUID as the primary key to query my own sqlite character database.
I understand when the game is played, dialogue system use a "masterDatabase" as a merge of all dialogue system database, and that makes me carious about my previous described approach, does that make sense to you? or is there a better logic way to keep a same actor in multiple dialogue database?
Also, another question is that "masterDatabase" only available in playmode, what is the best way to access something similar as "masterDatabase" from editor mode? Currently I just manually use a database array as a serialized field in my component script