Freebie: dice roll animation using javascript Jan 08, 2018 By Tania Vercoelen Download this free dice roll animation for any board game simulation you are creating. Roll_dice.story
Eric Chamberlin almost 3 years ago10/18/20 at 10:33 am (UTC) Hello, If I wanted to utilize the javascript, but I only wanted the random number to be 1-3, is this how I would modify? var randomnumber = Math.floor((Math.random(0)*1)+2); var player = GetPlayer();player.SetVar('randnum',randomnumber);console.log(randomnumber); Thank you, ERic
5 Replies
Its really Nice one.
Very cool. Thank you!
Thanks for sharing this, Tania!
thanks a lot!
Hello,
If I wanted to utilize the javascript, but I only wanted the random number to be 1-3, is this how I would modify?
var randomnumber = Math.floor((Math.random(0)*1)+2);
var player = GetPlayer();
player.SetVar('randnum',randomnumber);
console.log(randomnumber);
Thank you,
ERic
This discussion is closed. You can start a new discussion or contact Articulate Support.