Script:spellcast: Difference between revisions
Jump to navigation
Jump to search
(Created page with "This page describes the <code>spellcast</code> script command. Usage: spellcast -k <spell> spellcast -d[xmsfz] <duration> <level> <spell> <target> spellcast [-xmsfz] <level>...") |
|||
Line 49: | Line 49: | ||
! Script name | ! Script name | ||
|- style="background: #fee" | |- style="background: #fee" | ||
| | | 01 | ||
| Activate portal | | Activate portal | ||
| <code>activate_portal</code> | | <code>activate_portal</code> | ||
|- | |- | ||
| | | 01 | ||
| Douse | | Douse | ||
| <code>douse</code> | | <code>douse</code> | ||
|- | |- | ||
| | | 01 | ||
| Ignite | | Ignite | ||
| <code>ignit</code> | | <code>ignit</code> | ||
|- | |- | ||
| | | 01 | ||
| Magic missile | | Magic missile | ||
| <code>magic_missile</code> | | <code>magic_missile</code> | ||
|- | |- | ||
| | | 01 | ||
| Night vision | | Night vision | ||
| <code>magic_sight</code> | | <code>magic_sight</code> | ||
|- | |- | ||
| 02 | |||
| | |||
| Armor | | Armor | ||
| <code>armor</code> | | <code>armor</code> | ||
|- | |- | ||
| | | 02 | ||
| Detect trap | | Detect trap | ||
| <code>detect_trap</code> | | <code>detect_trap</code> | ||
|- style="background: #fee" | |- style="background: #fee" | ||
| | | 02 | ||
| Harm | | Harm | ||
| <code>harm</code> | | <code>harm</code> | ||
|- | |- | ||
| | | 02 | ||
| Heal | | Heal | ||
| <code>heal</code> | | <code>heal</code> | ||
|- | |- | ||
| | | 02 | ||
| Lower armor | | Lower armor | ||
| <code>lower_armor</code> | | <code>lower_armor</code> | ||
|- | |- | ||
| 03 | |||
| | |||
| Feed | | Feed | ||
| <code>create_food</code> | | <code>create_food</code> | ||
|- | |- | ||
| | | 03 | ||
| Fireball | | Fireball | ||
| <code>fireball</code> | | <code>fireball</code> | ||
|- style="background: #fee" | |- style="background: #fee" | ||
| | | 03 | ||
| Ice projection | | Ice projection | ||
| <code>ice_projectile</code> | | <code>ice_projectile</code> | ||
|- | |- | ||
| | | 03 | ||
| Reveal | | Reveal | ||
| <code>dispell_illusion</code> | | <code>dispell_illusion</code> | ||
|- | |- | ||
| | | 03 | ||
| Speed | | Speed | ||
| <code>speed</code> | | <code>speed</code> | ||
|- | |- | ||
| 04 | |||
| | |||
| Bless | | Bless | ||
| <code>bless</code> | | <code>bless</code> | ||
|- style="background: #fee" | |- style="background: #fee" | ||
| | | 04 | ||
| Curse | | Curse | ||
| <code>curse</code> | | <code>curse</code> | ||
|- | |- | ||
| | | 04 | ||
| Dispel field | | Dispel field | ||
| <code>dispell_field</code> | | <code>dispell_field</code> | ||
|- style="background: #fee" | |- style="background: #fee" | ||
| | | 04 | ||
| Protection from cold | | Protection from cold | ||
| <code>cold_protection</code> | | <code>cold_protection</code> | ||
|- | |- | ||
| | | 04 | ||
| Protection from fire | | Protection from fire | ||
| <code>fire_protection</code> | | <code>fire_protection</code> | ||
|- | |- | ||
| | | 04 | ||
| Telekinesis | | Telekinesis | ||
| <code>telekinesis</code> | | <code>telekinesis</code> | ||
|- | |- | ||
| 05 | |||
| | |||
| Cure effects of poison | | Cure effects of poison | ||
| <code>cure_poison</code> | | <code>cure_poison</code> | ||
|- | |- | ||
| | | 05 | ||
| Levitate | | Levitate | ||
| <code>levitate</code> | | <code>levitate</code> | ||
|- style="background: #fee" | |- style="background: #fee" | ||
| | | 05 | ||
| Poison projection | | Poison projection | ||
| <code>poison_projectile</code> | | <code>poison_projectile</code> | ||
|- | |- | ||
| | | 05 | ||
| Repel undead | | Repel undead | ||
| <code>repel_undead</code> | | <code>repel_undead</code> | ||
|- | |- | ||
| | | 05 | ||
| Trap | | Trap | ||
| <code>rune_of_guarding</code> | | <code>rune_of_guarding</code> | ||
|- | |- | ||
| 06 | |||
| | |||
| Create field | | Create field | ||
| <code>create_field</code> | | <code>create_field</code> | ||
|- | |- | ||
| | | 06 | ||
| Disable trap | | Disable trap | ||
| <code>disarm_trap</code> | | <code>disarm_trap</code> | ||
|- | |- | ||
| | | 06 | ||
| Paralyze | | Paralyze | ||
| <code>paralyse</code> | | <code>paralyse</code> | ||
|- | |- | ||
| | | 06 | ||
| Raise dead | | Raise dead | ||
| <code>raise_dead</code> | | <code>raise_dead</code> | ||
|- style="background: #fee" | |- style="background: #fee" | ||
| | | 06 | ||
| Slow down | | Slow down | ||
| <code>slowdown</code> | | <code>slowdown</code> | ||
|- | |- | ||
| 07 | |||
| | |||
| Confuse | | Confuse | ||
| <code>confuse</code> | | <code>confuse</code> | ||
|- | |- | ||
| | | 07 | ||
| Fire field | | Fire field | ||
| <code>fire_field</code> | | <code>fire_field</code> | ||
|- | |- | ||
| | | 07 | ||
| Flying eye | | Flying eye | ||
| <code>flying_eye</code> | | <code>flying_eye</code> | ||
|- style="background: #fee" | |- style="background: #fee" | ||
| | | 07 | ||
| Ice field | | Ice field | ||
| <code>ice_field</code> | | <code>ice_field</code> | ||
|- | |- | ||
| | | 07 | ||
| Lightning projection | | Lightning projection | ||
| <code>lightning_strike</code> | | <code>lightning_strike</code> | ||
|- | |- | ||
| 08 | |||
| | |||
| Chaos | | Chaos | ||
| <code>explosion</code> | | <code>explosion</code> | ||
|- | |- | ||
| | | 08 | ||
| Enchant object | | Enchant object | ||
| <code>enchant_weapon</code> | | <code>enchant_weapon</code> | ||
|- | |- | ||
| | | 08 | ||
| Invisibility | | Invisibility | ||
| <code>invisibility</code> | | <code>invisibility</code> | ||
|- style="background: #fee" | |- style="background: #fee" | ||
| | | 08 | ||
| Life drain | | Life drain | ||
| <code>life_drain</code> | | <code>life_drain</code> | ||
|- | |- | ||
| | | 08 | ||
| Mana drain | | Mana drain | ||
| <code>mana_drain</code> | | <code>mana_drain</code> | ||
|- style="background: #fee" | |- style="background: #fee" | ||
| | | 09 | ||
| (internal) | | (internal) | ||
| <code>fake_summon</code> | | <code>fake_summon</code> | ||
|- | |- | ||
| | | 09 | ||
| Incinerate | | Incinerate | ||
| <code>incinerate</code> | | <code>incinerate</code> | ||
|- | |- | ||
| | | 09 | ||
| Mass paralyze | | Mass paralyze | ||
| <code>mass_paralyse</code> | | <code>mass_paralyse</code> | ||
|- | |- | ||
| | | 09 | ||
| Negate magic | | Negate magic | ||
| <code>negate_magic</code> | | <code>negate_magic</code> | ||
|- | |- | ||
| | | 09 | ||
| Summon | | Summon | ||
| <code>summon_creature</code> | | <code>summon_creature</code> | ||
|- | |- | ||
| 10 | | 10 | ||
Line 284: | Line 248: | ||
| Slow time | | Slow time | ||
| <code>freeze_time</code> | | <code>freeze_time</code> | ||
|- style="background: #fee" | |- style="background: #fee" | ||
| | | |
Revision as of 21:05, 10 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 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 |
---|---|---|
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) |