Hello Guest

how to resetseed after certain roll

  • 2 Replies
  • 395 Views
*

dleboy

  • *
  • 1
  • +0/-0
    • View Profile
how to resetseed after certain roll
« 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

*

Becky

  • **
  • 13
  • +1/-0
    • View Profile
Re: how to resetseed after certain roll
« Reply #1 on: June 18, 2019, 09:15:14 am »
function dobet()
If bets%5 >= 0 then
resetseed()
end

*

Seuntjie

  • *****
  • 366
  • +12/-2
    • View Profile
Re: how to resetseed after certain roll
« Reply #2 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