conventions.txt

gmc/conventions.txt · 1.1 KB

From the archive grendel040rc2.zip

Download the archive   « Back to the archive contents

* General conventions for using GMC 1.0 with Grendel *


void onTick(external ch)
 - is called every second

void onAct(external ch, external target, string arg)
 - is called whenever 'ch' receives some action 'arg' from 'target'
 
void onFight(external ch, external target)
 - is called every fight tick
 
void onDeath(external ch, external target)
 - is called when 'ch' dies at the hands of 'target'

void onReset(external ch)
 - is called when 'ch' resets
 
void onGive(external ch, external target, external obj)
 - is called when 'target' gives 'obj' to 'ch'
 
bool onBlock(external ch, external target)
 - is called when 'target' tries to leave a room with 'ch' blocking
 
void onEmoteTarget(external victim, external actor, string arg)
 - is called when (e.g.) mob is target of an emote (e.g. 'slap <mobname>');
   'victim' is the target, e.g. the mob; 'actor' the person executing the emote
   (you, when you slap a mob); 'arg' will contain the emotename (Name:-field from
   system\socials.dat) (e.g. 'SLAP' when entry point action the default emote
   handling (as defined in checkSocial() in mudsystem.pas) will not be executed.

Site Stats

Snippets: 1791
Codebases: 571