how to make a script that would have done 1000 bets stopped and showed what was the biggest and smallest rolls
Use the lastBet object... the value of the last roll is stored in lastBet.roll
Then you just compare each roll to the biggest/smallest value and save it if it is bigger/smaller. So, something like this:
--CODE HAS NOT BEEN TESTED!!
... other vars...
biggest = 0
lowest = 100
numBets = 0
function doBet()
... stuff ...
if lastBet.roll < lowest then
lowest = lastBet.roll
end
if lastBet.roll > biggest then
biggest = lastBet.roll
end
... other stuff ...
numBets = numBets + 1
if numBets >= 1000 then
print("BIGGEST roll: " .. biggest)
print("smallest roll: " .. smallest)
stop()
end
end
Hi again! Thanks to your help, i've managed to achieve more or less what i wanted. However, do you know how i can set the parameters inside the script to only make the change of lossmult during a certain amount of bets, and then go back to the initial? Any help will be much apreciatted! thanks
ummmm put in another counter when you change the lossmult? set it to zero, increment it every roll... and when it gets to the number of bets you set, you can just set lossStartMult back to whatever you want...
--CODE HAS NOT BEEN TESTED!
if (!win) then
lossCount += 1
else
if lossCount >= 5 then
lossStartMult = 4
-- NEW COUNTER
lossStartMultCounter = 0
end
lossCount = 0
end
--Increment every roll
lossStartMultCounter += 1
-- if it gets to big, reset lossStartMult and reset the counter as well
if lossStartMultCounter >= xNumberOfBets then
lossStartMult = initialLossStartMultValue (or whatever else you feel like)
lossStartMultCounter = 0
end if