EDIT: You know what? I think I'm going to try and script it for myself anyways. I never even attempted to learn ZScript, so let's begin now. I think I know how to spawn the fire, but I have no idea how to make it disappear after that.
item script Link's Awakening Magic Powder
// This item script is basically another version of the Candle.
// It makes fire appear 16 pixels away from Link in the direction he is facing.
// After 90 tics (1.5 seconds), it will disappear.
{
void run ()
{
int sound=59; // You can set that to any sfx you want.
Weapon Powder= npc->Weapon(9);
if(Link->Dir == 0)
{
Powder->X = Link->X;
Powder->Y = Link->Y - 16;
}
else if(Link->Dir == 1)
{
Powder->X = Link->X;
Powder->Y = Link->Y + 16;
}
else if(Link->Dir == 2)
{
Powder->X = Link->X - 16;
Powder->Y = Link->Y;
}
else if(Link->Dir == 3)
{
Powder->X = Link->X + 16;
Powder->X = Link->X;
In the script, I'm referring to the weapon fire as Powder because I'm basing it on the Magic Powder from LADX. Also, I set the sfx to 59 because even though that's not the sfx fire uses, it'll end up being the sfx I use.
Edited by Beta Link, 05 November 2007 - 09:17 PM.