Overriding look with a script
duggold
12 Jun 2012, 11:37Instead of using the static text stuff to display a <look> description for an object, I am calling a function instead. Inside the function, I am creating a description using some static stuff ("The ogre is big and mean") and some dynamic stuff ("He is badly wounded") The problem I am having, is the "this" object doesn't seem to be recognized from within my custom look procedure. How can I retrieve the object that is being looked at from within my custom look procedure? I can't hard code the object name as a parameter to look since I am going to be cloning the monsters. So, while the base ogre object is called "ogre", I may be using look on "ogre2" or "ogre3" etc.
SOLVED:
I made a script element in the object which could then use "this" in lieu of the function I was using which didn't respect "this"
SOLVED:
I made a script element in the object which could then use "this" in lieu of the function I was using which didn't respect "this"