When using variables, you should have something like this added
if(variable <1)
go to page which indicates a lose of a game
else
continue game
This will allow game creators to force a lose a game if a player reaches 0 in a variable, for example Life, HP energy etc.