Code:
ffc script Zora2{
void run(){
npc zora = Screen->CreateNPC(33);
while(zora->isValid()){
if(zora->Tile >= 2520){
for(int count = 1; count <= 10; count++){
eweapon fs = Screen->CreateEWeapon();
fs->X = zora->X;
fs->Y = zora->Y;
fs->Angle = findAngle(fs->X, fs->Y, Link->X, Link->Y);
fs->Damage = 8;
fs->Angular = true;
fs->Step = 300;
Game->PlaySound(13);
Waitframes(6);
}
}
Waitframe();
}
}
}
Okay, first of all... There is no way I could of done this without help from two very special people. Pkmnfrk and Joe123, thank you so much for helping me come this far on my scripting journey and for all your help and support. It's much appreciated. And thanks
Now let's get cracking shall we.
I think that's pretty much everything you need to know. The Zora by itself won't breathe fire, so make sure you use the script under a ffc to place them and not the enemy editor.
Enjoy!
EDIT: Forgot to mention... You'll need to import advmath.zh from my sig by pkmnfrk to make it work.