Everything2
Near Matches
Ignore Exact
Full Text
Everything2

LPC

created by WWWWolf

(thing) by Noung (51 s) (print)   ?   (I like it!) 1 C! Sun May 27 2001 at 13:00:46

LPC is an object building language created by the author of the original LPMud server, standing for Lars Pensjö C. Structurally, it is much like the more popular programming language C. Designed with LPMud object building specifically in mind, it puts the power of game building in the hand of the general user.

LPMuds allow you to change old objects and add new ones while the game is running.

List of LPC keywords -
for, if, while, switch, case, foreach, int, float, string, void, class, mapping, object, mixed, varargs, nomask, static, private, public, inherit.

Pre-compiler directives are -
#define, #undefine, #include, #ifdef, #ifndef, #if, #elseif, #else, #endif, #pragma.

Finally, a Hello World program in LPC, showing how similar it is to C-

inherit "/std/object.c";

void create()
{
  set_name("object");
  set_id("object");
  set_short("An object");
  set_long("This is an object.  You can push it.\n");
  set_weight(1);
  set_light(1);
  set_value(1);
}

void init()
{
  add_action("do_push","push");
}

int do_push()
{
  write("The object says: Hello world!\n");
  return 1;
}
This may vary from MUD to MUD depending on the Mudlib in use, but this is pretty generic for all LPMUDs.

printable version
chaos

LPMUD LPC basic manual table of contents cultural lag Core 2652
sprintf DikuMud Less Than Jake CodeCommander
Midian Fourier analysis LPC Basic manual chapter 3 MUDlib
BatMud Don't kill your invisible husband to see what he looks like or you'll sob your heart out. But don't worry about the millions of invisible men coming to attack your village because they won't kill you if you don't know how to fight them. MUD programming language
Quadra C lpt on fire LPC Basic manual chapter 2
Apocrypha: The Secret Books of Judaism and Christianity BVC Switch ICP
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Nodes to live by:
Pyrrho of Elis
Truman Capote
Polar bear
Wuthering Heights
Do you take it I would astonish? Does the daylight astonish?
Mohs hardness scale
This is this. This is not something else.
Sun Tzu in residential Canton Township
A Tail of Two Monkeys
Body Farm
What I'm trying to say is that I may have unconsciously plagiarized this
Noah Webster
Software development is not an engineering discipline
New Writeups
SwimmingMonkey
Conversations with Fo Fo- the Loneliest dog in Purgatory(fiction)
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
calgon
Buffalo Bill by the pool(poetry)
gate
Anarchy is Order(idea)
ushdfgakjasgh
Scribeling(thing)
XWiz
Trism(review)
artman2003
Briefcase Full of Souls - Part I(fiction)
Dreamvirus
Alan Ladd(person)
waverider37
Harold Holt(person)
The Debutante
Until death do us part(fiction)
Ysardo
a brother to a sister(personal)
This affordable entertainment brought to you by The Everything Development Company