pick up objects

guzmere
19 Jul 2012, 19:06
Hi everyone hope all is well, I need a little help if possible please. I know that you can take or get an object using the [default behavior] and just ticking the object can be taken box. But just say that you want to run a script first and then you want to be able to get or take the object afterwards. What would be the syntax for it, or how could I do this. Thanks to all Terry :D :D :D :D

Pertex
19 Jul 2012, 19:52
Something like this?
take.png

guzmere
20 Jul 2012, 07:09
Thanks Pertex for coming to my rescue once again I thought of a lot of complicated ways to try but to no avail. I never thought about that, however it works to a certain degree. When I type in get object it shows up in the panes on the side but when I type in inventory it does not show up in there. I am making this game without the showpanes showing. I hope this makes sense. Regards Terry :D :D :D :D and one for good luck :D

Pertex
20 Jul 2012, 07:34
Could you post a sample game with your problem? In my testgame the object is shown in the pane and when typing 'inventory'

guzmere
20 Jul 2012, 08:26
Hi Pertex I am sending you a sample game, although in the sample your scripting works great and when I type in inventory, but now you will find that it does not show the objects or the exits under the description of the room. Even though I have changed the game options. Thanking you Terry :D :D :D :D

Pertex
20 Jul 2012, 08:31
Sure. Have a look: viewtopic.php?f=10&t=3114

guzmere
20 Jul 2012, 08:51
Oh yes I've forgotten about your scripting addition to the game so that would make sense. But what would cause my main game to ignore the object taken on typing inventory as opposed to the sidepanes showing it. It is not really detriment to the game it just would have been nice to put it in . Thanks once again for all you dedicated and hard work. Terry :D :D :D :D :D :D

guzmere
20 Jul 2012, 09:27
Hi Pertex sorry to bother you again, if I use the side panes is there any way that the background colour of the side panes can be changed Thanks Terry :D :D :D :D

Pertex
20 Jul 2012, 10:29
guzmere wrote:But what would cause my main game to ignore the object taken on typing inventory as opposed to the sidepanes showing it. It is not really detriment to the game it just would have been nice to put it in .

without seeing the problem on my screen, I can't help any more

guzmere wrote: if I use the side panes is there any way that the background colour of the side panes can be changed

not yet. http://quest.codeplex.com/workitem/1035

guzmere
20 Jul 2012, 11:02
Hi Pertex thanks for your input but I think its too big a game to try to pick out a single anomaly. But thanks for trying anyway. Terry :D :D :D :D :D :D :D

guzmere
20 Jul 2012, 12:30
Hi Pertex please let me know if you read this. I have sorted the problem out, your solution was obviously correct but I could not understand why it would not show up in the inventory. I tried various different ideas even to the point of duplicating the object and it still would not tell me that I had it in my inventory. Until I discovered that I had ticked the not shown in scenery box. Deerrrr what an idiot a simple thing like that caused me so much hassel. But once again thanks for all your effort. Terry :D :D :D :D :D :D :D :D :D :D and now i feel :oops: :oops:

Pertex
20 Jul 2012, 12:51
Then everything is wonderful. You solved your problem and Quest does not have a bug there :lol: