SUBROUTINE MAINSB INTEGER*2 KTAB,LTEXT,STEXT,KEY,COND,ABB,ATLOC,PLAC, 1 PLACE,FIXD,FIXED,LINK,PTEXT,PROP,ACTSPK,RTEXT,CTEXT,CVAL, 2 HINTLC,HINTS,MTEXT,DLOC,ODLOC,ASCVAR INTEGER PBOTL,DUMMY,PUT,FOO,SCORE LOGICAL LIQ2,LIQ,LIQLOC,FORCED,PCT LOGICAL DSEEN,BLKLIN,HINTED,YES,START LOGICAL TOTING,HERE,AT,BITSET,DARK,WZDARK,LMWARN,CLOSNG,PANIC, 1 CLOSED,GAVEUP,SCORNG,DEMO,YEA LOGICAL IL INTEGER RTEXT,ASCVAR INTEGER KTAB,TABSIZ INTEGER ATLOC,LINK,PLACE,FIXED,HOLDNG INTEGER MTEXT INTEGER PTEXT INTEGER ABB INTEGER WKDAY,WKEND,HOLID,HBEGIN,HEND,HNAME, 1 SHORT,MAGIC,MAGNM,LATNCY,SAVED,SAVET,SETUP INTEGER LINUSE,TRVS,CLSSES,OLDLOC,LOC,CVAL,NEWLOC, 1 KEY,PLAC,FIXD,ACTSPK,COND,HINTS,HNTMAX,PROP,TALLY,TALLY2, 2 HINTLC,CHLOC,CHLOC2,DFLAG,DLOC,DALTLC,KEYS,LAMP,GRATE, 3 CAGE,ROD,ROD2,STEPS,BIRD,DOOR,PILLOW,SNAKE,FISSUR,TABLET, 4 CLAM,OYSTER,MAGZIN,DWARF,KNIFE,FOOD,BOTTLE,WATER,OIL,PLANT, 5 PLANT2,AXE,MIRROR,DRAGON,CHASM,TROLL,TROLL2,BEAR,MESSAG,VEND, 6 BATTER,NUGGET,COINS,CHEST,EGGS,TRIDNT,VASE,EMRALD,PYRAM, 7 PEARL,RUG,CHAIN,BACK,LOOK,CAVE,NULL,ENTRNC,DPRSSN,SAY,LOCK, 8 THROW,FIND,INVENT,TURNS,IWEST,KNFLOC,DETAIL,ABBNUM, 9 NUMDIE,MAXDIE,DKILL,FOOBAR,BONUS,CLOCK1,CLOCK2 INTEGER I,RTXSIZ,CLSMAX,MAGSIZ,LOCSIZ,CTEXT,STEXT,LTEXT, 1 SECT,TRAVEL,TRVSIZ,TABNDX,OBJ,J,K,VERB,HNTSIZ,MAXTRS, 2 HNTLOC,KK REAL LINES(15) LOGICAL TK INTEGER VOCAB2,ATTACK,RAN INTEGER SPICES C LOGICAL LLINES(60),CR,BL C INTEGER KEY(150),COND(150),ABB(150), 1 ATLOC(150) INTEGER PLAC(100),PLACE(100),FIXD(100),FIXED(100),LINK(200), 1 PTEXT(100),PROP(100) INTEGER ACTSPK(35) INTEGER CTEXT(12),CVAL(12) DIMENSION HINTLC(20),HINTED(20),HINTS(20,4) INTEGER MTEXT(35) DIMENSION TK(20),DSEEN(6),DLOC(6),HNAME(4) C INTEGER DTOTAL,STICK,OLDLC2,SPK,HINT C C COMMON /TXTCOM/ LINES,ASCVAR COMMON /BLKCOM/ BLKLIN COMMON /VOCCOM/ TABSIZ COMMON /PLACOM/ ATLOC,LINK,PLACE,FIXED,HOLDNG COMMON /MTXCOM/ MTEXT COMMON /PTXCOM/ PTEXT COMMON /ABBCOM/ ABB COMMON /WIZCOM/ WKDAY,WKEND,HOLID,HBEGIN,HEND,HNAME, 1 SHORT,MAGIC,MAGNM,LATNCY,SAVED,SAVET,SETUP COMMON /MISCOM/ LINUSE,TRVS,CLSSES,OLDLOC,LOC,CVAL,TK,NEWLOC, 1 KEY,PLAC,FIXD,ACTSPK,COND,HINTS,HNTMAX,PROP,TALLY,TALLY2, 2 HINTLC,CHLOC,CHLOC2,DSEEN,DFLAG,DLOC,DALTLC,KEYS,LAMP,GRATE, 3 CAGE,ROD,ROD2,STEPS,BIRD,DOOR,PILLOW,SNAKE,FISSUR,TABLET, 4 CLAM,OYSTER,MAGZIN,DWARF,KNIFE,FOOD,BOTTLE,WATER,OIL,PLANT, 5 PLANT2,AXE,MIRROR,DRAGON,CHASM,TROLL,TROLL2,BEAR,MESSAG,VEND, 6 BATTER,NUGGET,COINS,CHEST,EGGS,TRIDNT,VASE,EMRALD,PYRAM, 7 PEARL,RUG,CHAIN,BACK,LOOK,CAVE,NULL,ENTRNC,DPRSSN,SAY,LOCK, 8 THROW,FIND,INVENT,TURNS,LMWARN,IWEST,KNFLOC,DETAIL,ABBNUM, 9 NUMDIE,MAXDIE,DKILL,FOOBAR,BONUS,CLOCK1,CLOCK2, 1 CLOSNG,PANIC,CLOSED,GAVEUP,SCORNG COMMON /MISC2/ I,RTXSIZ,CLSMAX,MAGSIZ,LOCSIZ,CTEXT, 1 SECT,TRVSIZ,TABNDX,OBJ,J,K,VERB,HNTSIZ,MAXTRS, 2 HINTED,HNTLOC,KK C EQUIVALENCE(LINES(1),LLINES(1)) C C READ COMMON STUFF FROM INITIALIZATION C IF (SETUP.EQ.-1) GOTO 1 C SKIP THIS IF THIS IS NOT THE FIRST TIME THROUGH CALL OPEN(6,'COMMON DAT',0) C READ(6) LINES,ASCVAR,BLKLIN,TABSIZ,ATLOC,LINK,PLACE, 1 FIXED,HOLDNG,MTEXT,PTEXT,ABB,WKDAY,WKEND,HOLID,HBEGIN, 2 HEND,HNAME,SHORT,MAGIC,MAGNM,LATNCY,SAVED,SAVET,SETUP, 3 LINUSE,TRVS,CLSSES,OLDLOC,LOC,CVAL,TK,NEWLOC,KEY,PLAC, 4 FIXD,ACTSPK,COND,HINTS,HNTMAX,PROP,TALLY,TALLY2, 5 HINTLC,CHLOC,CHLOC2,DSEEN,DFLAG,DLOC,DALTLC,KEYS,LAMP, 6 GRATE,CAGE,ROD,ROD2,STEPS,BIRD,DOOR,PILLOW,SNAKE, 7 FISSUR,TABLET,CLAM,OYSTER,MAGZIN,DWARF,KNIFE,FOOD, 8 BOTTLE,WATER,OIL,PLANT,PLANT2,AXE,MIRROR,DRAGON,CHASM, 9 TROLL,TROLL2,BEAR,MESSAG,VEND,BATTER,NUGGET,COINS, A CHEST,EGGS,TRIDNT,VASE,EMRALD,PYRAM,PEARL,RUG,CHAIN, B BACK,LOOK,CAVE,NULL,ENTRNC,DPRSSN,SAY,LOCK,THROW,FIND, C INVENT,TURNS,LMWARN,IWEST,KNFLOC,DETAIL,ABBNUM,NUMDIE, D MAXDIE,DKILL,FOOBAR,BONUS,CLOCK1,CLOCK2,CLOSNG,PANIC, E CLOSED,GAVEUP,SCORNG,I,RTXSIZ,CLSMAX,MAGSIZ,LOCSIZ, F CTEXT,SECT,TRVSIZ,TABNDX,OBJ,J,K,VERB, G HNTSIZ,MAXTRS,HINTED,HNTLOC,KK C ENDFILE 6 C C 1 CALL OPEN(4,'LTEXT DAT',0) CALL OPEN(5,'STEXT DAT',0) CALL OPEN(6,'ADVENTURMSG',0) CALL OPEN(7,'ATAB DAT',0) CALL OPEN(8,'TRAVEL DAT',0) CALL OPEN(9,'KTAB DAT',0) CALL OPEN(10,'RTEXT DAT',0) C RETURN END