Player Spell Functions

From Danmakufu Wiki
Jump to: navigation, search

ObjSpell_Create

Returns: object ID (real)

Creates a spell card object.

ObjSpell_Regist

Arguments:
 1) object ID (real)

Invokes the spell card object.

ObjSpell_SetDamage

Arguments:
 1) object ID (real)
 2) damage (real)

Sets the damage of the spell object.

ObjSpell_SetEraseShot

 1) object ID (real)
 2) can delete bullets (bool)

Determines whether the specified spell objects can delete enemy bullets. Defaults to true.

ObjSpell_SetIntersectionCircle

Arguments:
 1) object ID (real)
 2) x-coordinate (real)
 3) y-coordinate (real)
 4) radius (real)

Sets the hit circle for the spell object.

ObjSpell_SetIntersectionLine

Arguments:
 1) object ID (real)
 2) start x-coordinate (real)
 3) start y-coordinate (real)
 4) end x-coordinate (real)
 5) end y-coordinate (real)
 6) line width (real)

Sets the hit line for the spell object.