This script disables the use of the keyboard, except for the Ex keys, and allows Link to be controlled via the mouse instead. It is meant to be used with diagonal movement and without selectable A-button items. Left-click an area away from Link to make him walk; clicking near him will cause him to use his sword. Right-clicking uses the item equipped to the B button. Scrolling up is equivalent to pressing the L key; scrolling down is used for the R key.
Be sure "Click to freeze" is turned OFF in ZC's settings or this script will not work properly!
Set the following values in the global script:
ints:
SWORDDISTANCE = The minimum distance between the cursor and Link that will cause Link to walk instead of using his sword.
cursoritem = The item Link must have in order for the cursor to appear.
const ints:
cCSet = The CSet of the cursor.
cFirstTile = The first tile in the cursor's animation.
cSpeed = The animation speed of the cursor.
cFrames = The number of tiles in the cursor's animation.
cOpaq = The cursor's opacity. Set to 64 for translucent, 128 for opaque.
cLayer = The layer that the cursor is drawn on.
bool:
homingBrang = Whether boomerangs should follow the cursor while the right mouse button is held.
ffc script setControlSys allows you to set data about the cursor and the sword distance. To leave a variable unchanged, set its corresponding D-value to -1.
D-Values:
D0 = The new SWORDDISTANCE.
D1 = The new cursoritem.
D2 = The new cCSet.
D3 = The new cFirstTile.
D4 = The new cSpeed.
D5 = The new cFrames.
D6 = The new cOpaq.
D7 = The new cLayer.
Requires std.zh, included in ZC