WatchNon-threaded

Forums » Writing Workshop » Read Message

Toss around ideas and brainstorm your story.

HELP!

8 days ago

How do I create a keycode system in my game? Can someone explain it to me? IN english?

HELP!

8 days ago
Do you mean something like this?

HELP!

8 days ago

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.

HELP!

8 days ago

HELP!

8 days ago

This is perfect! Thanks, Berka!

HELP!

8 days ago
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:= 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 THEN
BEGIN
IF %CHAR2 = B THEN IF %CHAR3 = C THEN IF %CHAR4 = D THEN IF %CHAR5 = E THEN $DEST:= @PY
END
ELSE $DEST:= @PZ

Where @PZ is the passcode fail page and @PY 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.

HELP!

8 days ago

Thank you. This is purrrrrfect. All help is appreciated :)

HELP!

7 days ago
Yeah, there is an easier way or two, but I don't have either of those wrote up haha!