Crossfire Server, Trunk
ghost Namespace Reference

Functions

def can_talk (player, rule)
 
def check_body (player, rule)
 
def do_angry (ghost)
 
def do_dialog ()
 
def do_disappear ()
 
def do_timer ()
 
def found_body (player, rule)
 
def start_disappear (ghost, player)
 
def warn_player (player, ghost)
 

Variables

string key_angry = 'ghost_angry'
 
string key_disappear = 'ghost_disappear'
 

Detailed Description

This script is part of the Witherspoon quest, that starts in /scorn/mansion/witherspoon_manor_attic.
Check the README file in the same directory as this file for more details.

Script for the ghost in Witherspoon manor (south-east of Scorn).

Function Documentation

◆ can_talk()

def ghost.can_talk (   player,
  rule 
)
Is the ghost angry or disappearing?
Used for the final catch all rule so the ghost doesn't talk when angry or disappearing.

Definition at line 71 of file ghost.py.

Referenced by do_dialog().

+ Here is the caller graph for this function:

◆ check_body()

def ghost.check_body (   player,
  rule 
)
Did the player already dig?

Definition at line 25 of file ghost.py.

◆ do_angry()

def ghost.do_angry (   ghost)

Definition at line 148 of file ghost.py.

Referenced by do_timer().

+ Here is the caller graph for this function:

◆ do_dialog()

def ghost.do_dialog ( )
Main dialog routine.

Definition at line 77 of file ghost.py.

References can_talk(), and start_disappear().

Referenced by do_disappear().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ do_disappear()

def ghost.do_disappear ( )
Ghost is happy, all is fine.

Definition at line 166 of file ghost.py.

References do_dialog(), and do_timer().

Referenced by do_timer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ do_timer()

def ghost.do_timer ( )
Got a timer, what for?

Definition at line 157 of file ghost.py.

References do_angry(), and do_disappear().

Referenced by do_disappear().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ found_body()

def ghost.found_body (   player,
  rule 
)
Does the player have the body?

Definition at line 41 of file ghost.py.

References start_disappear(), and warn_player().

+ Here is the call graph for this function:

◆ start_disappear()

def ghost.start_disappear (   ghost,
  player 
)
ghost should disappear, called for 2 endings.

Definition at line 32 of file ghost.py.

Referenced by do_dialog(), and found_body().

+ Here is the caller graph for this function:

◆ warn_player()

def ghost.warn_player (   player,
  ghost 
)
Ghost is about to become angry, warn the player so she can flee before it's too late!

Definition at line 15 of file ghost.py.

Referenced by found_body().

+ Here is the caller graph for this function:

Variable Documentation

◆ key_angry

string ghost.key_angry = 'ghost_angry'

Definition at line 12 of file ghost.py.

◆ key_disappear

string ghost.key_disappear = 'ghost_disappear'

Definition at line 13 of file ghost.py.