Combat in ChoiceScript for newbie


I am brand new to ChoiceScript. I have written a fighting fantasy type game complete with fights that would have been done “in the old days” by rolling 2 d 6 etc!

Is combat and luck rolls something that would be coded? or just left to "roll two dice, if you win " etc?

Thanks for any advice

You can code it using the *rand command to randomly choose between a set of numbers.

(straight off the choiceofgames chociescript tutorial)

*rand: Set a variable to a random number. You set the minimum and maximum, we do the rest. For example, this would set the variable die_roll to a value from 1 to 6 inclusive:

*rand die_roll 1 6


Many thanks, will give it a go!