Mudlib base

Documentation for the clusters-base functions for the mudlib in /std/behaviour/clusters/base.c.

Functions

void neutralize_emotion(int emotion)

Neutralize an emotion by one point. This is useful for calming down an NPC.

void mod_emotion(int emotion, int mod)

Function for modifying the behavior of the brainee. Examples:

orc->mod_emotion("rage",3);
orc->mod_emotion("ter",2);

Are valid examples. Emotion names can be abbreviated to first 3 letters, or you can use integers as per defined in behaviour.h.

void set_emotion(int emotion, int value)

Function for setting a specific emotion. This sets the emotion to this value and doesn’t raise it above the given value. Examples:

orc->set_emotion("rage",3);
orc->set_emotion("ter",2);

Are valid examples. Emotion names can be abbreviated to first 3 letters, or you can use integers as per defined in behaviour.h.

File generated by Lima 1.1a4 reStructured Text daemon.