LoafOrc / loaforcsSoundAPI

A soundtool made to give Soundpack creators ultimate control.
GNU General Public License v3.0
4 stars 1 forks source link

Needed Detailed Explanation on the Randomness Condition #10

Open Uncryptical opened 5 months ago

Uncryptical commented 5 months ago

It's not a particularly big issue, but i'm curious if there is another value type(s) to the Randomness condition.

For example, in the Replacer JSONs: I have multiple audio clips for the Old Bird's sound effects, and i wanted to include 3 of them.

I've tried using the deterministic value for the randomness (i don't know the other values) and i was wondering if there is another value type that allows for all 3 (or however many) Audio Clips to be played WITHOUT one of them being repeated before the others?

{
"condition": {
        "type": "config",
        "config": "EnabledSounds:Example"
    },
    "randomness": {
        "type": "determinstic"
    },
    "replacements": [
        {
            "matches": [
                "3DLradAudio2:LradBrainwashingSignal1"
            ],
            "sounds": [
                {
                    "sound": "Sounds/Sound1.ogg",
                    "weight": 50
                },
                {
                    "sound": "Sounds/Sound2.ogg",
                    "weight": 50
                },
                {
                    "sound": "Sounds/Sound3.ogg",
                    "weight": 50
                }
            ]
        }
    ]
}
LoafOrc commented 5 months ago

oh the randomness doesn't do anything anymore, it was purely for trying to sync sounds but it didn't really work. I do get what you're trying to do here and I'll add it as a feature in the next update (although that might be a bit, ive taken a bit of a break from this for now)