jkp1187
Unindicted Co-Conspirator
Hello!
Another question for you wonderful people: how can I generate a random number such that, depending on the results, one and only one of several possible additional events will trigger?
If I can go back to my paper & pencil roots, I just want to set up a simple single-iteration D100 roll, then if the result is 1-33, trigger event A, if the result is 33-67, trigger event B, if the roll is 68-100, take no action.
I assume from poking around that getSorenRandNum is going to factor into the answer. I didn't see any examples in the existing code for what I wanted to do, though.... (I tried! I really looked this time!)
In the events XML files, there is a chance to trigger additional events...but it doesn't appear that you can set those up in an either/or fashion. You can set up multiple possible additional events, but the % chance for triggering is rolled individually, so theoretically, ALL of those additional events could be triggered simultaneously.
Thanks.
Another question for you wonderful people: how can I generate a random number such that, depending on the results, one and only one of several possible additional events will trigger?
If I can go back to my paper & pencil roots, I just want to set up a simple single-iteration D100 roll, then if the result is 1-33, trigger event A, if the result is 33-67, trigger event B, if the roll is 68-100, take no action.
I assume from poking around that getSorenRandNum is going to factor into the answer. I didn't see any examples in the existing code for what I wanted to do, though.... (I tried! I really looked this time!)
In the events XML files, there is a chance to trigger additional events...but it doesn't appear that you can set those up in an either/or fashion. You can set up multiple possible additional events, but the % chance for triggering is rolled individually, so theoretically, ALL of those additional events could be triggered simultaneously.
Thanks.