Item ID for kill all enemies is #62
Here is my script
import "std.zh" int One = 1; int I_X = 0; int I_Y = 0; item script TakeAwayMagicShieldPlease { void run() { while(One==1) { Link->Item[37] = false; Waitrame(); } } } item script KillAllEnemiesEggOneYes { void run() { while(One==1) { I_X = Link->X; I_Y = Link->Y; if (Link->PressA) { item KillAllEnemiesItem; KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES); KillAllEnemiesItem->X = I_X; KillAllEnemiesItem->Y = I_Y; Link->Item[156] = false; } if (Link->PressB) { item KillAllEnemiesItem; KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES); KillAllEnemiesItem->X = I_X; KillAllEnemiesItem->Y = I_Y; Link->Item[156] = false; } Waitframe(); } } } item script KillAllEnemiesEggTwoYes { void run() { while(One==1) { I_X = Link->X; I_Y = Link->Y; if (Link->PressA) { item KillAllEnemiesItem; KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES); KillAllEnemiesItem->X = I_X; KillAllEnemiesItem->Y = I_Y; Link->Item[157] = false; Link->Item[156] = true; } if (Link->PressB) { item KillAllEnemiesItem; KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES); KillAllEnemiesItem->X = I_X; KillAllEnemiesItem->Y = I_Y; Link->Item[157] = false; Link->Item[156] = true; } Waitframe(); } } } item script KillAllEnemiesEggThreeYes { void run() { while(One==1) { I_X = Link->X; I_Y = Link->Y; if (Link->PressA) { item KillAllEnemiesItem; KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES); KillAllEnemiesItem->X = I_X; KillAllEnemiesItem->Y = I_Y; Link->Item[158] = false; Link->Item[157] = true; } if (Link->PressB) { item KillAllEnemiesItem; KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES); KillAllEnemiesItem->X = I_X; KillAllEnemiesItem->Y = I_Y; Link->Item[158] = false; Link->Item[157] = true; } Waitframe(); } } } item script KillAllEnemiesEggFourYes { void run() { while(One==1) { I_X = Link->X; I_Y = Link->Y; if (Link->PressA) { item KillAllEnemiesItem; KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES); KillAllEnemiesItem->X = I_X; KillAllEnemiesItem->Y = I_Y; Link->Item[159] = false; Link->Item[158] = true; } if (Link->PressB) { item KillAllEnemiesItem; KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES); KillAllEnemiesItem->X = I_X; KillAllEnemiesItem->Y = I_Y; Link->Item[159] = false; Link->Item[158] = true; } Waitframe(); } } } item script KillAllEnemiesEggFiveYes { void run() { while(One==1) { I_X = Link->X; I_Y = Link->Y; if (Link->PressA) { item KillAllEnemiesItem; KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES); KillAllEnemiesItem->X = I_X; KillAllEnemiesItem->Y = I_Y; Link->Item[160] = false; Link->Item[159] = true; } if (Link->PressB) { item KillAllEnemiesItem; KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES); KillAllEnemiesItem->X = I_X; KillAllEnemiesItem->Y = I_Y; Link->Item[160] = false; Link->Item[159] = true; } Waitframe(); } } } item script KillAllEnemiesEggSixYes { void run() { while(One==1) { I_X = Link->X; I_Y = Link->Y; if (Link->PressA) { item KillAllEnemiesItem; KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES); KillAllEnemiesItem->X = I_X; KillAllEnemiesItem->Y = I_Y; Link->Item[161] = false; Link->Item[160] = true; } if (Link->PressB) { item KillAllEnemiesItem; KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES); KillAllEnemiesItem->X = I_X; KillAllEnemiesItem->Y = I_Y; Link->Item[161] = false; Link->Item[160] = true; } Waitframe(); } } } item script KillAllEnemiesEggSevenYes { void run() { while(One==1) { I_X = Link->X; I_Y = Link->Y; if (Link->PressA) { item KillAllEnemiesItem; KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES); KillAllEnemiesItem->X = I_X; KillAllEnemiesItem->Y = I_Y; Link->Item[162] = true; } if (Link->PressB) { item KillAllEnemiesItem; KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES); KillAllEnemiesItem->X = I_X; KillAllEnemiesItem->Y = I_Y; Link->Item[162] = true; } Waitframe(); } } }