Script SpellcastComponents
Components
Components
- excludeFromSpellTargetCount
- spellGrant
-
- name constant string (default "")
- spellcast
- spellcastAggroAllEnemies
- spellcastChainCast
-
default:
{}
- spells constant table
- spellcastCharm
- spellcastClearObstacles
-
Tries really hard to clear all obstacles from the target area
- damage constant int (default 999)
- type constant int (default damage.Type.SPECIAL)
- spellcastCone
-
- distance constant int (default 0)
- spellcastConvertItems
- spellcastConvertTiles
-
- types
constant table
default:{}
- default constant string (default "")
- types
- spellcastCreateWalls
-
- wallType constant string (default "")
- collisionMask constant int (default 0)
- spellcastCurseHealth
- spellcastDescent
-
- type constant int (default descent.Type.RHYTHM)
- spellcastDespawnCaster
-
- delay constant float (default 0)
- spellcastDestroyCurrency
-
- type constant string (default currency.Type.GOLD)
- requirePoverty constant bool (default false)
- spellcastDestroyItems
- spellcastDestroyTraps
- spellcastDestroyWalls
-
- strength constant int (default 4)
- silent constant bool (default false)
- probability constant float (default 1)
- spellcastDestroyWire
- spellcastDirectionalOffset
-
- distance constant int (default 0)
- spellcastEnchantWeapon
- spellcastFlyaway
-
- text constant localizedString (default 0)
- offsetY constant int (default 0)
- spellcastFlyawayTargets
-
- text constant localizedString (default 0)
- offsetY constant int (default 0)
- attackFlags constant int (default attack.FlagGroup.SPELL)
- spellcastGlobal
- spellcastGrantBarrier
-
- turns constant int (default 0)
- spellcastGrantCurrency
-
- type constant string (default currency.Type.GOLD)
- amount constant int (default 0)
- spellcastGrantInvincibility
-
- turns constant int (default 0)
- spellcastGrantRandomItem
-
- slot constant string (default "")
- chanceType constant string (default "need")
- spellcastHeal
-
- health constant int (default 0)
- maxHealth constant int (default 0)
- cursedHealth constant int (default 0)
- invincibility constant int (default 1)
- overheal constant bool (default false)
- silent constant bool (default false)
- noParticles constant bool (default false)
- spellcastHealCasterPerTarget
-
- health constant int (default 2)
- spellcastHopInPlace
- spellcastIgnoreTiles
-
- collisionMask constant int (default 0)
- spellcastInflictConfusion
-
- turns constant int (default 0)
- attackFlags constant int (default attack.FlagGroup.SPELL)
- spellcastInflictDamage
-
- attackFlags constant int (default attack.mask(attack.Flag.DEFAULT)
- damage constant int (default 0)
- type constant int (default damage.Type.MAGIC)
- silentHit constant bool (default false)
- orthogonalize constant bool (default false)
- useCastDirection constant bool (default false)
- spellcastInflictEarthquake
-
- damage constant int (default 0)
- spellcastInflictFreeze
-
- turns constant int (default 0)
- attackFlags constant int (default attack.FlagGroup.SPELL)
- type constant int (default freeze.Type.ICE)
- spellcastInflictInnateDamage
-
Uses the properties of the caster’s innateAttack
- attackFlags constant int (default attack.Flag.DEFAULT)
- type constant int (default damage.Type.SPECIAL)
- spellcastInflictStatusEffect
-
- component constant string (default "")
- turns constant int (default 0)
- spellcastKillCaster
- spellcastKnockback
-
- attackFlags constant int (default attack.Flag.CHARACTER)
- distance constant int (default 1)
- moveType constant int (default move.Flag.mask(move.Type.KNOCKBACK)
- beatDelay constant int (default 0)
- spellcastLinear
-
- collisionMask constant int (default collision.mask(collision.Group.WEAPON_CLEARANCE))
- minDistance constant int (default 1)
- maxDistance constant int (default 100)
- singleTarget constant int (default 0)
- extraSwipeTile constant bool (default false)
- spellcastModifySize
-
- size constant int (default 0)
- turns constant int (default 0)
- spellcastMulticast
-
- castCount constant int (default 0)
- rotation constant int (default 0)
- spellcastParticles
-
- component constant string (default "particleSplash")
- spellcastRadial
-
- radius constant float (default 0)
- minDistance constant float (default 0)
- spellcastRectangular
-
- offsetX constant int (default 0)
- offsetY constant int (default 0)
- width constant int (default 1)
- height constant int (default 1)
- spellcastRequireTargetForFX
- spellcastRevealAllEnemies
- spellcastScreenFlashGlobal
- spellcastScreenFlashTargets
- spellcastScreenShake
-
- range constant int (default 0)
- intensity constant int (default 0)
- spellcastSetHealth
-
- health constant int (default 1)
- spellcastShrineEffects
-
- shrine constant string (default "")
- spellcastSpawnApplyDirection
- spellcastSpawnBombs
- spellcastSpawnEntity
-
- name constant string (default "")
- skipCasterPosition constant bool (default false)
- attemptOffsets
constant table
default:{{0, 0}}
- collisionMask constant int (default collision.Group.SOLID)
- attributes
constant table
default:{}
- distance constant int (default 0)
- diagonalDistanceMalus constant int (default 0)
- spellcastTargetCaster
- Targeting components
- spellcastTargetHome
-
- outset constant int (default 0)
- spellcastTargetTiles
-
default:
{}
- offsets constant table
- spellcastTeleport
-
Teleport components
- attackFlags constant int (default attack.Flag.mask(attack.FlagGroup.SPELL)
- moveType constant int (default move.Type.TELEPORT)
- extraCollision constant int (default 0)
- ignoreCollision constant int (default 0)
- spellcastTeleportAvoidHostileEntities
-
- teamBypass constant int (default team.Id.PLAYER)
- minimumDistance constant int (default 2)
- spellcastTeleportIgnore
-
- component constant string (default "")
- spellcastTeleportMaximizeDistance
-
- limit constant int (default 8)
- spellcastTeleportToHome
- spellcastTeleportToMarker
-
- markerType constant int (default 0)
- offsetX constant int (default 0)
- offsetY constant int (default 0)
- spellcastTeleportToSegment
-
- segment constant int (default 1)
- spellcastTextOverlay
-
- text constant localizedString (default 0)
- spellcastTransform
- spellcastUpgradable
-
default:
{}
- upgradeTypes constant table
- spellcastUseFacingDirection
- spellcastVocalize
-
Makes the targets play the given voice component
- component constant string (default "")