Hi,
I prefer to drive conversations using StandardDialogueUI inherited class, since I don't wanna use LUA variables and conditions.
I would just need to disable a branch/link upon an internal condition before stepping to next node
What's the best way to do this in C#?
(I've already managed to override ShowSubtitle(), ShowResponses() being able to disable certain responses)
thx
Use conditions through C#
Re: Use conditions through C#
Hi,
Assign a delegate to DialogueManager.isDialogueEntryValid. Example:
Assign a delegate to DialogueManager.isDialogueEntryValid. Example:
Code: Select all
DialogueManager.isDialogueEntryValid = CheckMyCSharpConditions;
...
bool CheckMyCSharpConditions(DialogueEntry entry)
{
// If entry's C# conditions are valid right now, return true. Otherwise return false.
}