Container Problem

For help with creating games using Quest

Moderators: Pertex, Cryophile, Alex, sgreig

Container Problem

Postby Pressence » Tue Jun 29, 2010 10:11 pm

I'm having a problem with a container. I've got a container called cessna. I have container checked under container tab.

Container proerties.

open - play "lost_planeDoorOpen.mp3"
close - (not allowed)
add - (not allowed)
remove - allowed
list - displayed
list empty - displayed: "there's nothing useful inside"
list closed - displayed: "try opening the door first"

I've also created an item in the same room called knife. under the set up tab I have parrent set as cessna. The problem is when I run the game. Go to where the cessna is, type look cessna I get "The plane looked to be mangled quite badly, and Jake was unsure if there were useful items inside, or not.
Try opening the door first."

After typing open door it plays the sound effect, but when I type look cessna I get...

"The plane looked to be mangled quite badly, and Jake was unsure if there were useful items inside, or not.
Try opening the door first."

It's the same message, lol...what could be wrong?
Pressence
 
Posts: 17
Joined: Fri Apr 25, 2008 12:41 pm

Re: Container Problem

Postby Alex » Tue Jun 29, 2010 10:33 pm

When you specify a script for "open", the object will not be opened automatically. So you just need to add the "open" command after your "play MP3" script - select the "Objects" category, then "Open an object".
User avatar
Alex
Site Admin
 
Posts: 2106
Joined: Fri Jun 27, 2003 11:06 pm
Location: London, UK

Re: Container Problem

Postby Pressence » Tue Jun 29, 2010 11:45 pm

Hey, thanks. it all works now.
Pressence
 
Posts: 17
Joined: Fri Apr 25, 2008 12:41 pm


Return to Quest Forum

Who is online

Users browsing this forum: Baidu [Spider] and 0 guests