Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Changing Sidewarp Destination

1 replies · 1,356 views · Started 10 December 2009

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

Sorry, there's no such command...

Edit: However, you might succeed in warping Link to an identical screen that DOES have the proper side-warp set.