Hello Guest

# Example lua scripts with prerolls

• 3 Replies
• 265 Views

#### nightingale

• 12
• +0/-0
##### Example lua scripts with prerolls
« on: March 03, 2021, 09:36:38 am »
What is the point of some of the lua script's prerolls? For example the "Preroll Martingale" script? Why is there a negative sign for the preroll variable?

#### Seuntjie

• 581
• +15/-3
##### Re: Example lua scripts with prerolls
« Reply #1 on: March 03, 2021, 01:32:09 pm »
Pre rolling is the act of making insignificant bets with no change in bet until a specific series of bets pass (in this case 5 losses in a row) before you increase your bet significantly and/or start with the rest of your betting strategy (martingale).

currenstreak is positive when it's a winning streak and negative when it's a losing streak. Thus if you check whether currentstreak == 5, you're checking whether you win 5 bets in a row, vs checking currentstreak == - 5 is checking for 5 losses in a row.

Take a look at the tutorials on https://forum.seuntjie.com/index.php?topic=2.0 for a description of all variables and functions made available by DiceBot

#### nightingale

• 12
• +0/-0
##### Re: Example lua scripts with prerolls
« Reply #2 on: March 03, 2021, 10:23:06 pm »
Thanks for the response, and indeed I will study the tutorials!

Edit: the 1-1 security question keeps saying by answer of 0 is wrong. My only work around was to keep refreshing the page until the flawed challenge questions were gone.

#### COBIDEK282

• 8
• +0/-0
##### Re: Example lua scripts with prerolls
« Reply #3 on: March 09, 2021, 05:19:31 am »