Difference between revisions of "SayToDone"
Jump to navigation
Jump to search
imported>JBurgess m (→'''Example:''') |
imported>Kkuhlmann |
||
(One intermediate revision by one other user not shown) | |||
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 | ||
Line 28: | Line 26: | ||
[[Category:Blocktypes]] | [[Category:Blocktypes]] | ||
[[Category:Godsend Functions]] |
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