Okay iv'e spent the past several hours trying to get this to work, following every tutorial iv'e found on the web step by step and not sure where i'm getting it wrong.
I want to have a button that when clicked it generates a random number between 1-10.
So these are the steps iv'e taken exactly from scratch....
(1) create a textbox
(2) click REFERENCE and create a new VARIABLE
(3) name the variable randnum (set it as a number, with a value of 0)
(4) create a trigger for the button
var randomnumber = Math.floor((Math.random()*10)+1);
var player = GetPlayer();
iv'e attached the storyline file