Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ** Music Thingy
- ** Copyright (C) 2015 Chronos Ouroboros
- **
- ** This program is free software: you can redistribute it and/or modify
- ** it under the terms of the GNU General Public License as published by
- ** the Free Software Foundation, either version 3 of the License, or
- ** (at your option) any later version.
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ** GNU General Public License for more details.
- **
- ** You should have received a copy of the GNU General Public License
- ** along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- int targetSlowMusic[5] = {
- "TARGET1",
- "TARGET2",
- "TARGET3",
- "TARGET4",
- "TARGET5"
- };
- int targetMedMusic[2] = {
- "TARGMED1",
- "TARGMED2"
- };
- int targetFastMusic[4] = {
- "TARGFAS1",
- "TARGFAS2",
- "TARGFAS3",
- "TARGFAS4"
- };
- script 55 ENTER {
- for (int i = 0; i < 8; i++) {
- if (checkActorProperty (300 + i, APROP_TargetTID, activatorTID ())) {
- if (checkActorInventory(300, "IsChasingFast") > 0) {
- printBold (s:"Fast Music Playback");
- localSetMusic (targetFastMusic [random (0, 3)]);
- } else if (checkActorInventory(300, "IsChasingMed") > 0) {
- printBold (s:"Med Music Playback");
- localSetMusic (targetMedMusic [random (0, 1)]);
- } else if (checkActorInventory(300, "IsChasingSlow") > 0) {
- printBold (s:"Slow Music Playback");
- localSetMusic (targetSlowMusic [random (0, 4)]);
- }
- } else {
- printBold (s:"No Music Playback");
- localSetMusic ("LUL");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement