Forum

Results 1 to 2 of 2
  1. #1
    Join Date
    December 2014
    Posts
    1

    Sound Script Syntax [help]

    Hello, I have configured text to speech on my client and when my friend joins my channel I want it to
    Code:
    say("${clientname} joined your channel")
    but when it is a normal user i want it to
    Code:
    play("${clientType}_switched_tocurrentchannel.wav")
    .

    So basicly when a friend joins, announce his name and when a normal user joins, just play the normal sound.

    I've tried this
    Code:
    if($clientType == "Friend") {say("${clientname} joined your channel")} else {play("$clientType}_connection_connected_currentchannel.wav")}
    but it only renders back as Client UI Warning Invalid sound script syntax.

  2. #2
    Join Date
    September 2012
    Posts
    6,078
    Conditional statements are not supported.
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Sound Script Documentation
    By cookta2012 in forum Suggestions and Feedback
    Replies: 0
    Last Post: September 4th, 2011, 06:54 PM
  2. Sound script error
    By TufGuy86 in forum Bug Reports [EN/DE]
    Replies: 1
    Last Post: April 6th, 2011, 04:10 PM
  3. Using Sound Script
    By 5150-5150 in forum General Questions
    Replies: 1
    Last Post: May 15th, 2010, 09:07 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •