Rats. So I'll have to re-script stuff anyway.
Thanks for the additional variable tip though - it's still a lot neater than copy-pasting my entire UI script onto every single page in the game.
If I'm understanding it correctly, would it go something like this?
BEGIN
IF %VAR1 = 0 AND %VAR2 = 0 THEN
%NEWVAR := 0
ELSE IF %VAR1 = 0 AND %VAR2 = 1 THEN
%NEWVAR := 1
ELSE IF %VAR1 = 1 AND %VAR2 = 0 THEN
%NEWVAR := 2
ELSE IF %VAR1 = 1 AND %VAR2 = 1 THEN
%NEWVAR := 3
END
Then on page just use: %%NEWVAR%=%3%Both VAR1 and VAR2 are 1%%