Hi i am trying to give a number of how many blocks are correct but this does not seem to work
the blocks at some of the location are the smae but the if statement never triggers, after some research i have found out that this is probably because the block saves the location what is not the same but i dont now how to fix it.
Thanks in advance.
Code:
set {_score1} to 0
loop 10 times:
loop 10 times:
set {_block1} to block at location -70+loop-value-1, 25, -182+loop-value-2 in world "speedpainters"
set {_block2} to block at location -28+loop-value-1, 26, -182+loop-value-2 in world "speedpainters"
if {_block1} = {_block2}:
broadcast "found 1"
add 1 to {_score1}
broadcast "%{_score1}%"
Thanks in advance.
Last edited: