Here’s a sample of deep-nesting I used to resolve the following BITE/ INFECTION/WARNED combinations:
BITES = 0; INFECTION < 2
BITES = 0; INFECTION = 2
BITES > 0; INFECTION; < 2 WARNED = 0
BITES > 0; INFECTION; = 2 WARNED = 0
BITES > 0; INFECTION; < 2 WARNED = 2
BITES > 0; INFECTION; = 2 WARNED = 2
Basically, I want it to check if the player has Bites or not, then if he’s been Infected, and finally, if he has been Warned about the Infection (only if he has it). Note the nesting levels by color. Red text annotation only, do not include in Script.
IF %BITES = 0 THEN
BEGIN
IF %INFECTION < 2 THEN
$DEST := @P1688 (not bit, not infected)
IF %INFECTION = 2 THEN
$DEST := @P1689 (not bit, but infected)
END
IF %BITES > 0 THEN
BEGIN
IF %WARNED = 0 THEN
BEGIN
IF %INFECTION < 2 THEN
$DEST := @P1690 (bit, not infected, not warned)
IF %INFECTION = 2 THEN
$DEST := @P1691 (bit and infected, but not warned)
END
IF %WARNED = 2 THEN
BEGIN
IF %INFECTION < 2 THEN
$DEST := @P1688 (bit, not infected, warned)
IF %INFECTION = 2 THEN
$DEST := @P1689 (bit and infected and warned)
END
END