by Roody_Yogurt » Mon Jul 25, 2011 8:55 pm
I think you can basically do two things-
1) declare this grammar line before verblib.g is included:
Code: Select all
verb "look", "l", "examine", "x", "watch"
* "in"/"inside" object DoLookIn
The downside of that is that every object can be used with "LOOK IN" now, and you may have to replace DoLookIn with something with a little extra code to give a decent answer to those other cases.
2) The other route, of course, is to just make the window a container and then disallow all of the stupid container things an evil player might try to do with it.
There isn't really a correct answer with that.
There is a third* possibility, too, where you put something in PreParse that specifically looks for every variation of >LOOK IN WINDOW and then point it to the routine you want, but that method would be dumb.
Anyhow, yeah, it's always rough when the default grammar conflicts with what you want to do (since changing the grammar seems weird), but changing it is what you have to do. Er, unless you don't.
* There are most likely more than three possibilities.
I think you can basically do two things-
1) declare this grammar line before verblib.g is included:
[code]
verb "look", "l", "examine", "x", "watch"
* "in"/"inside" object DoLookIn
[/code]
The downside of that is that every object can be used with "LOOK IN" now, and you may have to replace DoLookIn with something with a little extra code to give a decent answer to those other cases.
2) The other route, of course, is to just make the window a container and then disallow all of the stupid container things an evil player might try to do with it.
There isn't really a correct answer with that.
There is a third* possibility, too, where you put something in PreParse that specifically looks for every variation of >LOOK IN WINDOW and then point it to the routine you want, but that method would be dumb.
Anyhow, yeah, it's always rough when the default grammar conflicts with what you want to do (since changing the grammar seems weird), but changing it is what you have to do. Er, unless you don't.
* There are most likely more than three possibilities.