Inventory Question

mattroks101
09 Feb 2011, 17:00
Hi I'm new to quest and I have a question and I couldn't find it in the Help PDF so I thought I'd ask it here. I want the player to be able to shoot the person they're playing as with a gun. It's sort of like a mean easter egg in my game. I didn't know how to do that but I thought I'd make a object called self, and if you shot self with the object gun you'd lose. My problem is that self has to either be in the inventory or the same room for this to work and I think it'd be tacky to make the player have to pick up self. Is there some way to make self by default in the inventory? Or is there some other way to kill the player like such. :?: :?: :?:

Thanks for you time

Matt.
:D

sherlock
09 Feb 2011, 17:08
Make it a command and when you execute it make your self win or loose.

mattroks101
09 Feb 2011, 17:17
sherlock wrote:Make it a command and when you execute it make your self win or loose.


Make what a command?

Alex
09 Feb 2011, 22:39
There are a couple of ways you could do this.

As sherlock says, you could make a command for this - in QDK select Commands from the tree, then add a command like "shoot myself; shoot me; shoot self".

Alternatively your original idea can easily work - create an object called "self" in the inventory. (You can either create an inventory room yourself, or have your game start script move the "self" object there when the game begins). If you click the "Do not display in descriptions or object list" option on the Setup tab of the object screen, it won't appear in the inventory list, but you'll still be able to refer to it. Then you can just add a "shoot" verb to the object.

mattroks101
11 Feb 2011, 19:00
Ah I see, thanks :lol: