Jump to content

Mani's Script Header

Overview
Creator: Mani Kanina Added: 20 Mar 2024 Tags: 2.55, FFC, Weapon, Item, Misc, Generic
Rating[?]: No rating
View Script
Information

Description Setup Reviews Comments

Import the entire header as it's own file; no further setup necessary. (For component setup, see further down).

Some components will need you to drop in:
Mani::FrameCounter();
Somewhere within your global active script.

The entire script header uses the 'Mani' namespace. What this means is that it shouldn't have any issues existing in whatever project you've configured your other scripts for.


Trigger Orb
The FFC needs to be the first out of three combos in a row to display that it's active. The second combo is what will be displayed when a proper weapon type hits it, and the final combo is what it will be switched over to when solved.
FFC Setting: Run script on screen init is needed in order for animation to look good.
Set "Checker" to 1 for the first Trigger Orb you place on the screen, and leave it at 0 for every subsequent.
Set "WeaponType" to the ID number of the weapon that should be able to trigger it (see STD constants if you need a list). If the weapon has it's ->Weapon set, then the Trigger Orb will check that, if not, then it will check that instead


Mani Sword
Stab Type: 0 for Dynamic, 1 for stab only, and 2 for slash only.
Your quest need to enable the quest rule that have item scripts run for more than a single frame.
S_DMG: The amount of damage the charge attack deals. If set to 0 then you can not charge up a spin attack.
Range: 6 to 12 is recommended.
Sprite: You'll need to configure a sprite that is the first out of two tiles in row. The sword graphics need to face right with the tip of the blade being at the very rightmost edge of second tile.
SFX: Stabbing/slashing sound. Set to 0 if you prefer the engine to handle it via the item editor.