PDA

View Full Version : Wizzrobe 'Blink' Item



symbiote01
09-11-2010, 04:12 PM
In the game I'm building, the hero is a Wizzrobe learning his powers. Among them, I'd like to give a limited Teleportation (Blink) power as an item.
Limited? let me explain:
USE: When used, the script would pick a tile at random (between two and four tiles in front of and up to two tiles to the side of, a little like a chess Knight) to blink the character to. If the random location turns out to be unwalkable, it tries again. If it fails to find a suitable destination after the third try, it gives the fail scenario. (Perhaps using a certain flag (98 to whatever) on the screen might render an otherwise walkable tile 'un-'blink'-able).
Success?: If it does find a suitable tile, the hero holds up his hands (via combos and artistic talent, I can do that), fades from view, and reappears in the new position, facing either the same direction or a random one (similar to a Wizzrobe's ability). I would like there to be a sound played as well (I'll find a suitable one later). It should cost a reasonably high amount of magic (or make use of the variables so the cost can be easily changed).
Fail?: If on the third try the script cannot find a reasonable place to teleport to, it should make a puff at the unreasonable destination (visual determined by the artist again), then return the hero to his original location. In addition, he should take damage (I'd like it to remove half of whatever health the character had remaining, with one-half heart as the minimum. In other words, a person should not die from using this ability!)

I am a true novice at scripting- I think I MIGHT know how to do this, but it would be a lot easier if I had someone else do it instead so I can focus on other aspects of the game.


I've already implemented an adjusted version of the Pegasus Boots script to emulate a Blue Wizzrobe's 'rush across the screen uninhibited' ability. And a simple swap turned the boomerang into a Keese Familiar to emulate the 'Bat Robe'. This would go a long way towards improving my game.

Gleeok
09-11-2010, 06:13 PM
http://www.mediafire.com/?y90x4wmmox5

There's a bunch of stuff in this old quest, including a teleport spell *called Malor*(button L1 I believe). It's not pass-worded so you can get all the scripts from it.

It a few years old but should still work in the newer builds.

symbiote01
10-11-2010, 07:15 PM
Thank you for this! While I didn't use any of this particular script, studying it has helped me greatly. I have a working blink item now, though I'm sure the script itself is clunky and inefficient, it works. Again, thanks!