Script:spellcast

From Arx Libertatis Wiki
Jump to navigation Jump to search

This page describes the spellcast script command.

Usage:

spellcast -k <spell>
spellcast -d[xmsfz] <duration> <level> <spell> <target>
spellcast [-xmsfz] <level> <spell> <target>

The spell caster is always the current IO.

Flags:

  • -k: Abort the first instance of the given spell for this caster
  • -d: Specify a spell duration - otherwise the duration is 1000 + <level> * 2000 ms
  • -x: No sound
  • -m: Not drawn, no checks
  • -s: No animation, no checks
  • -f: No mana cost, no checks
  • -z: Restore

Parameters:

Parameter Type Description
<duration> float Spell duration in milliseconds
<level> long in [1,10] Spellcaster level to cast the spell at
<spell> string Spell script name - see table below
<target> object Spell target

Spell Names

The following names are recognized for the <spell> argument:

Level Spell Script name
01 Activate portal activate_portal
01 Douse douse
01 Ignite ignit
01 Magic missile magic_missile
01 Night vision magic_sight
02 Armor armor
02 Detect trap detect_trap
02 Harm harm
02 Heal heal
02 Lower armor lower_armor
03 Feed create_food
03 Fireball fireball
03 Ice projection ice_projectile
03 Reveal dispell_illusion
03 Speed speed
04 Bless bless
04 Curse curse
04 Dispel field dispell_field
04 Protection from cold cold_protection
04 Protection from fire fire_protection
04 Telekinesis telekinesis
05 Cure effects of poison cure_poison
05 Levitate levitate
05 Poison projection poison_projectile
05 Repel undead repel_undead
05 Trap rune_of_guarding
06 Create field create_field
06 Disable trap disarm_trap
06 Paralyze paralyse
06 Raise dead raise_dead
06 Slow down slowdown
07 Confuse confuse
07 Fire field fire_field
07 Flying eye flying_eye
07 Ice field ice_field
07 Lightning projection lightning_strike
08 Chaos explosion
08 Enchant object enchant_weapon
08 Invisibility invisibility
08 Life drain life_drain
08 Mana drain mana_drain
09 (internal) fake_summon
09 Incinerate incinerate
09 Mass paralyze mass_paralyse
09 Negate magic negate_magic
09 Summon summon_creature
10 Control demon control
10 Mass incinerate mass_incinerate
10 Mass lightning projection mass_lightning_strike
10 Slow time freeze_time
Mega (none)