Funny Smell

DavyB
02 Feb 2018, 13:32I'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?
The Pixie
02 Feb 2018, 14:18If 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.

DavyB
02 Feb 2018, 15:05Thanks Pixie, I had "case (me, player)" in the switch statement and it didn't get past "me".