The command: ENTER [SOLVED]

K.V.
07 Jan 2018, 14:09

Does the ENTER command actually do anything without adding any scripts?

It doesn't seem to do anything...

What does it do?

Why isn't it just a verb?

Wouldn't it always have to have an object anyway?

(Am I overlooking something?)

image


K.V.
07 Jan 2018, 14:20

And where is it???

I can't find it by any method I can think of (even using grep to search the Quest 5 directory or iterating through AllCommands()).


The Pixie
07 Jan 2018, 14:54

The message is misleading. The "enter" script is used for a room when the player enters a room, so cannot also be used for a verb. You could add your own command.


K.V.
07 Jan 2018, 15:01

Oh, yeah...

The "enter" script!

That is a good script to have!

Much more important than an ENTER verb, I must say.

Thanks, Pix!


The Pixie
07 Jan 2018, 15:15

This came up about a year ago when someone tried to add an "enter" verb, and it caused havoc, so the warning got added in 5.7.1.


K.V.
07 Jan 2018, 15:29

Well, adding that warning just saved the day for me. (Havoc would have been wreaked!)


K.V.
20 Feb 2018, 02:22

UPDATE

Adding this to the game allows me to just use an "enter" verb:

  <verb name="enter_verb">
    <pattern>enter #object#</pattern>
    <defaultexpression>"You can't enter " + object.article + "."</defaultexpression>
    <property>enter_verb</property>
  </verb>

image


That's much easier than fooling around with a command, especially if you have more than one scenario when the player could enter something.