Advertisement
Chronos_Ouroboros

Untitled

Feb 7th, 2015
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. /*
  2. ** Music Thingy
  3. ** Copyright (C) 2015 Chronos Ouroboros
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18.  
  19. int targetSlowMusic[5] = {
  20. "TARGET1",
  21. "TARGET2",
  22. "TARGET3",
  23. "TARGET4",
  24. "TARGET5"
  25. };
  26. int targetMedMusic[2] = {
  27. "TARGMED1",
  28. "TARGMED2"
  29. };
  30. int targetFastMusic[4] = {
  31. "TARGFAS1",
  32. "TARGFAS2",
  33. "TARGFAS3",
  34. "TARGFAS4"
  35. };
  36.  
  37. script 55 ENTER {
  38. for (int i = 0; i < 8; i++) {
  39. if (checkActorProperty (300 + i, APROP_TargetTID, activatorTID ())) {
  40. if (checkActorInventory(300, "IsChasingFast") > 0) {
  41. printBold (s:"Fast Music Playback");
  42. localSetMusic (targetFastMusic [random (0, 3)]);
  43. } else if (checkActorInventory(300, "IsChasingMed") > 0) {
  44. printBold (s:"Med Music Playback");
  45. localSetMusic (targetMedMusic [random (0, 1)]);
  46. } else if (checkActorInventory(300, "IsChasingSlow") > 0) {
  47. printBold (s:"Slow Music Playback");
  48. localSetMusic (targetSlowMusic [random (0, 4)]);
  49. }
  50. } else {
  51. printBold (s:"No Music Playback");
  52. localSetMusic ("LUL");
  53. }
  54. }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement