Results 1 to 7 of 7

Thread: sound for scriptcheck?

  1. #1

    Default sound for scriptcheck?

    Would anyone know how to add a sound to scriptcheck so that when it does it's thing it also plays a sound on your computer? I love scriptcheck but a sound might be an extra layer of protection and allow you to move around the room you are playing in instead of having to be glued to your screen. Four days straight of trying to get my last forging-crafting rank is killing me and I find myself getting distracted and not watching the screen. Thx

    Code...

    =begin

    This script echo's every line to the familiar window, unless it
    has been seen more than five times before.

    because script checks can't be seen without a script...

    tillmen@lichproject.org

    =end

    hide_me
    CharSettings['count'] ||= Hash.new

    if $frontend == 'stormfront'
    fam_window_begin = "<pushStream id=\"familiar\" ifClosedStyle=\"watching\"/>"
    fam_window_end = "<popStream/>\r\n"
    else
    fam_window_begin = "\034GSe\r\n"
    fam_window_end = "\034GSf\r\n"
    end

    while line = get

    # ignore chats
    next if line =~ /^\[.*?\]\-[A-z]+\:|^\[server\]\: "/

    # ignore numbers when considering if a line has been seen before
    mod_line = line.gsub(/[0-9\s]+/, '')

    # increment the number of times the line has been seen
    CharSettings['count'][mod_line] = CharSettings['count'][mod_line].to_i + 1

    # echo the line to the familiar window, unless it has been seen more than 5 times
    unless CharSettings['count'][mod_line] > 5
    puts("#{fam_window_begin}#{line}\r\n#{fam_window_e nd}")
    end

    end

  2. #2

    Default

    I imagine you could highlight each vowel in Stormfront and have it play a sound when the vowel is seen then disable sounds for the story window and enable sounds for the familiar window.

    I think that would work. Not sure.

    Just make sure you set up the highlight in Stormfront to match partial words and ignore case for each vowel.
    Last edited by Tgo01; 03-25-2014 at 04:27 PM.

  3. #3

    Default

    I use the wizard fe and I don't quite follow but you have me thinking now. Maybe I could have a code word put into my text strings and add a sound to it via the wizard fe. Then somehow have the lich script output that code word along with the new line that it sees when it does it's thing in this part of the code...

    # echo the line to the familiar window, unless it has been seen more than 5 times
    unless CharSettings['count'][mod_line] > 5
    puts("#{fam_window_begin}#{line}\r\n#{fam_window_e nd}")
    end

    Thx!

  4. #4

    Default

    I was just thinking since it only sends lines to the familiar window that haven't been seen at least five times then you could highlight each vowel and if it ever sees a vowel (which like...should be every word sent there) then it would fire off a sound.

    Not sure how highlights work in wizard though so it might not work.

    But if you've found a way to do it anyways even more groovy
    Last edited by Tgo01; 03-25-2014 at 04:33 PM.

  5. #5

    Default

    Do people actually get script checked for forging, I have had characters run for days without interruption and never been checked. I always thought that the GM's, being so few and sort of task saturated as is, did not bother too much with scripters unless they were being a nuisance.

  6. #6
    Join Date
    Sep 2003
    Location
    Philadelphia
    Posts
    6,513

    Default

    Quote Originally Posted by kutter View Post
    Do people actually get script checked for forging, I have had characters run for days without interruption and never been checked. I always thought that the GM's, being so few and sort of task saturated as is, did not bother too much with scripters unless they were being a nuisance.
    Yes, I was asked if I needed some water and a towel once.

  7. #7

    Default

    It works! In the wizard fe I went into configuration...text strings...strings and added a string ("grrrr"). I tried to add a sound to the string but there weren't any in the sounds drop down list so I just did a search on my C drive for .wav files and found "drumroll.wav" which was a pretty good drum roll sound. I copied the .wav file and pasted it in the c:/program files/arcsoft/showbiz 2/gemstone/sounds directory and it showed up in the sounds drop down list so that I could attach the sound to my "grrrr" string. Then I just added a line to the lich script...

    # echo the line to the familiar window, unless it has been seen more than 5 times
    unless CharSettings['count'][mod_line] > 5
    puts("#{fam_window_begin}#{line}\r\n#{fam_window_e nd}")
    put 'grrrr'
    end

    So when the lich script sees a new line of text it puts the line out to the familiar window and also puts "grrrr" to my game window which sets off the drumroll sound via the wizard fe. I'm sure there's an easier way to just code the sound directly in the lich script but this seems to work well for now.

Similar Threads

  1. Sound Familiar?
    By Shaps in forum Politics
    Replies: 222
    Last Post: 10-08-2022, 08:28 AM
  2. Sound card help
    By Androidpk in forum Off-Topic
    Replies: 10
    Last Post: 12-19-2011, 09:09 AM
  3. This is probably going to sound stupid...
    By Jubilee8247 in forum Wizard
    Replies: 5
    Last Post: 04-28-2010, 07:14 PM
  4. Two sound cards
    By orest in forum Off-Topic
    Replies: 1
    Last Post: 08-25-2007, 05:07 AM
  5. Sound issue
    By Anebriated in forum Off-Topic
    Replies: 2
    Last Post: 08-06-2007, 12:33 AM

Posting Permissions

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