Axe Software Forums
  Quest Developer Forum
  question?


Author Topic:   question?
rgtnismo posted 12-09-2001 11:43 GMT     
i'm a real newbie into the world of if, I just started playing text games today, and QDK is great. Can you tell me how to use and item that you haven't/can't pick up. In my case it's a computer and i want the character to be able to use it without picking it up but it just says you haven't got this item. And whenever i try to drop and item i've just picked up it says: Run time error '9', subscript out of range, what am i diong wrong? thanks and sorry for the length.
rgtnismo posted 12-09-2001 15:33 GMT          
i found out how to use the object on its own so if someone could help me with the runtime error please.

The more i use quest the better it keeps getting, it's frigging brilliant

rgtnismo posted 12-09-2001 15:38 GMT          
okay i was wrong, i didn't find out how to use and object without actually getting it so disregard what i said about finding it out in the last msg
Computer Whizz posted 12-09-2001 20:59 GMT          
Now, have you got the latest Quest and QDK?
It is currently 3.0 for both!

Secondly, to use that item, you would want to make it so that the player can't pick it up. For this you could simply put:
take msg <You can't take this>
for the code, oh, Alex, what does the GAIN script mean exactly?? Is it the script that runs after you "get" an item? Like an automatic thing?

Anyway, secondly you would want the command "use computer" to run a specific set of commands, IDEALLY you'd do it in the current room (unless you are planning to have SEVERAL computers) and have that command run a script/procedure. This would do whatever you want it to do!

I don't know why it'd come up with an error 9. What have you written exactly? I think you have to code it in still, unlike the "take" command, where it takes it automatically!

Does this help? If not, just ask for some little demo .ASL files, and many of us will help you!

Computer Whizz

Alex posted 12-09-2001 23:13 GMT          
As CW says, if you could tell us exactly what you need to do to reproduce this problem, it would be a great help.

CW said:

quote:

what does the GAIN script mean exactly?? Is it the script that runs after you "get" an item? Like an automatic thing?

Our survey said:

Yes. It runs whenever the player gets the object - either by picking it up, or when something else runs the script command to give the player that object.

For example, if this object was really heavy you could use this gain script to chuck something else out of the inventory, or drop the object, or squash the player - and this would happen whether the player picks the object up, or the player is given the object by Uncle Fred.

rgtnismo posted 13-09-2001 05:19 GMT          
Sorry I should have been more clear. The 1st problem is using the computer in my IF. I'm using QDK3 and Quest3. I've only started with one room so far, there are no exits. I have a computer on the desk in the room, the computer is to heavy to pick up so I don't want it takeable. I set a use command to just print something out for that computer, but when I play and type "use computer" it says "you don't have that". So how do I get around this? The 2nd problem is when I make a room and an object, (I don't put much thought into either yet ie. no description and nothing to look at) and make the object takeable, I can pick it up and it works fine but when I say drop item it says "you drop it" but then comes up with and error:
Run time error '9'
subscript out of range
So what am I doing wrong? Sorry for the length and thanks for your help
Alex posted 13-09-2001 21:33 GMT          
You're not doing anything wrong - 'tis a bug. (Damn you, beta testers!)

I'll release an update soon.

As for "use computer" when you don't physically have the computer, create a command "use computer" - go to the Room Properties window for the room that the computer is in, go to the Misc tab and click "Edit Custom Player Commands". Add the command "use computer" and create the relevant script.

rgtnismo posted 14-09-2001 05:36 GMT          
okay-dokay
thanks
Computer Whizz posted 14-09-2001 21:15 GMT          
Yeah...... sorry. I guess I didn't explain myself properly!!

Computer Whizz