What if we had a tool that was relatively easy to use, lightweight, and powerful that could give us all the information we need to make our maps more efficient and less cluttered?
I was considering the principle of minimum chance conditioning (hereafter MCC), which is essentially ordering the conditions in your trigger so that the one(s) least likely to be true is(are) checked first, thus preventing the trigger from checking the list further than it has to. This saves computing time and therefore reduces lag, especially in maps with thousands of triggers.
MCC is all well and good, but how does one determine which condition is least likely to be true? And how do you order them in order of least to most likely with complete accuracy? Based on intuition, it's not likely that a human would be able to arrive at the right order to fit each particular trigger. But if you had more information... What then?
Idea
Invent a trigger system to check the probability that any given condition is true. It's a lot simpler than I first thought, I'll admit, although its simplicity depends on circumstances. Also, changes in the map to trigger code would in some cases require a recheck, to ensure that the probabilities haven't been messed up. The ideal scenario would be to save one or two deathcounts for diagnostics once your map was finished, run the probability check(s), then reorder conditions according to the results.
Essentially, such a check could be more or less complex based on what you wanted for results. For some trigger systems, a simple trigger that adds one to a diagnostic death count whenever the condition you want to check is true will suffice. For other systems, you may want a more complex system that checks probabilities while some combinations of conditions are true, or at specific points in the game.
It's also possible that this is all useless bullshit given that the majority of maps will never need MCC. But I liked the idea of a system like that - maybe even one that could be imported into maps straight from a text file found on these forums, or something (SCMD ). Anywho, anyone got thoughts on this?
None.