Difference between revisions of "SayToDone"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Quetzilla
m (not a function but still a godsend)
imported>Kkuhlmann
 
Line 6: Line 6:


=='''Example:'''==
=='''Example:'''==
(This is a script fragment, meant for illustration, it is not perfect):


  Begin GameMode
  Begin GameMode
     If WhichInfo == 1
     If DoTalk == 1 && Talking == 0
         JoeRef.Say SpeechTopic
         Say SpeechTopic
         Set WhichInfo to WhichInfo + 1
        ; set Talking variable to indicate that I'm talking
         Set Talking to 1
     EndIf
     EndIf
  End
  End
   
   
  Begin SayToDone SpeechTopic
  Begin SayToDone SpeechTopic
     If WhichInfo <= LastInfo
     ; clear Talking variable to indicate that I'm done talking
        JoeRef.Say SpeechTopic
    Set Talking to 0
        Set WhichInfo to WhichInfo + 1
    EndIf
  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

See Also[edit | edit source]

Say
SayTo
Three Way Conversation Tutorial