ludum-dare-23/scripts/action_if_dice/action_if_dice.gml

13 lines
251 B
Plaintext
Raw Normal View History

/// @description (Old DnD) - if dice evauation
/// @param v number of sides of the dice
function action_if_dice(argument0) {
var ret = true;
var v = argument0;
if (v > 1) {
ret = random( 1000*v ) <= 1000;
} // endif
return ret;
}