Jump to content

LWeapons.zh

Overview
Creator: ywkls Updated: 16 Mar 2024 Tags: 2.55, FFC, Global, Item, Library Downloads: 95
Rating[?]: Rating: 3.67/5 (2 ratings)
Download Package
(4.86 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.
Call UpdateLWZH() after Waitdraw 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.
Updated to ZC Version 2.55

Update History


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.