if (Contains (Book Shelf,Book1)) {
if (Contains (Book Shelf,Book2)) {
if (Contains (Book Shelf,Book3)) {
msg ("You notice a small button on the top shelf. You press it and a loud 'CLUNK' comes from behind the book shelf. The book shelf starts to rotate 90 degrees revealing a secret room.")
UnlockExit (usecroom)
MakeExitVisible (usecroom)
MakeObjectInvisible (Book1)
MakeObjectInvisible (Book2)
MakeObjectInvisible (Book3)
SetObjectFlagOn (Book Shelf, "open")
}
else {
msg ("A very tall solid oak book shelf. There are three shelves that start at chest height on top of a built in cabinet. The lower shelf is full and has books on oceans, deep seas and large lakes. The middle shelf, just at arms length, has books on mountains, great plains and desserts. This shelf is also full. The top shelf which is too high for you to reach has books on rockets, stars and planets. This shelf has a book missing.")
}
}
else if (Contains (Book Shelf,Book3)) {
msg ("A very tall solid oak book shelf. There are three shelves that start at chest height on top of a built in cabinet. The lower shelf has books on oceans, deep seas and large lakes. This shelf is full. The middle shelf, just at arms length, has books on mountains, great plains and desserts. This shelf has a book missing. The top shelf which is too high for you to reach has books on rockets, stars and planets. This shelf is also full.")
}
else {
msg ("A very tall solid oak book shelf that seems to be built into the wall. There are three shelves that start at chest height on top of a built-in cabinet. The lower shelf has books on oceans, deep seas and large lakes. This shelf is full. The middle shelf, just at arms length, has books on mountains, great plains and desserts. There is a book missing. The top shelf which is too high for you to reach has books on rockets, stars and planets. That too has a book missing.")
}
}
else if (Contains (Book Shelf,Book2)) {
if (Contains (Book Shelf,Book3)) {
msg ("A very tall solid oak book shelf. There are three shelves that start at chest height on top of a built in cabinet. The lower shelf has books on oceans, deep seas and large lakes. There is a book missing. The middle shelf, just at arms length, has books on mountains, great plains and desserts. This shelf is full. The top shelf which is too high for you to reach has books on rockets, stars and planets. This shelf is also full.")
}
else {
msg ("A very tall solid oak book shelf. There are three shelves that start at chest height on top of a built in cabinet. The lower shelf has books on oceans, deep seas and large lakes. There is a book missing. The middle shelf, just at arms length, has books on mountains, great plains and desserts. This shelf is full. The top shelf which is too high for you to reach has books on rockets, stars and planets. This shelf also has a book missing.")
}
}
else if (Contains (Book Shelf,Book3)) {
msg ("A very tall solid oak book shelf. There are three shelves that start at chest height on top of a built in cabinet. The lower shelf has books on oceans, deep seas and large lakes. There is a book missing. The middle shelf, just at arms length, has books on mountains, great plains and desserts. This shelf also has a book missing. The top shelf which is too high for you to reach has books on rockets, stars and planets. This shelf is full.")
}
else {
msg ("A very tall solid oak book shelf. There are three shelves that start at chest height on top of a built in cabinet. The lower shelf has books on oceans, deep seas and large lakes. There is a book missing. The middle shelf, just at arms length, has books on mountains, great plains and desserts. There is also a book missing. The top shelf which is too high for you to reach has books on rockets, stars and planets. That too has a book missing.")
}
msg ("it's a dusty old bookshelf {if books.shelf=3:that has three books sitting on it}{if books.shelf=2:that has two books sitting on it}{if books.shelf=1:that has a solitary book on it}{if books.shelf=0:that unfortunately has no books sitting on it}.")
I think this could work too:
if (Contains ( (Book Shelf,Book1) and (Book Shelf,Book2) ) ) { script }
or
if ( Contains ( Book Shelf,Book1 and Book Shelf,Book2 ) ) { script }
(Book Shelf,Book1) and (Book Shelf,Book2)
Book Shelf,Book1 and Book Shelf,Book2
jaynabonne wrote:if (Contains (Book Shelf,Book1) and Contains (Book Shelf,Book2) and Contains (Book Shelf,Book3)) {
//...
}