Yeah, this is the final version that worked. If you want to add more you can, but you have to balance the nesting (BEGIN & END)'s - for example, the following didn't work until I got the (BEGIN & END)'s all in the right place:
IF %HEALTH > 0 THEN
BEGIN
IF %WINS > %LOSSES THEN
BEGIN
%SCORE:= %SCORE + (%ZZWINS * 10)
$DEST := @P8
END
IF %WINS = %LOSSES THEN
BEGIN
%SCORE:= %SCORE + (%ZZWINS * 5)
$DEST := @P10
END
IF %WINS < %LOSSES THEN
$DEST := @P5
END
IF %HEALTH < 1 THEN
$DEST := @P12