Seuntjies DiceBot

DiceBot => Programmer Mode => Topic started by: dleboy on June 02, 2019, 06:12:14 am

Title: how to resetseed after certain roll
Post by: dleboy on June 02, 2019, 06:12:14 am
can anyone tell how to write the code about resetseed after certain roll, such as reset seed after 5 roll
Title: Re: how to resetseed after certain roll
Post by: Becky on June 18, 2019, 09:15:14 am
function dobet()
If bets%5 >= 0 then
resetseed()
end
Title: Re: how to resetseed after certain roll
Post by: Seuntjie on June 18, 2019, 10:13:35 am
function dobet()
If bets%5 >= 0 then
resetseed()
end

This will reset seed after every 5 bets, not when the roll is 5.

Use the Roll property of the lastBet object.

Code: [Select]
if lastBet.Roll==5 then
resetseed()
end