sps999
12-09-2009, 09:35 PM
Is there a command that makes it so the side warp destination, or timed warp destination in other words, is changed when something happens, in this case, the enemy dies. I don't want to use a Pit Warp, because that'll just instantly warp me to the Pit Warp destination. Instead, I want the Side Warp to change, and let the screen finish the timed warp, but the timed warp destination will be at a different screen, instead of what was normally set. Here is what I have so far:
ffc script worm_heart{
void run(){
npc ghost_enemy = Screen->LoadNPC(1);
int x = this->X;
int y = this->Y;
while (true){
if (ghost_enemy->HP <= 100){
this->CSet = 4;
}
if (ghost_enemy->HP <= 50){
this->CSet = 2;
}
if (Screen->NumNPCs() >= 1){
ghost_enemy->X = x;
ghost_enemy->Y = y;
x = this->X + 8;
y = this->Y + 8;
}
if (Screen->NumNPCs() == 0){
Link->PitWarp(7, 06); // I WANT THIS LINE CHANGED
}
Waitframe();
} // end of while loop
} // end of void run
} // end of enemy_ghosting
ffc script worm_heart{
void run(){
npc ghost_enemy = Screen->LoadNPC(1);
int x = this->X;
int y = this->Y;
while (true){
if (ghost_enemy->HP <= 100){
this->CSet = 4;
}
if (ghost_enemy->HP <= 50){
this->CSet = 2;
}
if (Screen->NumNPCs() >= 1){
ghost_enemy->X = x;
ghost_enemy->Y = y;
x = this->X + 8;
y = this->Y + 8;
}
if (Screen->NumNPCs() == 0){
Link->PitWarp(7, 06); // I WANT THIS LINE CHANGED
}
Waitframe();
} // end of while loop
} // end of void run
} // end of enemy_ghosting