# Forums » Writing Workshop » Read Message

Toss around ideas and brainstorm your story.

I'm working on that, actually, but no. I mean... like pushing in numbers on a keypad... or a numerical lock? Also, can you friend people? You've been helpful and I could use another friend.

I think there might be an easier way to do this which needs fewer pages. I set up the numbers links (%CHAR variables) which link back to the same page, then an 'Enter' and a 'Clear' link. Then I put this in each link script (changing the numbers for each %CHAR variable):

IF %CHAR4 > 0 THEN %CHAR5:=

ELSE IF %CHAR3 > 0 THEN %CHAR4:=

ELSE IF %CHAR2 > 0 THEN %CHAR3:=

ELSE IF %CHAR1 > 0 THEN %CHAR2:=

ELSE %CHAR1:=

Where

IF

%CHAR1 =

BEGIN

IF %CHAR2 =

END

ELSE $DEST:= @P

Where @P

EDIT: Just realised this isn't perfect because someone can enter the wrong code, but if they get the first number (

IF %CHAR4 > 0 THEN %CHAR5:=

**X**ELSE IF %CHAR3 > 0 THEN %CHAR4:=

**X**ELSE IF %CHAR2 > 0 THEN %CHAR3:=

**X**ELSE IF %CHAR1 > 0 THEN %CHAR2:=

**X**ELSE %CHAR1:=

**X**Where

**X**corresponds to the number chosen. Then this in the 'Enter' link:IF

%CHAR1 =

**A**THENBEGIN

IF %CHAR2 =

**B**THEN IF %CHAR3 =**C**THEN IF %CHAR4 =**D**THEN IF %CHAR5 =**E**THEN $DEST:= @P**Y**END

ELSE $DEST:= @P

**Z**Where @P

**Z**is the passcode fail page and @P**Y**leads to the correct passcode page. Other letters are numbers of choice for the passcode.EDIT: Just realised this isn't perfect because someone can enter the wrong code, but if they get the first number (

**A**) right then the code doesn't run and it takes you to whatever page the link actually goes to. However, can fix this by setting the enter link to the page which tells you that the passcode is wrong.