I have a simple problem that can't be solved by e!

How do I have my player awake in a dungeon with a picture on the wall and then be able to examine the picture?

What programming system?