Bird's-eye view of a PuzzleScript file

A puzzlescript file is divided into 8 sections:


Here are the possible formats of win conditions:

(Neko Puzzle - you win if there's no fruit left)
No Fruit

(Sokoban - you win if every target point has a crate on it)
All Target On Crate 

(You win if Love exists somewhere)
Some Love 

(You win if there's some gold in the chest)
Some Gold on Chest 

(you win if all gold has been taken from the chest)
No Gold on Chest

If you have multiple win conditions, they all have to be satisfied.

These should do for most games, but if you want more advanced control over winning and losing, then you can specify your own win rules using commands.