Next Previous Contents

7. Internal interaction Dils

7.1 The Death function

Making this Dil will replace all that happens when a player is killed. The VME staff will release their death code as soon as it has been well tested. For now you can give it a shot if you wish the following is the Dil header that you have to use. If you put this as is in your mud it will make it so no one can die. The death Dil must be placed in the basis.zon in order for it to take affect.

Example: Death Dil header


dilbegin death (arg:string);
code
{
sendtext ("You died but we don't care.&n",self);
quit;
}
dilend

7.2 The Link Dead function

This Dil has been provided with the VME 2.0 release and it allows you as an Administrator to do anything with a player you wish when they go link dead. Even tot he extent of just leaving them in the game as if they never lost their link. The example below does exactly that. For a better linkdead function you can look up the one used in the release in the basis.zon The linkdead function must be in the basis.zon in order for it to take affect.

Example Link Dead



dilbegin aware link_dead();
code
{
sendtext("You are now a NPC while your human is gone.&n",self);
quit;
}
dilend

7.3 The On Connect function

This function is what shows the start up menu or not when you log onto the VME. You now can do what ever you like when a player logs on. This Dil has been included in the VME 2.0 release in the basis.zon with all the other interaction dils the on_connect function must be in basis.zon. The following Dil just logs you on with a single message and no menus at all.

Example: On connect



dilbegin aware on_connect();
code
{
  gamestate(self, GS_PLAY);
  if(err > 0)
        sendtext("&n"+welcome+"&n&n", self);
  exec("look", self);
  quit;
}

destroy(self);
}
dilend


Next Previous Contents