Take random number away from score
Billyd1
Member Posts: 133
Hi, I want to be able to take a random number away from my score. But I want the number to be within my score.
So for example if my score is 200 I want it to randomly take a figure away from 200 but not go past 0.
So if my score is 200 I dont want the random number to take away 300 becasue that would put my score into -
So I done this, but it didnt work
I created two attributes called 'Create random number' and 'Score'. In the 'Create random number' actor I did.
Change Attribute > 'game.CreateRandomNumber' to random(game.Score,game.Score)
And
Change Attribute > 'game.Score' to 'game.Score'-'game.CreateRandomNumber'
But this didnt work.
So for example if my score is 200 I want it to randomly take a figure away from 200 but not go past 0.
So if my score is 200 I dont want the random number to take away 300 becasue that would put my score into -
So I done this, but it didnt work
I created two attributes called 'Create random number' and 'Score'. In the 'Create random number' actor I did.
Change Attribute > 'game.CreateRandomNumber' to random(game.Score,game.Score)
And
Change Attribute > 'game.Score' to 'game.Score'-'game.CreateRandomNumber'
But this didnt work.