Script:spellcast

From Arx Libertatis Wiki
Jump to: navigation, 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 (used for fields in the game world, making sure they appear already casted upon game load)

Parameters:

Parameter Type Description
<duration> real Spell duration in milliseconds
<level> int in [1,10] Spellcaster level to cast the spell at
<spell> text Spell script name - see table below
<target> entity Spell target

Spell Names

SpellLevelScript name
Teleport0
Mega cheat0
Magic missile1magic_missile
Night vision1magic_sight
Douse1douse
Ignite1ignit
Activate portal1activate_portal
Harm2harm
Lower armor2lower_armor
Heal2heal
Detect trap2detect_trap
Armor2armor
Reveal3dispell_illusion
Ice projection3ice_projectile
Speed3speed
Feed3create_food
Fireball3fireball
Dispel field4dispell_field
Protection from fire4fire_protection
Curse4curse
Telekinesis4telekinesis
Protection from cold4cold_protection
Bless4bless
Repel undead5repel_undead
Levitate5levitate
Poison projection5poison_projectile
Trap5rune_of_guarding
Cure effects of poison5cure_poison
Slow down6slowdown
Disable trap6disarm_trap
Create field6create_field
Raise dead6raise_dead
Paralyze6paralyse
Ice field7ice_field
Confuse7confuse
Lightning projection7lightning_strike
Flying eye7flying_eye
Fire field7fire_field
Enchant object8enchant_weapon
Chaos8explosion
Invisibility8invisibility
Life drain8life_drain
Mana drain8mana_drain
Mass paralyze9mass_paralyse
Incinerate9incinerate
Negate magic9negate_magic
Fake summon9fake_summon
Summon9summon_creature
Slow time10freeze_time
Control demon10control
Mass lightning projection10mass_lightning_strike
Mass incinerate10mass_incinerate