This script will create a counter that increases when a player collects a memory. The counter will run 'level win' when it reaches a count of 3. The counter will restart when the game is reloaded.

  • Add the Counter
    • add counter name:memCount
  • Increase the Counter when you collect memory
    • collision add begin beta memory counter increase memcount 1
  • Win the game when you collect three memory
    • callback add atCount memcount 3 level win
  • Reset the Counter whenever the game starts
    • callback add onLoad set memcount count:0