Jump to content

LWeapons.zh

Overview
Creator: ywkls Added: 20 Mar 2019 Tags: FFC, Global, Item, Library Downloads: 6
Rating[?]: Rating: 4/5 (1 rating)
Download Package
(4.96 MB)
Information

Description Setup Reviews Comments

Lweapons.zh is used to create lweapons independent of ffcs that can have a variety of behaviors.

A Lweapons.zh script should begin by calling one of the functions that launches the lweapons.
This can be done in an item or ffc script. Several example scripts are included as is a demo.
This sets up much of the lweapon's internal data. By calling UpdateLWZH1() before Waitdraw and
UpdateLWZH2() afterwards in your global script, you activate the automatic handling of these lweapons.

The global variables are used to set things such as flags for various behaviors,movement types,
the life of the lweapon, what it does on dying as well as important data for proper combo interaction.

Most lweapon attributes can be altered by these functions, to create a lweapon of the size and appearance that you desire.

Most of the lweapons do not have to be of their intended type and when it comes to melee lweapons; using the original type is impossible. The sprites for the lweapons should have at least three tiles, in the order vertical, horizontal and diagonal.

There are a number of functions used to create and control lweapons. They
can be assigned a number of simple movements and can be made to vanish and
spawn additional lweapons.

To prevent conflicts with Lweapons.zh, scripts should avoid using the index
lweapon->Misc[LW_ZH_I_FLAGS]. This index is set to 15 by default, but that can be changed.


Credit to Saffith for creating ghost.zh which was the basis from which this was born.
Credit to ZoriaRPG for making the item pickup array.
Credit to Moosh for making the hookshot routine.