onGreet2.c

grendel-1.0.0a7/progs/examples/onGreet2.c · 254 B

From the archive grendel-1.0.0a7.zip

Download the archive   « Back to the archive contents

void onGreet(external ch, external target)
{ 
  string title;

  if(target.sex == 0)
  {
    title = "Sir";
  }
  else
  if(target.sex == 1)
  {
    title = "my Lady";
  }
  else
  {
    title = "";
  }

  do("say Welcome " + title);
}

Site Stats

Snippets: 1791
Codebases: 571