Skip to main content

DialogFind

Callable

  • DialogFind(C: Character, KeyWord1: string, KeyWord2?: string, ReturnPrevious?: boolean): string

  • Searches in the dialog for a specific stage keyword and returns that dialog option if we find it


    Parameters

    • C: Character

      The character whose dialog optio*

    • KeyWord1: string

      The key word to search for

    • optionalKeyWord2: string

      An optionally given second key word. is only looked for, if specified and the first keyword was not found.

    • optionalReturnPrevious: boolean = true

      If specified, returns the previous dialog, if neither of the the two key words were found ns should be searched

    Returns string

    • The name of a dialog. That can either be the one with the keyword or the previous dialog. An empty string is returned, if neither keyword was found and no previous dialog was given.