Is it better to use BoxColliders or Custom Scripts with Dialogue System
Posted: Sun Apr 16, 2023 9:53 pm
Hey,
So I've been playing around with the Dialogue System, and I understand that the Triggers provided such as (onTriggerEnter, OnUse etc.) make triggering the dialogue easy and intuitive.
I was wondering if it was beneficial to write my own Custom Collider, for example for my game, instead of using BoxCollider2d I have my own logic in place that finds the nearest gameObj The reason for this is because I found in previous projects BoxColliders can be pretty limiting and I wanted to find a new solution.
In the script I would play the bark or conversation, by calling the StartConversation() or BarkString() function
Doing these simple operations seem easy enough. Looking forward though, I realized I might need to account for multiple variables such as LuaConditions, QuestConditions etc.
Sorry for the long explanation, I guess my questions are:
1. )Is there an easy way to check if conditions are passed or failed that I can reference in a script?
2.)Is it just better to use a BoxCollider since it seems there's a lot of dependencies in the Dialogue System that requires the component?
Cheers
So I've been playing around with the Dialogue System, and I understand that the Triggers provided such as (onTriggerEnter, OnUse etc.) make triggering the dialogue easy and intuitive.
I was wondering if it was beneficial to write my own Custom Collider, for example for my game, instead of using BoxCollider2d I have my own logic in place that finds the nearest gameObj The reason for this is because I found in previous projects BoxColliders can be pretty limiting and I wanted to find a new solution.
In the script I would play the bark or conversation, by calling the StartConversation() or BarkString() function
Doing these simple operations seem easy enough. Looking forward though, I realized I might need to account for multiple variables such as LuaConditions, QuestConditions etc.
Sorry for the long explanation, I guess my questions are:
1. )Is there an easy way to check if conditions are passed or failed that I can reference in a script?
2.)Is it just better to use a BoxCollider since it seems there's a lot of dependencies in the Dialogue System that requires the component?
Cheers