⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sceptre1.bas

📁 smallbasic for linux
💻 BAS
字号:
100 GOSUB 8000200 REM new room201 CLS210 ? "you're ";R$(R)220 ?221 IF R=1 THEN ? "P-U!"222 IF R=3 THEN ? "Sshhh!"223 IF R=6 THEN ? "If you leave without the sceptre piece  you LOSE!"224 IF R=10 AND L(13)<>-1 THEN ? "You have left without the sceptre piece therefore you lose.":END225 IF R=10 AND L(13)=-1 THEN ? "You have the piece! You win! Look soon  for SceptreQuest II!":END240 V$="you see "250 FOR I=1 TO N9:IF L(I)=R THEN ? V$;O$(I):V$="        "260 NEXT I300 ?310 ?"you can go:  ";320 FOR I=1 TO 4330 IF R(R,I)<>0 THEN ? D$(I)" ";340 NEXT I341 ?400 ?:?"now what";410 INPUT A$:?420 N$="":V$="":V=0:N=0:J=0430 L=LEN(A$):FOR I=1 TO L440 IF MID$(A$,I,1)=" " THEN V$=LEFT$(A$,I-1):J=I:I=L450 NEXT:IF J=0 THEN V$=A$:GOTO 550460 FOR I=L TO J STEP -1470 IF MID$(A$,I,1)=" " THEN N$=MID$(A$,I+1):I=J480 NEXT500 T$=LEFT$(N$,4)510 FOR I=1 TO N9520 IF T$=N$(I) THEN N=I:I=N9530 NEXT550 T$=LEFT$(V$,3)560 FOR I=1 TO V9570 IF T$=V$(I) THEN V=I:I=V9580 NEXT600 IF V=0 THEN ?"i don't know that verb.":GOTO 400610 IF V<9 THEN 1200620 ON V-8 GOTO 1000,1400,1600,1800,2000,2000,2000,2200,2400,2400,2600,2800630 ON V-20 GOTO 3000,3200,3400,3600,3800,4000,4000640 GOTO 600900 IF N$="" THEN ?"you need to say what to ";V$;".":GOTO 400910 ?"what is an ";N$;"?":GOTO 400930 NX=0:I=L(N)940 IF I<>R AND I<>-1 THEN ?"i don't see it here.":NX=1950 RETURN1000 IF N$="" THEN ?"go where?":GOTO 4001010 IF N=0 THEN V$=N$:GOTO 5501020 ?"use compass directions.":GOTO 4001200 REM movement1210 V=INT((V+1)/2):I=R(R,V)1220 IF I>0 THEN R=I:GOTO 2001221 IF R=7 AND V=3 THEN ?"the wall blocks the way."1230 ?"you can't go that way."1400 REM inv1410 Z=0:FOR I=1 TO N91420 IF L(I)=-1 THEN ?"  ";O$(I):Z=Z+11430 NEXT I1440 IF Z=0 THEN ?"  nothing"1450 GOTO 4001600 REM take1610 IF N=0 THEN 9001620 IF L(N)=-1 THEN ?"you have it already!":GOTO 4001630 GOSUB 930:IF NX=1 THEN 4001640 IF A(N)=1 THEN ?"you can't take that.":GOTO 4001650 L(N)=-11660 ?"taken.":GOTO 4001800 REM drop1810 IF N=0 THEN 9001820 IF L(N)<>-1 THEN ?"you don't have it!":GOTO 4001822 IF N=6 THEN ?"you only spilled a little bit":GOTO 4001830 L(N)=R1840 ?"dropped":GOTO 4002000 REM look,exa,search2010 IF N=0 THEN GOTO 2002020 GOSUB 930:IF NX=1 THEN 4002030 ? ED$(N)2040 IF R=1 AND N=1 THEN ?"you see a small coin.":L(9)=12050 GOTO 4002200 REM open2210 IF N=0 THEN 9002220 GOSUB 930:IF NX=1 THEN 4002230 IF N=14 THEN ?"creak. It opens, allowing way to the east.":R(6,3)=10:ED$(14)="the gate is open.":GOTO 4002240 IF N=11 THEN ?"how? he'll just get mad.":GOTO 4002250 IF N=10 THEN ?"BLASPHEMY! Appolo strikes you down!":END2260 ?"you can't open that.":GOTO 4002400 REM eat/drink2410 IF N=0 THEN 9002411 GOSUB 930:IF NX=1 THEN 4002412 IF N=3 THEN ?"you drink the beer, leaving an empty    glass.":O$(3)="an empty GLASS":ED$(3)="it's empty":N$(3)="glas":GOTO 4002413 IF N=4 THEN ?"yum!":L(4)=90:GOTO 4002414 IF N=6 THEN ?"ak! The water is poison,acid,nitrogly   cerine combined! You're dead!":END2420 ?"you can't digest that.":GOTO 4002430 IF N=11 THEN ?"that's disgusting, and it won't work    either.":GOTO 4002600 REM vomit2610 ?"blarrrrrrggggggg!!!!"2620 IF R<>1 THEN ?"you are immediately arrested for litt-  ering. The End.":END2630 ?"you add to the vomit already there.":GOTO 4002800 REM fill(oh boy)2810 IF N=0 THEN 9002820 GOSUB 930:IF NX=1 THEN 4002830 IF N=3 AND N$(3)="glas" AND R=5 THEN ?"you fill the glass with water from the fountain.":L(6)=-1:BG=99:ED$(3)="it's full.":GOTO 4002840 IF N=3 AND N$(3)="beer" AND R=5 THEN ?"you should maybe drink the beer first.":GOTO 4002850 IF R=1 THEN ?"NO! No Way! Forget It! You're not mak-  ing a mess of MY city!":GOTO 4002860 ?"you can't fill anything in this situ-   ation.":GOTO 4003000 REM read3010 IF N=0 THEN 9003020 GOSUB 930:IF NX=1 THEN 4003030 IF N=7 THEN ?"The plaque reads: WARNING! This water   is poisonous, acidic and everything     else, so watch out!":GOTO 4003040 IF N=8 THEN ?"HI! This is the designer of this game.  Welcome to my city, which happens to be the hiding place of the wizard's first  piece!":GOTO 31003050 ?"there's no writing":GOTO 4003100 ?"If you find it, leave the city with it  to win. Don't fail me and good luck!":GOTO 4003200 REM throw3210 IF N=0 THEN 9003220 GOSUB 930:IF NX=1 THEN 4003230 IF N=3 AND BG=99 AND R=7 THEN ?"the bottle of water hits the wall. He   screams in pain and dissolves before    your eyes!":R(7,3)=83235 IF R(7,3)=8 THEN ?"a secret room to the east is revealed.":O$(11)="a dead WALL":ED$(11)="it's dead."3236 ?"it rebounds and lands harmlessly where  it began." :GOTO 4003400 REM give3410 IF N=0 THEN 9003420 GOSUB 930:IF NX=1 THEN 4003430 IF R<>4 AND R<>7 THEN ?"to who?":GOTO 4003440 IF R=7 THEN ?"The wall refuses to be bribed.":GOTO 4003450 IF R=4 AND N<>9 THEN ?"The priest insists on money.":GOTO 4003460 ?"the priest smiles and takes your coin.  He points westward.":L(9)=90:R(4,4)=3:GOTO 4003600 REM talk3610 IF N=0 THEN ?"blah.blah.":GOTO 4003620 IF R<>4 AND R<>7 THEN ?"blah.blah. Passerbys look at you oddly.":GOTO 4003630 IF R=4 AND N=12 THEN ?"``Pay to Pray, sir.''":GOTO 4003640 IF R=7 AND N=11 THEN ?"``I am the guardian to sceptre piece    one!''":GOTO 4003650 ?"are you possibly insane?":GOTO 4003800 REM pray3810 IF R<>3 THEN ?"you get down on your knees and pray,    but nothing happens. Maybe you should   go to a shrine.":GOTO 4003820 ?"Appolo speaks and gives you enlighten-  ment:To find the sceptre piece, there   is a secret exit south of here!":R(3,2)=7:GOTO 4004000 REM move/push4010 IF N=0 THEN 9004020 GOSUB 930:IF NX=1 THEN 4004030 IF N=11 THEN ?"You dare lay your filthy hands on me?!  DIE!!!!!!                               ZAP!!!!!!":END4040 IF A(N)=1 THEN ?"it won't move":GOTO 4004050 ?"it moves.":GOTO 4008000 'SCREEN 1:SCREEN 0,0,08005 'KEY OFF8010 ? TAB(5);"SCEPTREQUEST I"8020 ?:?8030 ? TAB(5);"You are Giglamesht, the famous Greek adventurer, in search of the famous Athena Royal Sceptre. It is said the sceptre was broken by an evil wizard and hidden in places all over Greece. It is also said ";8032 ? "that whoever finds the sceptre pieces   can become ruler of all the Greek empi- re. Can you find the seven broken       pieces? Solve my seven games? We shall  see."8040 ?:?8050 FOR X=1 TO 100008060 NEXT X8070 CLS9000 R9=109010 DIM R$(R9),R(R9,4)9020 FOR I=1 TO R99030 READ R$(I)9040 FOR J=1 TO 49050 READ R(I,J)9060 NEXT J9062 NEXT I9070 DATA "in the vomitorium",0,0,2,09080 DATA "in a restaurant",0,5,0,19090 DATA "in appolo's shrine",0,0,4,09100 DATA "at appolo's temple",0,0,5,09110 DATA "in vathen's central square",2,9,6,49120 DATA "at vathen's city gate",0,0,0,59130 DATA "in a secret room",3,0,0,09140 DATA "in a secret room",0,0,0,79150 DATA "in the city library",5,0,0,09160 DATA "outside vathen",0,0,0,09450 DIM D$(4)9460 FOR I=1 TO 4:READ D$(I)9461 NEXT I9470 DATA "north","south","east","west"9500 N9=149510 DIM O$(N9),ED$(N9),L(N9),A(N9),N$(N9)9520 FOR I=1 TO N99530 READ O$(I),ED$(I),L(I),A(I),N$(I)9540 NEXT9550 DATA "much VOMIT","it is green and disgusting",1,1,"vomi"9560 DATA "a large TRENCH","the vomit is in it",1,1,"tren"9570 DATA "a glass of BEER","it looks good",2,2,"beer"9580 DATA "a roast CHICKEN","it looks appetizing",2,2,"chic"9590 DATA "a playing FOUNTAIN","it overflows with water",5,1,"foun"9600 DATA "full of WATER","there isn't much",5,1,"wate"9610 DATA "a brass PLAQUE","it has writing etched on it",5,1,"plaq"9620 DATA "an old BOOK","it looks ages old",9,2,"book"9630 DATA "a gold COIN","it has the symbol of appolo's temple on it",0,2,"coin"9640 DATA "a marble ALTAR","it is appolo's personal one",3,1,"alta"9650 DATA "an odd-looking WALL","it's not made of stone; it is made of flesh! It speaks! 'I AM THE GAURDIAN OF THE FIRST SCEPTRE PIECE! BEHOLD ME!'",7,1,"wall"9660 DATA "an old PRIEST","he looks kindly  but greedy",4,1,"prie"9670 DATA "the SCEPTRE piece!","it shines of gold and silver",8,2,"scep"9680 DATA "the city GATE","it is closed",6,1,"gate"9900 V9=279910 DIM V$(V9)9920 FOR I=1 TO V99930 READ V$(I):NEXT I9940 DATA "n","nor","s","sou","e","eas","w","wes"9950 DATA "go","inv","tak","dro","loo","exa","sea","ope","eat","dri","vom","fil","rea","thr","giv","tal","pra"9960 DATA "mov","pus"9990 R=9:BG=19999 RETURN

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -