CODE
ffc script sideviewdoor{
void run(int tolerance, int warp){
for(int i = 0; i <= 4; i += 1) this->Misc[i] = this->Data + i;
while(true){
if(Link->X >= this->X - tolerance && Link->X <= this->X + this->EffectWidth - tolerance){
if(Link->Y >= this->Y - tolerance && Link->Y <= this->Y + this->EffectHeight - tolerance){
if(Link->PressUp && this->Data == this->Misc[0]){
this->Data = this->Misc[warp];
}
}
}
Waitframe();
}
}
}
void run(int tolerance, int warp){
for(int i = 0; i <= 4; i += 1) this->Misc[i] = this->Data + i;
while(true){
if(Link->X >= this->X - tolerance && Link->X <= this->X + this->EffectWidth - tolerance){
if(Link->Y >= this->Y - tolerance && Link->Y <= this->Y + this->EffectHeight - tolerance){
if(Link->PressUp && this->Data == this->Misc[0]){
this->Data = this->Misc[warp];
}
}
}
Waitframe();
}
}
}

