ffc script bottomlessPit_First{ void run(int PitSound, int duration, bool isTouching){ while(true){ if ( RectCollision(Link->X, Link->Y+10, Link->X+13, Link->Y+13, this->X, this->Y, this->X+15, this->Y+15) == true ){ int continuedmap = Game->GetCurDMap(); //Game->ContinueScreen = entScreen; int entScreen = Game->ContinueScreen; //int contpoint = Game->DMapContinue(); Game->PlaySound(PitSound); Link->CollDetection = true; LinkSeen = false; Game->PlaySound(PitSound); //Set this to make lives -1 and warp link. if (Game->Counter[CR_LIVES] > 0){ SkipContinue = true; closingWipe(30); Waitframes(10); Game->Counter[CR_LIVES] -= 1; Link->Warp(entMap, entScreen); Link->Invisible = false; openingWipe(30); //LoseLife(); } else if (Game->Counter[CR_LIVES] <=0){ Link->HP -= 9999; } } Waitframe(); AfterPit(); } } }