precast

From Arx Libertatis Wiki
Revision as of 18:05, 16 June 2022 by Ds (talk | contribs) (Created page with "{{ScriptCommandPage |description=add a spell to the player's precast list |context=any |flags= d Specify a spell duration - otherwise the duration is <code>2 + <level> * 2</code> seconds f No mana cost, no checks |parameters= d?duration int* Spell duration in milliseconds level int*[1,10] Spellcaster level to cast the spell at spell string Spell script name |intro=The will always be the player but the caster level...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The precast script command is used to add a spell to the player's precast list for an entity. The will always be the player but the caster level is passed as a parameter. If the player already has the maximum number of precast spells then the oldest precast spell will be removed.

Usage

precast [-df] [d?duration*] <level*> <spell>

Context: Any Entity

Flags:

 -d: Specify a spell duration - otherwise the duration is 2 + <level> * 2 seconds
 -f: No mana cost, no checks

Parameters:

ParameterTypeDescription
duration (requires -d) int or variable Spell duration in milliseconds
level int or variable [1,10] Spellcaster level to cast the spell at
spell string Spell script name

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