Look Script Clarification

HegemonKhan
12 Jun 2013, 00:26
I just noticed this, which has just caused me confusion at first, so I wish to share this, in case others might have the same confusion as I had.

The default "Look" (command~verb pattern input: "look at") script which gives a description for that object, has two forms:

1. (if object is a controlled) Player Object
2. (if object is a) Non-player Object or a Non-controlled Player Object
3. (if you have a Player Object that will be both controlled and non-controlled, then) you'll need to set both #1 and #2

in the GUI~Editor mode:

#1 is located here:

(for example) "player" (a Player Object) -> Options (Tab) -> "Look at" Object Description (at the very bottom)

#2 is located here:

(for example) "player" (a Player Object) -> Setup (Tab) -> Description: "Look at" Object Description (at the very bottom)

in Code View mode (or just in code):

#1 looks like this:

<attr name="pov_look" type="script">
</attr>

#2 looks like this:

<look type="script">
</look>

so, make sure you set the correct "Look" script form via its correct location (GUI~Editor) or coding syntax~format (Code).

--------

I was just changing the Setup (Tab) location "Look" script, and was baffled why it wasn't working on the default Player Object "player", not realizing what I just explained within this post, initially, and that's how I came to realizing this mistake of mine.

Hopefully with this thread~post, no one else will have the same confusion as I initially had, lol.