[Package Index | Mudlib Index | Effect Index]
File /obj/handlers/gossip_handler.c
Deals out random gossip to people who request it.
Add rumours!
Written by Pinkfish
Includes
This class includes the following files /include/gossip.hMethod index
Public Functions
These are functions that everyone can access.
-
add_gossip
void add_gossip(string name,
string mess)
Add a juicy bit of gossip. This is called by ethe gossip
effects on the npcs.
- Parameters:
name - the person who said the gossip
mess - what they said
- See also:
/std/effect/npc/gossip.c
-
add_rumour
void add_rumour(string name,
string mess)
Rumours are another method of dealing out gossip.
Rumours are added by creators...
- Parameters:
name - the name of the person saying the rumour
mess - the rumour message
-
query_filter
string * query_filter()
The current words we are filtering. If any of these words are in the
gossip, we filter it out and do not save it.
- Returns:
the current filter array
-
query_gossip
mixed * query_gossip()
Tell us all the gossip. This returns the complete
array of gossip which the npcs are drawing from.
- Returns:
an array of two element arrays
- See also:
query_random_gossip()
-
query_random_gossip
string * query_random_gossip()
Returns a random piece of gossip. Finds a random bit of juicy
gossip and returns it. The first element of the returned
array is the person who said the gossip and the second bit is
what they said.
- Returns:
a two element array containing the gossip
-
query_rumours
mixed * query_rumours()
All of the current rumours.
- Returns:
an array of teo element arrays
- See also:
query_random_gossip()
-
remove_gossip
varargs string remove_gossip(string match,
int force)
Sometimes you just gotta remove some gossip
-
remove_rumour
varargs string remove_rumour(string match,
int force)