Difference between revisions of "FurySession:Speak (Command)"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 39: Line 39:
  
 
{{Command-Stub}}
 
{{Command-Stub}}
 +
[[Category:Fury]]
 +
[[Category:Fury Session]]
 +
[[Category:Fury Session Commands]]

Revision as of 22:54, 25 May 2005

Syntax

Command Difficulty Rating
Speak
Usage ?
Level of Understanding ?
Computer Savvy ?
Logic ?

Speak [-sync] <text>

Description

Uses Text-to-Speech to speak some text. If -sync is given, the sound is synchronous.

Examples

function main()
{ 
  AddTrigger MyTrigger "@WHO@ kills YOU."
  AddTrigger YouHit "You hit @WHO@ for @DAMAGE@ point@s@ of damage"
   
  do
  {
    if !${QueuedCommands}
      WaitFrame
    else
      ExecuteQueued
  }
  while 1
  ; loops indefinitely (until the EndScript command is used)
}

function MyTrigger(string Line, string Who)
{
  Speak -sync You have been killed by ${Who}
}

; Note that this function only has 3 parameters. the "s" value from the trigger will be ignored!
function YouHit(string Line, string Who, int Damage)
{
  Speak You hit ${Who} for ${Damage} damage
}

See Also