Script:spellcast: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
Line 44: Line 44:


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


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

Revision as of 00:50, 19 July 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

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

Spell Level Script name
Activate portal 1 activate_portal
Douse 1 douse
Ignite 1 ignit
Magic missile 1 magic_missile
Night vision 1 magic_sight
Armor 2 armor
Detect trap 2 detect_trap
Harm 2 harm
Heal 2 heal
Lower armor 2 lower_armor
Feed 3 create_food
Fireball 3 fireball
Ice projection 3 ice_projectile
Reveal 3 dispell_illusion
Speed 3 speed
Bless 4 bless
Curse 4 curse
Dispel field 4 dispell_field
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
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
Slow down 6 slowdown
Confuse 7 confuse
Fire field 7 fire_field
Flying eye 7 flying_eye
Ice field 7 ice_field
Lightning projection 7 lightning_strike
Chaos 8 explosion
Enchant object 8 enchant_weapon
Invisibility 8 invisibility
Life drain 8 life_drain
Mana drain 8 mana_drain
(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
Mega