SayToDone

From GECK
Jump to: navigation, search

Overview

The SayToDone block is triggered when a Say or SayTo is complete.

Syntax

Begin SayToDone [topic_name]   ; Where the topic_name is optional.

Example

Begin GameMode
   If DoTalk == 1 && Talking == 0
       Say SpeechTopic
       ; set Talking variable to indicate that I'm talking
       Set Talking to 1
   EndIf
End

Begin SayToDone SpeechTopic
   ; clear Talking variable to indicate that I'm done talking
   Set Talking to 0
End

See Also