That helped a lot. It made me realize I was on the right track.
I have got the LeftClick set up in medRecord.script
I actually tried Game.SelectedItem != "medRecord" and ActObj != "medRecord" before trying it in the else if statement without success.
I went back and put some talk statements in various places to see where the flow was going.
I don't think "if(ActObj.Type=="item" && Game.SelectedItem==null && Game.SelectedItem != "medRecord")" has the intended effect because if the Game.SelectedItem is null, then Game.SelectedItem can't be anything (including medRecord).
Anyway, the only time the "if" statement is skipped is when I have Game.SelectedItem == "medRecord" or ActObj == "medRecord". Then the LeftClick in medRecords.script executes.
When the book is clicked in inventory, is it something other than the Game.SelectedItem or ActObj? Or, do I have the medRecords item somehow set up incorrectly?
The item is identified on the screen as medRecords. I checked the log and there aren't any errors so I don't think there is a typo. It just isn't seeing the book as Game.SelectedItem or ActObj.
Any thoughts?
In item.items, I have:
ITEM
{
CURSOR_COMBINED = TRUE
CAPTION = "Medical Record"
NAME = "medRecord"
IMAGE = "items\book.bmp"
CURSOR = "items\book.bmp"
CURSOR_HOVER = "items\book_h.bmp"
SCRIPT = "items\medRecord.script"
}