Hey guys,
Im currently working on a system where im trying to make all interaction as global(common) as possible. For example: when you talk to a tree; the event that is that tree will give an ID, and will call a common event that ive used for storing different texts and options - and through that ID will find the text and options that belong to that tree event.
Basically it looks like this when the player talks to an interactable event:
The event will then direct whatever needs to happen to the common event ''database'':
My question is:
Will this take up alot of performance when it grows larger? I plan on having 100s of different interactable objects, and thus plan on making that "database" common event extremely large. And id like to know ahead of time if im handling this right. And if someone has any advice or tips to deal with this better, id love to hear that aswell!
Im currently working on a system where im trying to make all interaction as global(common) as possible. For example: when you talk to a tree; the event that is that tree will give an ID, and will call a common event that ive used for storing different texts and options - and through that ID will find the text and options that belong to that tree event.
Basically it looks like this when the player talks to an interactable event:
Code:
◆Control Variables:#0073 interaction ID = 4
◆Common Event:#0017
The event will then direct whatever needs to happen to the common event ''database'':
Code:
◆If:interaction ID = 1
◆Text:None, Window, Bottom
: :im a chair
◆
:Else
◆If:interaction ID = 2
◆Text:None, Window, Bottom
: :im a clock
◆
:Else
◆If:interaction ID = 3
◆Text:None, Window, Bottom
: :im a bush
◆
:Else
◆If:interaction ID = 4
◆Text:None, Window, Bottom
: :hi im a tree
◆
:Else
◆
:End
◆
:End
◆
:End
◆
:End
My question is:
Will this take up alot of performance when it grows larger? I plan on having 100s of different interactable objects, and thus plan on making that "database" common event extremely large. And id like to know ahead of time if im handling this right. And if someone has any advice or tips to deal with this better, id love to hear that aswell!