Inventory problems
fritiof
09 Jul 2011, 01:34So I have just started creating text games and I have read the tutorial oven and over but there is one thing I don't understand. If i for example have an item called "pistol". I change it so i can pick it up in the inventory panel and I make a message appear when I pick it up, for example, "you pick up the gun" Now I enter the game and type take gun, it says "you pick up the gun" but it doesn't move to my inventory!
Yes i have changed the objekt "gun" so it is takeable and Is supposed to move automaticly to my inventory when i type "take gun" but it doesnt move to my inventory.What am I doing wrong? Please answer with common words, because im new to this game and don't understand all the terms in the game and I'm not from an english talking country.
Yes i have changed the objekt "gun" so it is takeable and Is supposed to move automaticly to my inventory when i type "take gun" but it doesnt move to my inventory.What am I doing wrong? Please answer with common words, because im new to this game and don't understand all the terms in the game and I'm not from an english talking country.
RedTulip
09 Jul 2011, 08:25That's weird.
Check if you really did choose the 'Yes - automatically move this object to the inventory when the player takes it' or if you chose 'Run a script when the player types "take...":'.
If you did pick Yes, and it still doesn't work, try choosing 'Run a script when the player types "take...":' instead and edit the script.
Choose the Print a Message script (if it isn't, already), and type what you want it to say when the player picks up the pistol. "you pick up the gun.", if that's it.
Add another script by clicking 'Add more >'. This time, collapse the Objects link (by clicking the '+' button beside the Objects text) and choosing 'Give an object to the player'. Type the object's name on the text box that appears on the right, "pistol".
Click OK. Try testing the game.
Check if you really did choose the 'Yes - automatically move this object to the inventory when the player takes it' or if you chose 'Run a script when the player types "take...":'.
If you did pick Yes, and it still doesn't work, try choosing 'Run a script when the player types "take...":' instead and edit the script.
Choose the Print a Message script (if it isn't, already), and type what you want it to say when the player picks up the pistol. "you pick up the gun.", if that's it.
Add another script by clicking 'Add more >'. This time, collapse the Objects link (by clicking the '+' button beside the Objects text) and choosing 'Give an object to the player'. Type the object's name on the text box that appears on the right, "pistol".
Click OK. Try testing the game.
fritiof
09 Jul 2011, 09:13well I tried everything you suggested and none of it worked, it just doesn't move to the invntory whatever the f*** I do, any more tips on how to fix it?
Alex
09 Jul 2011, 09:38Can you please attach your ASL file? (Use the "Upload attachment" tab under the Submit button when replying)
fritiof
09 Jul 2011, 11:06I really need help on this one, bad horror text game without an inventory :/ it seems like i pick the item up but it doesnt show in the inventory or anywhere else, any suggestions please? P.s i dont understand the upload attachment thing, how do I show you explain throughfully sorry I'm not that great with computers.
Alex
09 Jul 2011, 11:23Click Post Reply.
Underneath the Submit, Preview, Save Draft you'll see the Options and "Upload attachment" tabs.
Click "Upload attachment", click "Choose File", find the game file you created in QDK.
Click "Add the file" and then post your reply.
Underneath the Submit, Preview, Save Draft you'll see the Options and "Upload attachment" tabs.
Click "Upload attachment", click "Choose File", find the game file you created in QDK.
Click "Add the file" and then post your reply.
fritiof
09 Jul 2011, 12:10There, I added the file, the problem is with the "shoe1" item if i pick it up it doesnt show in the inventory, just click, north from the first screen and then "take" on the shoes item and you will see it doesnt pop in the inventory.
Alex
09 Jul 2011, 12:25The problem is that you've created your own "take" verb. This will completely override the built-in "take" functionality, which is why it's not working for you.
To fix the problem, delete "take" from the Verbs list (under Game).
To fix the problem, delete "take" from the Verbs list (under Game).
fritiof
09 Jul 2011, 17:24thanks a lot for the help what you said worked but because i had to delete my home-made "take" verb i can't add settings to it. For example, if I type "look shoes" it says there are four pair of shoes here, you could pick one of them up to etc etc. If i pick up a pair of shoes. Click the shoes in the inventory and look at them, it says there are four pair of shoes here etc etc. So because i deleted the custom "take" verb i can't add settings to it.
Question: how do i for example run a scrippt on the take verb when it isn't in my verb list?
Question: how do i for example run a scrippt on the take verb when it isn't in my verb list?
Alex
09 Jul 2011, 21:19On the Inventory tab, use the "Run a script when the player types 'take...'" option.
fritiof
10 Jul 2011, 16:28Thanks, now I have no more questions for you sir 
