gallows.c

nightmare3_fluffos_v2/lib/domains/Praxis/obj/misc/gallows.c · 943 B

From the archive nightmare3_fluffos_v2.zip

Download the archive   « Back to the archive contents

// /domains/Praxis/obj/misc/gallows.c
//  Gallows for the Nightmare Mortal Law system
//  Written by Manny@Nightmare  940823

#include <std.h>

object hangman;
void set_hangman(object who);

inherit OBJECT;

create() {
  ::create();
  set_name("gallows");
  set_id( ({ "gallows", "noose", "platform" }) );
  set_short("the gallows");
  set_long( (: "long_func" :) );
  set_prevent_get("You cannot get that!");
}

string long_func() {
  string str, name;
  
  str = "A large wooden platform with two upright timbers and "
    "a crossbeam with a rope and noose.";
  if(hangman) {
    if(name = present("the corpse of "+hangman->query_name(),
        environment(this_object())))
      str += "\n"+name+" is hanging from the noose.";
    else str += "\n"+hangman->query_cap_name()+" is standing "
      "upon the platform, noose around "+hangman->query_possessive()+" neck.";
  }
  return str;
}

void set_hangman(object who) { hangman = who; }

Site Stats

Snippets: 1791
Codebases: 571