Creating Probabilities

TheHooglerTheHoogler Member Posts: 102
edited November -1 in Working with GS (Mac)
Hello!

I'm planning a couple of games where probabilities might come into play. Say you're making Oregon Trail, and you want at any given time for there to be a 5% chance for game.attribute "dysentery" to be true, otherwise false (on a timer or whatnot). Or as another example, you're making an RPG, and you want to create a "chance to miss" with every enemy attack. Would I have to create a game attribute using random(0,100), then change dysentery to true if game attribute < 5?

I've tried looking in the forums for this, and haven't found anything. I'm not really sure what the most efficient way of doing this would be. Thanks!

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    I'd probably do it the way you described it with the random number and getting dysentery if under five.

    Christ, that just sounded wrong...

    QS :D
  • quantumsheepquantumsheep Member Posts: 8,188
    I'd probably do it the way you described it with the random number and getting dysentery if under five.

    Christ, that just sounded wrong...

    QS :D
  • quantumsheepquantumsheep Member Posts: 8,188
    I'd probably do it the way you described it with the random number and getting dysentery if under five.

    Christ, that just sounded wrong...

    QS :D
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    quantumsheep said:
    I'd probably do it the way you described it with the random number and getting dysentery if under five.

    Christ, that just sounded wrong...

    QS :D

    I concur. LOL to ALL of that.
  • TheHooglerTheHoogler Member Posts: 102
    Well, they never do specify whether or not your companions are children. They never help with the fording or hunting anyways... so good riddance. As for the actual post, thanks for the confirmation!
Sign In or Register to comment.