Search found 2 matches

by Nefisto
Mon Aug 19, 2024 3:53 pm
Forum: Dialogue System for Unity
Topic: How to set some dialog options as not-interactable based on some outside condition?
Replies: 1
Views: 433

How to set some dialog options as not-interactable based on some outside condition?

Something like a quest that requires killing 10 rats and if you speak with NPC while not have killed them all you see an not interactable option "Kill rats (2/10)". If possible lemme know how would I make this condition to get some outside value, by outside I mean my own inventory instead ...
by Nefisto
Tue Aug 13, 2024 12:49 pm
Forum: Dialogue System for Unity
Topic: How to properly yield for an conversation to finish?
Replies: 1
Views: 461

How to properly yield for an conversation to finish?

Code: Select all

[SerializeField]
private DialogueSystemTrigger dialogTrigger;

protected override IEnumerator MyRoutine ()
{    
    dialogTrigger.OnUse();

    // HERE
    yield return dialogTrigger.WaitForFinish(); //  <<- How to achieve a behavior like this??
    
    // Dialog closed here
}