ffc script stepWithItem{
    void run(int triggerItem, int triggerItem2, int triggerItem3 ){
        while(!Screen->State[ST_SECRET]){
            if ( Link->Item[triggerItem] && Link->Item[triggerItem2] && Link->Item[triggerItem3] && SWI_DistanceLink(this->X+8, this->Y+8) <= 8 ){
                Screen->TriggerSecrets();
                Screen->State[ST_SECRET] = true;
                Game->PlaySound(SFX_SECRET);
            }
        Waitframe();
        }
    }
    
    //Returns distance to Link's center
    int SWI_DistanceLink ( int x, int y ){
        return Distance ( Link->X+8, Link->Y+8, x, y );
    }
}


Set the FFC's D0, D1 and D2 values to the item number of each pendant.

(script courtesy of MoscowModder, Russ and Saffith)