Difference between revisions of "FurySession:Speak (Command)"
Jump to navigation
Jump to search
m (→Description) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Syntax == | == Syntax == | ||
{{CMD-DR|Speak|?|?|?|?}} | {{CMD-DR|Speak|?|?|?|?}} | ||
+ | Speak [-sync] <text> | ||
== Description == | == Description == | ||
+ | Uses Text-to-Speech to speak some text. If -sync is given, the sound is [[FurySession:Sound|synchronous]]. | ||
+ | |||
+ | (Use synchronuous for important messages that you don't want to miss. A non-synchronous speak command can be interrupted by any later speech). | ||
== Examples == | == 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 == | == See Also == | ||
Line 11: | Line 41: | ||
{{Command-Stub}} | {{Command-Stub}} | ||
+ | [[Category:Fury]] | ||
+ | [[Category:Fury Session]] | ||
+ | [[Category:Fury Session Commands]] |
Latest revision as of 14:02, 12 July 2005
Contents
Syntax
Speak [-sync] <text>
Description
Uses Text-to-Speech to speak some text. If -sync is given, the sound is synchronous.
(Use synchronuous for important messages that you don't want to miss. A non-synchronous speak command can be interrupted by any later speech).
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 }