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