I'm going to do this good and proper at the expo with a video and all that, but I didn't want to wait until then to release it because I'm impatient.
So. What we get here is: a script which, when assigned to the screen via an ffc, and when given a combo type, plays a sound effect when Link walks on the given type, and leaves a trail of footprints which slowly fade away after a few seconds. So great for snow or fallen leaves, but also applicable to other things I'm sure if you're creative
It requires very minimal set-up aswell, which I'm quite pleased with.
First, you'll be needing some footprint tiles:
These should do nicely, Evan the Great gave me them, and they'll fit any tileset seeing as they're one colour and transparency. However, draw your own if you don't like them
The tiles must be ordered like that in the tilesheet. That is: an animation of up to 5 up-facing footprints, and then an animation of up to 5 left-facing footprints. If you want a shorter animation, put in blank tiles - don't just miss them out.
You'll also want a sound effect. You're on your own there; I have one but it's bad. If someone could find me a better one, I'd greatly appreciate that.
Snow Combo Script
Armageddon Games Network Script Showcase
Sorry to have to upload it to Filefront, it went over the character limit. If anyone has a better place I could put it, I'd be very grateful.
EDIT: And now it's also at the script showcase, where I could fit the script into one thread. Hope that helps anyone who wants to use it
So here is the script. I'm afraid it looks rather fearsome, and if anyone who knows Zscript better than me has a look at it and could shorten it, I'd be quite thankfull. It does, however, work very well. Don't be put off because it looks so long; it really isn't very hard to set up.
So once you've got those tiles in a row on your tilesheet, stick that script in your .z file, and then go to the top 6 lines of the script. There are four integers here, which I've labelled, which are the variables to make the script fit to how you want it.
The first one is the combo that you're sacrificing to make snow (don't worry, this is only applicable on screens with the FFC script put on them). There are a few dormant combos out there that people don't use too much; they aren't too hard to find. The default is combo type 12, which is the 'left statue' combo, but feel free to change that to how you want. To get a combos number, stick one on a screen and press 'Q' twice. That'll flag up it's attribute number. You also might want to use a slow walk combo for your snow (thanks Pheonix) although this means you couldn't have a ladder on the screen or anything, so you'll have to be careful.
The second integer is the number of the first tile in your 10x1 block of footprint animation.
The third integer is the Cset for your animation, and the fourth is the number of the sound effect you want to play.
And that should be about it really. I'm really rather pleased with this script, seeing as I started learning ZScript about 3 weeks ago.
I thought it'd be a lot simpler to write than this, however I'm pleased with the outcome, so I don't really care.
EDIT: http://www.youtube.c...h?v=0keTaLikBX8
Please don't judge this on the screen, I know it's not very good, I threw it together for the video. And apparently it doesn't work while the sword is being charged, but I think this is to do with a ZC bug.
Edited by Joe123, 22 October 2007 - 04:49 AM.