Hello, I'm trying to script a link so that it takes the player to different pages depending on what number they get. When validate it, it's fine, but when I play through I get an error. This is my script:
%RAND:=1D6
IF 0<%RAND<4 THEN $DEST:=@P80
ELSE IF %RAND= 4 THEN $DEST:=@P81
ELSE IF %RAND= 5 THEN $DEST:=@P81
ELSE IF %RAND= 6 THEN $DEST:=@P82
I've tried many combinations, and don't know what's going wrong. If you could help I'd be grateful!
Also, is there any way to add text using the $PAGETEXT variable depending on the last page the player was on? Would you put into the page script something like: IF $LASTPAGE = @P50 THEN $PAGETEXT:= $PAGETEXT + "Text here"
EDIT: Just thought of something else. Could you just add another variable and set it's limits as either 1 or 0 (say %VAR), and when they've been to a page that you want to cause a change in the text of another page, you just set script %VAR:=1. Then, on the page with the text you want to alter, Put a simple IF %VAR = 1 THEN $PAGETEXT:= $PAGETEXT + "Text here" ?