*** This script assigns random X-flip and Y-flip flags to selected sprites.

// Parameter list begins
mov r98 1 // Randomize X-flip
mov r99 0 // Randomize Y-flip
// Parameter list ends
~~~ Default parameters:
~~~ mov r98 1 // Randomize X-flip
~~~ mov r99 0 // Randomize Y-flip
for each selected sprite r00
  if r98 != 0
    rnd r01
    if r01 < 0
      setspritecstator r00 4
    else
      setspritecstatnotand r00 4
    endif
  endif
  if r99 != 0
    rnd r01
    if r01 < 0
      setspritecstator r00 8
    else
      setspritecstatnotand r00 8
    endif
  endif
continue