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