Randomize outcomes (Gamebook)?

I want to randomize outcomes in Gamebook. For example, you roll a dice (1/6) or rock paper scissors (1/3). Please help!


there'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


Game book does have RandomChance...


The 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.


Thanks guys!


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums