/* updated jan 94 - uses shadow of short() & move_player() */

status hide(mixed arg, string alt_type) {
  object ob;

  if(arg != "in shadows") {
    notify_fail("hide in shadows?\n");
    return 0;
  }
  if((ob = (object)this_player()->query_hide_in_shadows_object())) {
    write("You move out of the shadows...\n");
    say(this_player()->query_name() +" suddenly appears.\n");
    destruct(ob);
  }
  else {
    if((ob = (object)this_player()->query_primary_attack())
    && present(ob, environment(this_player()))) {
      write(ob->query_name() +" laughs as you try to hide.\n");
      return 1;
    }
    write("You attempt to hide in the shadows...\n");
    clone_object("obj/shadows/hider")->shadow_short(alt_type);
  }
  return 1;
}

/* Native Mode Move */

#include <move.h>
