• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages

    Revision 1 as of 2012-12-04 21:07:10

    Clear message

    Usage:

    say message
    say [language#] message

    Example:

    say Your city is under attack.
    say es# Tu ciudad esta siendo atacada.

    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"


    ScriptControlStructures