Okay, a couple things to keep in mind while reading this script request. First of all, it's mostly made up of basic commands. Second of all, my ultra long post isn't because the script itself is so long, so much as I want it to be really easy for whoever makes it. Finally, all values should be hardcoded, not arguments, as there are rather more than eight of them. Just leave the combo and item numbers as random values, I can change them later. It's the code around them I need. Now, on to the request...
What it looks like it does in-game: Link creates a doppelganger in front of him who is invulnerable and can swing a sword.
What it really does: Makes a combo that looks like Link, while taking away most of the real Links items and making him invulnerable.
Heres what it does, as best as I can figure.
-Check Links facing, what level ring he has, and what level shield he has.
-Move Link one tile in the direction he's facing.
-Create a combo behind him. This is a bit complicated: If Link has small shield, no ring, and is facing up, it makes one combo. If "" and he's facing left, it makes another...if Link has the Magic shield and the level 1 ring, and is facing left, it makes another...if Link has the mirror shield and level 2 ring and is facing right it makes another...
All in all, this section looks for all 36 possibilities of face, shield and ring, and adjusts as so. If anyone has a way to condense this, please let me know.
-Takes away all items in one stroke if possible. If not just create the code for one, and I'll copy paste it for each.
-Gives Link four items. (These will be the boots, a special sword, the replicator, and a ring with a value so high, he's nigh on invulnerable)
-Drains Magic at a certain rate. (Once again, I'll set the exact value, just give me the code)
Now, the script ends and link returns to his original position if one of three things happens...
-The player activates the item again.
The player runs out of magic.
-The player drowns, as checked with LA_DROWNING.
Okay, I've spelled it out so that it's the last hassle for anyone who makes it for me. Any takers?