Can't touch anything!

iantommo
10 Jun 2021, 21:59

I want to have 1 command for player attempting to touch any object in the game. I want my own default answer, rather than "I can't touch it"

Anyone know what the command line is for this please?


mrangel
11 Jun 2021, 23:05

I think you want to create a command with the pattern touch #object#.

Within the script, the variable object will be the thing they tried to touch. You can make it do whatever you want.

If you just want to keep the way the touch verb works and change the default message, you can either edit the "touch" verb to change the message (only in the desktop editor) or put something like this in your start script:

touch.defaulttext = "♪ Yo, I told you. You can't touch this."