I'm attempting to write an ffc script that will check if Link has a dungeon key in his inventory. If he does he will be Jinxed until he uses the key to unlock a door. What I have below is what I was able to figure out on my own, however, I've tried a number of things and just can figure out a way to have the room check if Link has any keys or not.
ffc script CurseKey{
void run()
{
??????
{
Link->SwordJinx = -1;
Link->ItemJinx = -1;
}
Waitframe();
}
}