⇤ ← Revision 1 as of 2012-12-04 21:07:10
Size: 1376
Comment:
|
Size: 1380
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
Allows you to instruct the bot to say outloud a given message using the operating system's built-in text-to-speech reader. An optional language value can be given to use that language by the TTS reader. In the 2nd example above, the bot would say "Tu ciudad esta siendo atacada." ("Your city is under attack") with a Spanish accent and voice as determined by the language value "es". | Allows you to instruct the bot to say outloud a given message using the operating system's built-in text-to-speech reader. An optional language value can be given to use that language by the TTS reader. In the 2nd example above, the bot would say "Tu ciudad esta siendo atacada." ("Your city is under attack") with a Spanish accent and voice as determined by the language value "es". |
Usage: |
say message |
Example: |
say Your city is under attack. |
Allows you to instruct the bot to say outloud a given message using the operating system's built-in text-to-speech reader.
An optional language value can be given to use that language by the TTS reader. In the 2nd example above, the bot would say "Tu ciudad esta siendo atacada." ("Your city is under attack") with a Spanish accent and voice as determined by the language value "es".
The say command can be used, like other commands, with variables via the execute command. An example of a useful line for a defensive script would be:
execute "say " + city.name + " has " + city.NumberOfRealAttacks + " incoming attacks"