Release 1

Part 5 - Motive

Motive is a kind of value. The motives are thrill-killing, disgust, jealousy, personal gain, anger, fear of victim, fear for secondary, mercy killing, compulsion by the gods, self-defense, and protecting others.

The murder motive is a motive that varies.

The secondary person considered is a person that varies.

To choose the murder motive:

DM "Choosing the murder motive.[line break]";

let motive-acceptable be false;

while motive-acceptable is false:

let motive-acceptable be true;

if the murderer dislikes the victim:

if the murderer is p-immoral: [Immoral murderer dislikes the victim]

let L be a random number between 1 and 9;

if L is 1: [thrill-killing]

now the murder motive is thrill-killing;

otherwise if L is 2: [disgust]

now the murder motive is disgust;

otherwise if L is 3: [jealousy]

now the murder motive is jealousy;

otherwise if L is 4: [personal gain]

now the murder motive is personal gain;

otherwise if L is 5: [anger]

now the murder motive is anger;

otherwise if L is 6: [fear of victim]

if the victim dislikes the murderer:

now the murder motive is fear of victim;

otherwise:

let motive-acceptable be false;

otherwise if L is 7: [fear for secondary]

if the murderer likes somebody:

now the murder motive is fear for secondary;

if the murderer likes somebody:

now the secondary person considered is a random person liked by the murderer;

if the victim dislikes the secondary person:

let motive-acceptable be true;

otherwise:

let motive-acceptable be false;

otherwise:

let motive-acceptable be false;

otherwise:

let motive-acceptable be false;

otherwise if L is 8: [compulsion by the gods]

now the murder motive is compulsion by the gods;

otherwise: [self-defense]

if the victim dislikes the murderer:

now the murder motive is self-defense;

otherwise:

let motive-acceptable be false;

otherwise: [Moral murderer dislikes the victim]

let L be a random number between 1 and 5;

if L is 1: [fear of victim]

if the victim dislikes the murderer:

now the murder motive is fear of victim;

otherwise:

let motive-acceptable be false;

otherwise if L is 2: [fear for secondary]

if the murderer likes somebody:

now the murder motive is fear for secondary;

now the secondary person considered is a random person liked by the murderer;

if the victim dislikes the secondary person:

let motive-acceptable be true;

otherwise:

let motive-acceptable be false;

otherwise:

let motive-acceptable be false;

otherwise if L is 3: [compulsion by the gods]

now the murder motive is compulsion by the gods;

otherwise if L is 4: [self-defense]

if the victim dislikes the murderer:

now the murder motive is self-defense;

otherwise:

let motive-acceptable be false;

otherwise: [protecting others]

if the victim is p-immoral:

now the murder motive is protecting others;

otherwise:

let motive-acceptable be false;

otherwise if the murderer likes the victim:

if the murderer is p-immoral: [Immoral murderer likes the victim]

let L be a random number between 1 and 3;

if L is 1: [mercy killing]

now the murder motive is mercy killing;

otherwise if L is 2:

now the murder motive is personal gain;

otherwise: [compulsion by the gods]

now the murder motive is compulsion by the gods;

otherwise: [Moral murderer likes the victim]

let L be a random number between 1 and 2;

if L is 1: [mercy killing]

now the murder motive is mercy killing;

otherwise if L is 2: [compulsion by the gods]

now the murder motive is compulsion by the gods;

otherwise:

if the murderer is p-immoral: [Immoral murderer is neutral to victim]

let L be a random number between 1 and 6;

if L is 1: [thrill-killing]

now the murder motive is thrill-killing;

otherwise if L is 2: [personal gain]

now the murder motive is personal gain;

otherwise if L is 3: [anger]

now the murder motive is anger;

otherwise if L is 4: [fear for secondary]

if the murderer likes somebody:

now the murder motive is fear for secondary;

if the murderer likes somebody:

now the secondary person considered is a random person liked by the murderer;

if the victim dislikes the secondary person:

let motive-acceptable be true;

otherwise:

let motive-acceptable be false;

otherwise:

let motive-acceptable be false;

otherwise:

let motive-acceptable be false;

otherwise if L is 5: [compulsion by the gods]

now the murder motive is compulsion by the gods;

otherwise: [self-defense]

if the victim dislikes the murderer:

now the murder motive is self-defense;

otherwise:

let motive-acceptable be false;

otherwise: [Moral murderer is neutral to victim]

let L be a random number between 1 and 3;

if L is 1: [mercy killing]

now the murder motive is mercy killing;

otherwise if L is 2: [protecting others]

if the victim is p-immoral:

now the murder motive is protecting others;

otherwise:

let motive-acceptable be false;

otherwise: [compulsion by the gods]

now the murder motive is compulsion by the gods;

if motive-acceptable is false:

DM "Came up with an unacceptable motive. Trying again.[line break]";

DM "[murderer]'s motive for killing [victim] was [murder motive][if the murder motive is fear for secondary], where the secondary person involved is [secondary person considered][end if].[line break]".