PDA

View Full Version : Item-M1: Stopwatch



Nimono
02-17-2007, 01:11 PM
(Copied-and-Pasted from my thread at PureZC...)

Well, it wasn't hard to make, but I'm releasing it anyways, as a miniscript. Stopwatch creates a Clock item, moves it to your location, then sets a certain variable to the next-highest number. Once you use it 3 times..... Poof. It's gone before your very eyes. Now.... Since "Link->Item[]" requires an Item ID, and since you guys might put this script on a different item than I did (Hammer, since the subscreen editor crashes when you open it, though I wanted CoB. =/), I set a variable for the ID of the item. Set that variable to the ID of the item you put this item on! And no, I won't tell you what the IDs are, because they're in the file called "std.zh". Check them yourself, I'm not doing all the work for you (besides the script itself, mind you). Be grateful I even made this- I once never wanted to do this. And yes, it WAS a request... One of my first ones, I might add.


// 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.
// Usage- How this script works. 0 = 3 uses only. 1 = Drains all magic. 2 = Drains Magic equal to variable Magic.

import "std.zh"
item script Stopwatch
{
int ScrnItems = 0;
int ModItem = 0;
int Used = 0;
int ID = 0;
int Usage = 0;
int Magic = 64;

void run()
{
if (Usage == 0)
{
if (Used == 0)
{
Link->Item[4] = true;
Used = 1;
}
else if (Used == 1)
{
Link->Item[4] = true;
Used = 2;
}
else if (Used == 2)
{
Link->Item[4] = true;
Used = 0;
Link->Item[ID] = false;
}
}
if (Usage == 1)
{
if (Link->MP > 0)
{
Link->Item[4] = true;
Link->MP -= Link->MP;
}
}
if (Usage == 2)
{
if (Link->MP >= Magic)
{
Link->Item[4] = true;
Link->MP -= Magic;
}
}
}
}
Didn't take me that long at all. I only begun it just a few minutes ago, to tell you the truth. :p 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. :p)

Edit: Whee! I guess Link->Item[4] = true WOULD give you the Clock! It works perfectly! Not only did I make my script work better (Previously, if you moved away fast enough, you could avoid picking up the Clock....), but... Well, ShadowTiger challenged me to make this item take away all your Magic (no matter what it was, as long as you had more than 0), or 2 containers. And so you have it! Again, there's a variable Magic, where you tell the script, in 32nds of a magic container, how much Magic to take away, BUT there's a new variable- Usage. Set it to 0, you get the old effect (3 uses before the item vanishes). Use that ID thing, again! Set it to 1, and it's infinite-use, but takes away whatever magic you have, if any. If you have none, nothing happens. Set it to 2, and you drain haowever much magic you put as the value of variable Magic. ;)

_L_
02-24-2007, 11:22 PM
Well, it wasn't hard to make, but I'm releasing it anyways, as a miniscript. Stopwatch creates a Clock item, moves it to your location, then sets a certain variable to the next-highest number. Once you use it 3 times..... Poof. It's gone before your very eyes.Nifty! (Castlevania-like?)
Edit: Whee! I guess Link->Item[4] = true WOULD give you the Clock! It works perfectly!Niftier!

The_Amaster
02-24-2007, 11:27 PM
I propose that at this point Pikaguy be instituded as some kind of "Official Item Dev", or somthing. I mean, you just churn em out, doncha?

Nimono
02-24-2007, 11:27 PM
Thanks, _L_. I've never played Castlevania, though, so I wouldn't know what you were talking about. Oh, a minor note I've been forgetting to mention here...

I accept script requests at all times. If you ask for a Twilight Princess item, you WILL be denied, as I have yet to finish the game (This laptop of mine takes up all my playing time!), so... Also, if I say I can't make the item or I'm going to wait until it's a bit more possible before I make it, don't pester me about it. My decisions are FINAL. Oh yeah, and direct all requests to my PM box. ;) And don't forget to tell me if you want it public (I release it here and at PureZC for everyone to use) or private (for you only until you choose to give it away). ;)

Edit: Yes, I do seem to churn them out, don't it? XD Oh yeah, I'm also trying to see if I can fake drowning and the Mermaid Suit with scripts. Can I do it? Let's find out! :) (And it's all gonna be ONE BIG FFC SCRIPT. Or maybe global, I dunno.)

The_Amaster
01-26-2008, 12:15 PM
Hmmm, I don't suppose anyone knows how to ...

A.) Make it able to be used all the time (not just 3 times) and/or

B.) Make it so the stopwatch duration is shorter?

Nimono
01-27-2008, 02:32 AM
O_o Bump much? Well, to answer your questions...

A: I have that on the script. Except it takes Magic. It makes sense to me. Oh, maybe I'll edit this now that the Item Editor exists. :o Check back for regular updates! Maybe... Oh, FYI, just take out anything related to Magic and Link->MP for now if you wish to make this inifnite use without any cost. ;)
B: No clue. I'd say Item Editor, but I'm not sure if that'd work...


Hope that helps.