So other than the menu command itself, there is really nothing special about investigation. It's not like a separate mode from the rest of PyWright or anything. Talk and move are just lists. Present is just the present command followed by labels of items to jump to. Examine is a set of region definitions and labels to jump to for each one.
You have 2 options for how to create the menu itself. The "menu" command, which most fangames use, and "localmenu" which is a recent addition. The "menu" command will build the menu based on which files are available. You will type something like "menu crimescene1″ and it will look for the scripts "crimescene1.talk.txt" "crimescene1.present.txt" "crimescene1.move.txt" and "crimescene1.examine.txt". If none of those scripts are available, then the menu won't be shown at all. When that option is clicked, that is the file that will be loaded. (User clicks "examine", it loads the crimescene1.examine.txt script).
The localmenu command, instead of using extra scripts, will just jump to labels for present examine etc. You have to tell it which options you want:
As i said, talk and move are just lists, so their scripts will look something like this:
#All objects are cleared so make sure to add them back again. Most games forget to add the character who is supposed to be therebg x char ema
#start the listlist crimescene1talkli What a gruesome scene.li What was the murder weapon?showlist
#Player chose back, restore the menumenu crimescene1
#List resultslabel What a gruesome scene.char ema"It's not that bad. I'm used to blood."goto crimescene1talk
label What was the murder weapon?char ema"We don't know yet."goto crimescene1talk
Move would look similar except you have place names and jump to scripts for each list item.
Present is really easy, you just make a script like the above, with the command "present" instead of "list....showlist". Then the labels are evidence tags, label photo, label radio, etc.
Examine you have to define regions:
bg x
#region x y width height tag - creates a rectangle region that can be clicked#The screen size is 256x192#Opening the background in the gimp and selecting a box is a good way to find the numbers to useexamineregion 10 0 40 20 paintingregion 60 50 20 20 postcard
#Go back to the menu when they click backmenu crimescene1
label painting"blah"
label postcard"blah"