I wish i could offer some sound advice but I am curious what you ended up sorting up regarding your inquiry.
-mobile
Would you please be so kind and help me instead?

I want to make a function in dicebot that goes under these conditions:
1) basebet = 4 satoshi, multiplier = 50x, betting low at the start (<1.98)
2) every TWO wins (so if total wins amount is even) betamount = previous betamount + 2 satoshi, betting switches to other side (low/high)
3) if balance reaches 0.02 btc, it stops betting.
I made sth like that:
multiplier=50 <---- Should this be chance?
nextbet = 0.00000004
bethigh=false
wincount = 0 <------ Counter for the wins.
function dobet()
if win then
wincount += 1 -- Bump the wincount(er)
if (wincount == 2) then
nextbet = previousbet + 0.00000002 <---- Use the previousbet instead of nextbet
bethigh = !bethigh <---- This just switches bethigh
end
else -- lose
wincount = 0
end
if balance = 0.02 then
stop()
end
end
but it obviously has many errors and I can't seem to make it right. Any help would be really appreciated!
See the changes I made above. Note: should the multiplier actually be the chance? And what are you doing if you lose?