scry.c

./lib/skills/mage/scry.c · 727 B

From the archive h7v3.0a.tar.gz

Download the archive   « Back to the archive contents

/* Scry */

status scry(string str, mixed alt_type) {
  int level;

  if(!alt_type) alt_type = "divination";
  level = (objectp(alt_type))
        ? (int)alt_type->query_cast_level() 
        : (int)call_other(this_player(),"query_"+alt_type);

  this_player()->load_spell(({
  "target",            environment(this_player()),
  "name",              "Scry",
  "sphere",            alt_type, 
  "cost",              12,
  "damage",            level,
  "immune",            "divination",
  "level",             12,
  "cast time",         1,
  "spell object",      "skills/obj/scryer",
  "argument",          str,
   "component",        "gem#gemstone",
  "passive",
  }));
  return 1;
}

/* Native Mode Move */

#include <move.h>

Site Stats

Snippets: 1791
Codebases: 571