hood.c

nightmare3_fluffos_v2/lib/domains/Praxis/obj/misc/hood.c · 682 B

From the archive nightmare3_fluffos_v2.zip

Download the archive   « Back to the archive contents

//  /domains/Praxis/obj/misc/hood.c
//  A hood for blinding players
//  For the Nightmare mortal law system
//  Created by Manny@Nightmare 940906

#include <std.h>

inherit OBJECT;

create() {
  ::create();
  set_name("hood");
  set_id(({"hood", "black hood" }) );
  set_short("a black hood");
  set_long("A black hood to hide the eyes of victims");
  set_prevent_drop("The hood is securly fastened to your neck");
}

init() {
  ::init();
  if(!living(environment(this_object()))) remove();
  add_action("cmd_look", "look");
  add_action("cmd_look", "peek");
  add_action("cmd_look", "give");
}

cmd_look() {
  message("my_action", "It is too dark.", this_player());
  return 1;
}

Site Stats

Snippets: 1791
Codebases: 571