Programming a counter

Sparkfun's Lilypad MP3 LilyPad MP3 - DEV-11013 - SparkFun Electronics

I know the link above is not to a true Arduino but I was hoping I could still get some help here. I want to tweak the programming so I can hook up the "Alarm" wire from PIR Motion Sensor (JST) - SEN-13285 - SparkFun Electronics to pin T1 of the lilypad. the lilypad would go through this process

  1. counter = 1
  2. t1 goes low plays track 1
  3. counter = counter + 1 = name of next track
  4. t1 goes low plays track 2
  5. counter = counter + 1 = name of next track
  6. t1 goes low plays track 3
  7. counter = counter + 1 = name of next track
  8. t1 goes low plays track 4
  9. counter = counter + 1 = name of next track
  10. t1 goes low plays track 5
  11. counter = counter (reset of counter to 1) = name of next track

Problem: after track 5 t1 is low, and the program waits for t1 to go low for playing track 1.

Let me better explain the entire project. The city where I work for Halloween has a Scarecrow building contest my employer is having an internal contest for a Scarecrow they will sponsor. 2 of my coworkers and I have decided to work together to make a "Crazy Cat Lady" Scarecrow my major part is to make some electronic device that will be motion activated and play some sound(s). I would really like to make it so with every motion activation it plays a different sound.

Have a look at the StateChangeDetection example, and increment your counter whenever t1 changes.

Get a MP3 player module for playing sounds.