Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Trouble with random variables

11 years ago

  I want to make a page that you can only access if the Random Variable equals 1 (out of five). Where do I put the scripting exactly? And what scripting do I use?

Trouble with random variables

11 years ago
So say the destination of the page to access if thee var is 1-out-of-5 is 20, and they go to another page if the variable is not 1, that page is 21. Here's the scripting [put this in the link script]:
IF %VAR = 1 THEN
$DEST := @P20
ELSE
$DEST := @P21

Trouble with random variables

11 years ago

Okay then, I've got it and it works perfectly fine!