Script:spellcast: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
Line 43: Line 43:
== Spell Names ==
== Spell Names ==


The following names are recognized for the <code><spell></code> argument:
{{#ask:[[Category:Spells]]
{| class="wikitable sortable center_1 code_2"
|?Spell level=Level
! Spell
|?Script name=Script name
! Level
|format=table
! Script name
|offset=0
|- style="background: #fee"
|limit=500
| Activate portal || 1 || activate_portal
|mainlabel=Spell
|-
|sort=spell level
| Douse || 1 || douse
|order=ASC
|-
|class=sortable wikitable smwtable center_1 code_2
| Ignite || 1 || ignit
}}
|-
| Magic missile || 1 || magic_missile
|-
| Night vision || 1 || magic_sight
|-
| Armor || 2 || armor
|-
| Detect trap || 2 || detect_trap
|- style="background: #fee"
| Harm || 2 || harm
|-
| Heal || 2 || heal
|-
| Lower armor || 2 || lower_armor
|-
| Feed || 3 || create_food
|-
| Fireball || 3 || fireball
|- style="background: #fee"
| Ice projection || 3 || ice_projectile
|-
| Reveal || 3 || dispell_illusion
|-
| Speed || 3 || speed
|-
| Bless || 4 || bless
|- style="background: #fee"
| Curse || 4 || curse
|-
| Dispel field || 4 || dispell_field
|- style="background: #fee"
| Protection from cold || 4 || cold_protection
|-
| Protection from fire || 4 || fire_protection
|-
| Telekinesis || 4 || telekinesis
|-
| Cure effects of poison || 5 || cure_poison
|-
| Levitate || 5 || levitate
|- style="background: #fee"
| Poison projection || 5 || poison_projectile
|-
| Repel undead || 5 || repel_undead
|-
| Trap || 5 || rune_of_guarding
|-
| Create field || 6 || create_field
|-
| Disable trap || 6 || disarm_trap
|-
| Paralyze || 6 || paralyse
|-
| Raise dead || 6 || raise_dead
|- style="background: #fee"
| Slow down || 6 || slowdown
|-
| Confuse || 7 || confuse
|-
| Fire field || 7 || fire_field
|-
| Flying eye || 7 || flying_eye
|- style="background: #fee"
| Ice field || 7 || ice_field
|-
| Lightning projection || 7 || lightning_strike
|-
| Chaos || 8 || explosion
|-
| Enchant object || 8 || enchant_weapon
|-
| Invisibility || 8 || invisibility
|- style="background: #fee"
| Life drain || 8 || life_drain
|-
| Mana drain || 8 || mana_drain
|- style="background: #fee"
| (internal) || 9 || fake_summon
|-
| Incinerate || 9 || incinerate
|-
| Mass paralyze || 9 || mass_paralyse
|-
| Negate magic || 9 || negate_magic
|-
| Summon || 9 || summon_creature
|-
| Control demon || 10 || control
|-
| Mass incinerate || 10 || mass_incinerate
|-
| Mass lightning projection || 10 || mass_lightning_strike
|-
| Slow time || 10 || freeze_time
|- style="background: #fee"
| Mega || ||
|}


[[Category:Script:Commands]]
[[Category:Script:Commands]]

Revision as of 03:40, 15 November 2012

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

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