I have been mucking about with scripts lately, just testing out various function calls in the game. The results were...enlightening.
However, I have ran into a little problem, and I hope it's not a old problem...if it's a known issue, I apologize in advance!
I couldn't get is_critical to work, because roll_vs_skill always seem to return only a 1 (failure) or 2 (success). It has never returned for me a 0 (critical failure) or a 3 (critical success). I've ran well over 500 trials on this, and even tried boosting the skill tested to 300, to no avail.
The funny thing is, a critical roll must have occurred at some point, because when I "properly" played the game, I remember optimizing the power grid in Broken Hills, which requires a critical success roll in the science skill.
So, just wondering...any of you ran into the same problems that I have? Anyone ever got is_critical to return true after currying (passing) the results of a roll_vs_skill call?
I have this sneaking suspicion that it may be O/S related...the time I got the critical success result, I was on a Win98 SE platform, but now I'm on a WinXP, and I know that the pseudo-random number generator works...well, let's just say that they're different. (Don't want to get into the nitty-gritty details of the MM algorithm,
) If possible, could someone try stress testing roll_vs_skill on a Win9x environment, and someone else try again on WinXP?
Anyway, any comments or suggestions are welcomed. Thanks for the help.
-- The Haen.

I couldn't get is_critical to work, because roll_vs_skill always seem to return only a 1 (failure) or 2 (success). It has never returned for me a 0 (critical failure) or a 3 (critical success). I've ran well over 500 trials on this, and even tried boosting the skill tested to 300, to no avail.
The funny thing is, a critical roll must have occurred at some point, because when I "properly" played the game, I remember optimizing the power grid in Broken Hills, which requires a critical success roll in the science skill.
So, just wondering...any of you ran into the same problems that I have? Anyone ever got is_critical to return true after currying (passing) the results of a roll_vs_skill call?
I have this sneaking suspicion that it may be O/S related...the time I got the critical success result, I was on a Win98 SE platform, but now I'm on a WinXP, and I know that the pseudo-random number generator works...well, let's just say that they're different. (Don't want to get into the nitty-gritty details of the MM algorithm,

Anyway, any comments or suggestions are welcomed. Thanks for the help.
-- The Haen.