That's actually really cool. Thanks.
I guess the difficult part is making traveling with the key feel less like a boring fetch quest.
FanofSMBX wrote:Would throwing a key at it destroy it or does the key HAVE to be held to be "active"?
That doesn't even work when the door is left coded as normal.
FanofSMBX wrote:Throwing it into the lava, if it was destroyed by a thrown key it would work but if not it wouldn't.
I've already worked around this, actually. The point was never to place the door NPC onto the lava itself. It was to go before the lava, wherein when Mario and the key broke the door, Mario's hitbox would contact an NPC in the process. The NPC would have an idle frame of the key, and when it falls into the lava and is destroyed, the event is triggered.
I COULD do it your way in that Mario just jumps into the lava with the key, but that's not very intuitive. Most people would expect to die when they jump into the lava, and they would expect to throw the key, which would have undesirable results.
Anyway here's a rough demonstration of what I had intended to do, though in actual gameplay it would look much different.
http://www.sendspace.com/file/nslst9
I was concerned about people ACTUALLY throwing the key in and breaking the event, so I set npcblock=1 on the door. I just have to design the level around it in such a way that no dangerous NPCs like shells will be around that area and might accidentally rebound off of the invisible wall.