Randomize outcomes (Gamebook)?
digitalrascal
04 Jun 2017, 13:24I want to randomize outcomes in Gamebook. For example, you roll a dice (1/6) or rock paper scissors (1/3). Please help!
hegemonkhan
04 Jun 2017, 14:11there's four built-in Randomizing Functions (I think they are all available for the Game Book):
DiceRoll ("QUANTITY_OF_DICEdNUMBER_OF_SIDES_ON_DICE") http://docs.textadventures.co.uk/quest/functions/corelibrary/diceroll.html
GetRandomInt (MIN_VALUE, MAX_VALUE) http://docs.textadventures.co.uk/quest/functions/getrandomint.html
GetRandomDouble () http://docs.textadventures.co.uk/quest/functions/getrandomdouble.html
RandomChance (VALUE:ZERO_TO_ONE_HUNDRED) http://docs.textadventures.co.uk/quest/functions/corelibrary/randomchance.html

DarkLizerd
04 Jun 2017, 17:51Game book does have RandomChance...

DarkLizerd
04 Jun 2017, 17:59The UI also has random text...
You just list what you want it to say...
like:
You rolled a {random:1:2:3:4:5:6}.
but I don't think there is anything else you can do with it.
digitalrascal
08 Jun 2017, 19:38Thanks guys!