the-infocom-files / enchanter

Enchanter
8 stars 3 forks source link

When the game gives you a spell scroll, it should probably set TAKEBIT on it #43

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago

When casting a spell you don't have memorized, and aren't carrying a scroll for, the game makes a difference between if you've seen the scroll or not. See PRE-QUICK-CAST:

              (<OR <FSET? .SPELL ,TOUCHBIT>
               <IN? .SCROLL ,HERE>>
               <TELL
"You don't have the " D .SPELL " memorized, nor do you have the scroll
on which it is written." CR>
               <RTRUE>)
              (T
               <TELL
"The " D .SPELL " is not committed to memory, and you haven't seen any scroll
on which it is written." CR>
               <RTRUE>)>)>

But there are some scrolls that you get without picking them up. The ones I can think of are:

So you can get cases like this:

>LOOK UNDER LILY PAD
There is a damp scroll there, which you take into your hand.
The sounds of frogs and other swamp dwellers fill the air.

>EXAMINE DAMP SCROLL
The scroll reads "cleesh spell: change a creature into a small amphibian".
The sounds of frogs and other swamp dwellers fill the air.

>DROP DAMP SCROLL
Dropped.
The sounds of frogs and other swamp dwellers fill the air.

>WEST
Forest
You are in a dark forest, just north of a rusted gate. Except to the east and
south, the forest is thick all around you.

>CLEESH ME
The cleesh spell is not committed to memory, and you haven't seen any scroll on
which it is written.

But I have seen it!

By the way, all these cases should probably call THIS-IS-IT to set the scroll as "it". But this isn't done for the REZROV and CLEESH scrolls.