Hello! I have a bunch of events that I want to modify the chance percentage on. These each only have one track containing a single instrument. It seems like selecting the correct track and perhaps even the instrument is feasible through script; however, I haven’t found anything that can modify trigger conditions.
Is this something that is possible with fmod scripting? Thanks!
Yes, this is entirely possible. To modify the trigger probability of an instrument, based on the structure you’ve described, you’d want to do something like the following:
// assuming you've already got an event assigned to var "event"
// if there's only one non-master track, and one instrument on track
// we can assume both are index 0
var instrument = event.groupTracks[0].modules[0];
instrument.triggerProbabilityEnabled = true;
instrument.triggerProbability = 33;