DreamDancer

ambiance sound generator section

Jul 10th, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. * // compiling chunk: ambiance
  2. * // this is the ambiance sound generator section
  3. (0:0) When everything is starting up,
  4. (5:390) starting with entry 0, set 16 entries in array %sound[16] to 99.
  5. (5:311) use variable %sound as an array, and set element 1 of it to 5.
  6. (5:311) use variable %sound as an array, and set element 2 of it to 8.
  7. (5:311) use variable %sound as an array, and set element 3 of it to 9.
  8. (5:311) use variable %sound as an array, and set element 4 of it to 10.
  9. (5:311) use variable %sound as an array, and set element 5 of it to 11.
  10. (5:311) use variable %sound as an array, and set element 6 of it to 12.
  11. (5:311) use variable %sound as an array, and set element 7 of it to 15.
  12. (5:311) use variable %sound as an array, and set element 8 of it to 16.
  13. (5:311) use variable %sound as an array, and set element 9 of it to 17.
  14. (5:311) use variable %sound as an array, and set element 10 of it to 18.
  15. (5:311) use variable %sound as an array, and set element 11 of it to 19.
  16. (5:311) use variable %sound as an array, and set element 12 of it to 67.
  17. (5:311) use variable %sound as an array, and set element 13 of it to 68.
  18. (5:311) use variable %sound as an array, and set element 14 of it to 69.
  19. (5:311) use variable %sound as an array, and set element 15 of it to 70.
  20. (5:311) use variable %sound as an array, and set element 16 of it to 71.
  21.  
  22. (0:100) When 30 seconds have passed, offset by 0,
  23. (1:1000) and a random dice roll comes up (50 percent of the time),
  24. (5:312) set variable %getsound to the total of rolling 1 dice with 16 sides plus 0.
  25. (5:310) use variable %sound as an array, and copy element %getsound of it into variable %playsound.
  26. (3:3) within the diamond (130,73)-(130,121),
  27. (5:9) play sound %playsound to any furre present.
  28. (3:3) within the diamond (104,0)-(48,153),
  29. (5:9) play sound %playsound to any furre present.
  30. (3:3) within the diamond (126,107)-(92,198),
  31. (5:9) play sound %playsound to any furre present.
  32. (3:3) within the diamond (78,3)-(10,92),
  33. (5:9) play sound %playsound to any furre present.
  34. (3:3) within the diamond (38,17)-(20,58),
  35. (5:9) play sound %playsound to any furre present.
  36. (3:3) within the diamond (104,98)-(42,189),
  37. (5:9) play sound %playsound to any furre present.
  38. (3:3) within the diamond (30,137)-(20,180),
  39. (5:9) play sound %playsound to any furre present.
Advertisement
Add Comment
Please, Sign In to add comment