I've been doing a lot of scripting lately, but I've hit a wall. I don't really understand how to code custom enemies from scratch, and neither do I know how to code custom weapons.


So here's the request. I need help coding a basic weapon (This thread) and a basic enemy (To come later) so that I can use that as a frame-of-reference to make other weapons and enemies.

For the weapons, I'd like to avoid using FFCs... if possible.


If you have the time, could you please:

1.) Code an Lweapon that persists so long as Link holds the button, moves with him, knocks back enemies it touches, and inflicts 1 heart damage?

2.)Code an Lweapon that extends like the hookshot, but only for two links, and then retracts.

2.) Code an Eweapon that extends two tiles in front of the enemy when it is called?



Any help at all is well appreciated. Thank you in advance.


P.S.: Please either heavily annotate your codes or use variables that are not one letter long.... so you can 'teach me how to fish', so to speak.