Spell Card

From LuaSTG Wiki
Jump to navigation Jump to search

A spell card node defines a spell card of a certain boss. More precisely, the node defines an attack, since both non-spells and spells can be created this way.


Create a Spell Card Node[edit | edit source]

A spell card node must be inserted under a define boss node. A spell card node must be a child node of a define boss node. Click on the currently existing define boss node before clicking the spell card node icon to insert the node into the script.


Parameters[edit | edit source]

Here is a list of parameters of spell card node.

Parameters Function
Name (string without quotations) The name of the spell. If left as empty, the attack is treated as a non-spell
Protect time (number) The invincibility time at the beginning of the spell. The unit is in seconds. This parameter will be trimmed to an integer, as the mantissa part will be discarded
DMG redu. time (number) The time when the boss will receive only a portion of the damage from the player. This includes the invincibility time. The unit is in seconds. This parameter will be trimmed to an integer, as the mantissa part will be discarded
Total time (number) total time of the spell. The unit is in seconds. This parameter will be trimmed to an integer, as the mantissa part will be discarded
Hit point (number) HP of the spell
Drop power (number) number of power items to be dropped when the spell is over
Drop faith (number) number of faith items to be dropped when the spell is over
Drop point (number) number of point items to be dropped when the spell is over
Immune to bomb (boolean) If true, the boss is immune to player bombs during this spell

Note Protect time <= DMG redu. time <= Total time must be true, otherwise the game will issue an error when the script is run.

For Drop power/faith/point, the items will still be dropped if the spell is timed out.

Damage Reduction[edit | edit source]

In damage reduction period, the boss only receives a portion of player damage.

The damage reduction period starts when the invincibility time ends, and stops when the damage reduction time ends. During this period, the percentage of damage the boss receives from player attack increases steadily from 0 to 100%. If Protect time is equal to DMG redu. time, then the boss will go directly from invincible to receive 100% damage.