spell_cast.l

tmi2_fluffos_v2/lib/doc/functions/lfuns/spell_cast.l · 1.3 KB

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

SPELL_CAST()      MISC. REFERENCE MANUAL PAGES       SPELL_CAST()

NAME
     spell_cast() - initialize a monster as a spellcaster

SYNOPSIS
     void spell_cast (string spell, int chance) ;

DESCRIPTION
     The spell_cast() lfun is defined in /std/monster.c. It takes
     two  arguments; the first is the name of a spell to cast and
     the second is the chance of casting that spell in any  given
     combat   round.  The  monster  will  not  do  anything  when
     spell_cast is called - it only initialized  the  appropriate
     properties. When the monster finds itself in combat, it will
     randomly choose to make a meelee attack or  cast  the  named
     spell  based on the given chance of casting the spell.  Mon-
     sters have access to the same  spells,  and  only  the  same
     spells,  as  players do, due to TMI's egalitarian beliefs in
     monster rights. :) If  you  want  to  code  monster-specific
     spells,    you   will   have   to   recode   the   monster's
     continue_attack function a little bit. This is  a  candidate
     for  being  done in future releases of the TMI-2 lib but has
     not been done as yet.

SEE_ALSO
     /cmds/std/_cast.c, /std/monster.c.

AUTHOR
     Mobydick@TMI-2


TMI-2 Release 0.9         Last change:                   4-2-93

Site Stats

Snippets: 1791
Codebases: 571