CODE
// Stopwatch- Just a simple script that creates a Clock at Link's position when used. 3 uses ONLY.
// Changable Variables:
// ID- This is the Item ID for the item this script is attached to. Please look it up in std.zh. It can't
// be predefined because you might give this script to a different item than I did. Sorry.
import "std.zh"
item script Stopwatch
{
int ScrnItems = 0;
int ModItem = 0;
int Used = 0;
int ID = 0;
void run()
{
if (Used == 0)
{
Screen->CreateItem(4);
ScrnItems = Screen->NumItems();
item ModItem = Screen->LoadItem(ScrnItems);
ModItem->X = Link->X;
ModItem->Y = Link->Y;
Used = 1;
}
else if (Used == 1)
{
Screen->CreateItem(4);
ScrnItems = Screen->NumItems();
item ModItem = Screen->LoadItem(ScrnItems);
ModItem->X = Link->X;
ModItem->Y = Link->Y;
Used = 2;
}
else if (Used == 2)
{
Screen->CreateItem(4);
ScrnItems = Screen->NumItems();
item ModItem = Screen->LoadItem(ScrnItems);
ModItem->X = Link->X;
ModItem->Y = Link->Y;
Used = 0;
Link->Item[ID] = false;
}
}
}
// Changable Variables:
// ID- This is the Item ID for the item this script is attached to. Please look it up in std.zh. It can't
// be predefined because you might give this script to a different item than I did. Sorry.
import "std.zh"
item script Stopwatch
{
int ScrnItems = 0;
int ModItem = 0;
int Used = 0;
int ID = 0;
void run()
{
if (Used == 0)
{
Screen->CreateItem(4);
ScrnItems = Screen->NumItems();
item ModItem = Screen->LoadItem(ScrnItems);
ModItem->X = Link->X;
ModItem->Y = Link->Y;
Used = 1;
}
else if (Used == 1)
{
Screen->CreateItem(4);
ScrnItems = Screen->NumItems();
item ModItem = Screen->LoadItem(ScrnItems);
ModItem->X = Link->X;
ModItem->Y = Link->Y;
Used = 2;
}
else if (Used == 2)
{
Screen->CreateItem(4);
ScrnItems = Screen->NumItems();
item ModItem = Screen->LoadItem(ScrnItems);
ModItem->X = Link->X;
ModItem->Y = Link->Y;
Used = 0;
Link->Item[ID] = false;
}
}
}
Didn't take me that long at all. I only begun it just a few minutes ago, to tell you the truth. Have fun with this, and if you use it, make it either hard to get, or very expensive. This thing could make Bosses WAY too easy. Might want to disable this for boss fights, or, take out everything but "Link->Item[ID] = false", and just turn that into an FFC script that takes this item away from you permanently for Boss fights. :O It's a fun way to stop people from using this item to make bosses super-easy. Enjoy. (By the way, "Link->Item[ID]" returns true if Link has the item with the ID in the brackets. If you put "Link->Item[ID] = true", you'd give him the item instantly. Placing false in place of true takes it away. And no, using that to give him the Clock won't work, because, as far as I know, it's only for items you can KEEP, thus the "You have it or you don't". If you don't keep it, you never "have" it. )