I think I could really do with a block that only lets things do themselves if a certain number is divisible by another number.
Example:
When green flag clicked
set [variable] to (pick random 1 to 99)
if ( (variable) is divisible by (3) )
broadcast [Win]
else
stop all
stop script
Where the (3) is you can place whatever number you like. In this case, if variable becomes divisible by 3 leaving no decimal, you win, if not, the game stops.
Examples:
If it becomes 34, the game stops.
If it becomes 63, you win.
If it becomes 25, the game stops.
If it becomes 6, you win.
If it becomes 94, the game stops.
So, could this block be added in 2.0?
Offline
You can already do that using the ( ( ) mod ( ) ) block. It returns the remainder after dividing. For instance, 120 mod 10 is 0, because it divides evenly, while 120 mod 11 is 10, because 10 is remaining after dividing. Basically, if the two numbers divide evenly, it should return 0, which answers your suggestion.
Offline
What about like this:
When Green Flag Clicked
Pick a number from 1-99
If <number> mod [3]=0
Broadcast Win
else
Broadcast Lost
Offline