Difference between revisions of "SayToDone"
Jump to navigation
Jump to search
imported>Quetzilla m (not a function but still a godsend) |
imported>Kkuhlmann |
||
Line 6: | Line 6: | ||
=='''Example:'''== | =='''Example:'''== | ||
Begin GameMode | Begin GameMode | ||
If | If DoTalk == 1 && Talking == 0 | ||
Say SpeechTopic | |||
Set | ; set Talking variable to indicate that I'm talking | ||
Set Talking to 1 | |||
EndIf | EndIf | ||
End | End | ||
Begin SayToDone SpeechTopic | Begin SayToDone SpeechTopic | ||
; clear Talking variable to indicate that I'm done talking | |||
Set Talking to 0 | |||
End | End | ||
Latest revision as of 10:16, 27 December 2008
Overview[edit | edit source]
The SayToDone block is triggered when a Say or SayTo is complete.
Syntax:[edit | edit source]
Begin SayToDone [topic_name] ; Where the topic_name is optional.
Example:[edit | edit source]
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