Top Down Engine item best practices.
Posted: Sun Jun 04, 2023 3:38 pm
As the title suggests, I'm using Top Down Engine and Dialogue System to make my game.
I had just gotten the hang of TDE and it's inventory/item system when I introduced DS to handle dialogue.
I'm finding it very difficult to work out the correct or best way to communicate to BOTH assets that an item has been obtained.
For example: I have a special coin which is obtained. There is only one.
There is a Dialogue System quest entry named "Special Coin Obtained" (bool).
The Top Down Engine picks up the coin and adds an entity to the inventory which can be inspected which is something I really want to keep.
But how do I send a message to the dialogue database to say "Special Coin Obtained = true" from the Top Down Engine Item Picker/OnUse/Any script that deals with item gathering? The closest I thought I came was sending a message with events... but I had no idea what message to send, and to where
I apologise if this is very easy but I'm just having diffuiculty reconciling the two systems. I love them both and feel like I just have to work out a couple of these kinks and I'll be up and running.
I had just gotten the hang of TDE and it's inventory/item system when I introduced DS to handle dialogue.
I'm finding it very difficult to work out the correct or best way to communicate to BOTH assets that an item has been obtained.
For example: I have a special coin which is obtained. There is only one.
There is a Dialogue System quest entry named "Special Coin Obtained" (bool).
The Top Down Engine picks up the coin and adds an entity to the inventory which can be inspected which is something I really want to keep.
But how do I send a message to the dialogue database to say "Special Coin Obtained = true" from the Top Down Engine Item Picker/OnUse/Any script that deals with item gathering? The closest I thought I came was sending a message with events... but I had no idea what message to send, and to where
I apologise if this is very easy but I'm just having diffuiculty reconciling the two systems. I love them both and feel like I just have to work out a couple of these kinks and I'll be up and running.