Five Gods Exiled — 119 of 191

Carolyn VanEseltine

Release 1

Part 7 - Monster Locator

A monster is a kind of thing.

The located monster list is a list of monsters that varies.

The located monster text is an indexed text that varies.

To locate monsters for the player:

say "The power of the orb, channeled through the shrine, flows into you. You are part of the world, and its senses are yours....[line break]";

let K be 0;

now the located monster list is {};

repeat with target monster running through monsters in the Blight:

now the current room is the location of the target monster;

[ say "(Target monster: [target monster])";]

let L be 0;

repeat with temporary monster running through monsters in the current room:

now L is L + 1;

repeat with temporary monster running through monsters in the current room:

now the current monster is the temporary monster;

if (the number of entries in the permitted directions list of the current room is 1) or (the number of entries in the permitted directions list of the current room is 2):

if L < 3:

now the located monster text is "At a [display name of the current room], there is [a current monster]." in sentence case;

otherwise:

now the located monster text is "At a [display name of the current room], there are [a list of monsters in the current room]." in sentence case;

otherwise:

if L < 3:

now the located monster text is "[display name of the current room], there is [a current monster]." in sentence case;

otherwise:

now the located monster text is "[display name of the current room], there are [a list of monsters in the current room]." in sentence case;

if the current monster is not listed in the located monster list:

say "[located monster text][line break]";

add the current monster to the located monster list;

now K is K + 1;

if K is 0:

if the shadow self is in a Blight room or the shadow self is in a shrine room:

say "Aside from your shadow, you sense no intrusions of the exiled world upon the blighted world.";

otherwise:

say "The blighted world is calm and barren.";

otherwise:

say "Aside from your shadow, you sense no further intrusions of the exiled world upon the blighted world."