Actually, the item flag wasn't set in that room. I was able to use the item flag in the script.
When setting the item flag, the command is "setroomflag 40", but when checking, it's "checkitemflag".
Same with the regular room flag (80), the command for setting it is "setroomflag 80" and checking it is "checkspecialflag".
I haven't gotten the "checkroomflag ##" to work at all. I guess it does something else besides checking the room flag.
I also noticed that there is a command called "setglobalflag". What does that do?
Oh, right. Weird, I forgot about that. Checkroomflag ANDs the room flag by the current value and if it's not 0, the next instruction is skipped. And honestly, it's been so long that it seems I've forgotten. I think there are an extra 8 bytes in the memory for 256 additional global flags, but don't quote me on that.
I sure wish Jigglysaint was here. He'd know for sure
