hi! I'm throwing together a Fallen London-inspired Interactive Fiction piece for a project I'm doing, and I'm just hashing out the basic interface/mechanics of it. The main thing that's got me stuck is how certain events in the game unfold - the player has a set of qualities, or stats, that can go from 1-10 based on how they allocate their points. What I want to do is make options available to them that have different probabilities of occuring based on how high that quality is.
For example, a certain option might have a 60% chance of success given that a player's 'Spooky' quality was at 6, and if they manage to 'suceed' in the option, then they'll be directed to a particular page - if not, another.
I just have no idea how to do a probability-based event system, basically! help would be greatly appreciated.
(edit: hit publish too early, whoops)