Funny Smell

I'm attempting to take control of the responses to the smell/sniff verbs across all objects by defining a smell/sniff command that takes an object as a parameter and deals with specific responses through a switch statement. That seems fine except I don't seem able to refer to the player in the switch statement (i.e. 'me' or 'myself'). Am I missing something simple?

If I understand right, you want to be able to SMELL ME in game? Just use "player" (without quotes).

An alternative way to do it if you have a lot of object and the desktop version is to add a smell attribute to each object, and have your SMELL command just checks if the object has the attribute and prints if it does.

Thanks Pixie, I had "case (me, player)" in the switch statement and it didn't get past "me".

This topic is now closed. Topics are closed after 60 days of inactivity.