Book 3 - Invoking
Part 1 - Invocation
Definition: An orb is activated if it is in a shrine statue.
Definition: An orb is inactive if it is not in a shrine statue.
Definition: A shrine statue is activated if it encloses an orb.
Definition: A shrine statue is inactive if it does not enclose an orb.
Definition: A shrine room is activated if it encloses an activated orb.
Definition: A shrine room is inactive if it does not enclose an activated orb.
Invoking is an action applying to one visible thing. Understand "invoke [something]", "focus [something]", "focus on [something]", "concentrate on [something]", "concentrate [something]", "meditate [something]", "meditate on [something]", "pray [something]", and "pray to [something]" as invoking.
Does the player mean invoking a shrine statue: it is very likely.
The current shrine statue is a shrine statue that varies.
The current orb is an orb that varies.
Exile access is a truth state that varies. Exile access is false.
Check invoking:
if the noun is not a shrine statue and the noun is not an orb:
say "You don't know how to invoke any power in [the noun]." instead;
if the noun is an orb and the noun is inactive:
say "You try to invoke the power of [the noun], but you can't seem to grasp its power. It is energy, but undirected energy";
if the location is a shrine room:
say ".[paragraph break]Out of the corner of your eye, you see the statue's hand move slightly." instead;
otherwise:
say ". You must find a place where it can be directed." instead;
if the noun is a shrine statue and the noun is inactive:
say "You try to invoke the power of [the noun], but your thoughts have no power outside your head";
if the player has an orb:
say ".[paragraph break]From the corner of your eye, you see the orb in your hand flash faintly." instead;
otherwise:
say ". A source of energy is needed." instead;
if the noun is a shrine statue:
now the current shrine statue is the noun;
now the current orb is a random orb in the shrine statue;
otherwise if the noun is an orb:
now the current orb is the noun;
now the current shrine statue is a random shrine statue in the location;
say "You focus upon the [current orb] and clear your mind. ";
if the current shrine statue is known:
say "Activate this shrine of [shrine deity of the current shrine statue]? (y/n)> ";
otherwise:
now the current shrine statue is known;
now the display name of the location is "Inside a shrine of [shrine deity of the current shrine statue]";
say "Past training wells up within you, and, as you stare at the orb, ";
if the rationale of the player is personal desire:
say "you reach hungrily out to the power in the shrine. ";
otherwise if the rationale of the player is intelligence:
say "you picture an intricate shape in your mind. ";
otherwise if the rationale of the player is dexterity:
say "you trace an intricate shape with your hand, using it to guide the pattern in your mind. ";
otherwise if the rationale of the player is endurance:
say "you feel a low ripple of pain. A stronger ripple follows, and another, but you stand perfectly still. ";
otherwise if the rationale of the player is scientific skill:
say "a series of numbers opens in your mind. With the rapidity of habit, you calculate your way through the maze. ";
otherwise if the rationale of the player is blessing of the gods:
say "you open your soul to the power of the shrine. ";
otherwise if the rationale of the player is conviction of ideals:
say "you close the grip of your mind about the power in the shrine. ";
otherwise:
say "you feel an odd *click* in your head as you connect with the power of the shrine. ";
say "A name fills your mind: [italic type][shrine deity of the current shrine statue][roman type]. [shrine deity of the current shrine statue] is ";
if the current shrine statue is Perceived:
say "a deity native to this blighted world, now open to your perception";
otherwise:
say "a deity exiled by humanity, divided from your perception by the veil between worlds";
if a lit candle set (called the target candle) is in the location:
say ".[paragraph break]The [color of the target candle] candles flare ";
if the current shrine statue is Perceived:
say "brilliantly";
otherwise:
say "luridly, causing the shrine's shadows to shiver and quail before regaining their dominance";
say ".[paragraph break]Activate the shrine? (y/n)> ";
if player consents:
say "Focusing the power of the orb, you tap into the power of [shrine deity of the current shrine statue][run paragraph on]";
otherwise:
say "You ";
if the rationale of the player is personal desire:
say "disengage reluctantly from the power of [shrine deity of the current shrine statue]." instead;
otherwise if the rationale of the player is intelligence:
say "picture the intricate shape dissolving into smoke. As the shape dissolves, the power of [shrine deity of the current shrine statue] dissolves away." instead;
otherwise if the rationale of the player is dexterity:
say "reverse the pattern you traced and release the power of [shrine deity of the current shrine statue]." instead;
otherwise if the rationale of the player is endurance:
say "move, flexing your muscles and untensing the tense sinews, and the power of [shrine deity of the current shrine statue] falls away." instead;
otherwise if the rationale of the player is scientific skill:
say "reverse your calculations, dividing and summing your way back to zero, and the power of [shrine deity of the current shrine statue] returns to its fractal components." instead;
otherwise if the rationale of the player is blessing of the gods:
say " close your soul against the power of the shrine, and your awareness of [shrine deity of the current shrine statue] fades away." instead;
otherwise if the rationale of the player is conviction of ideals:
say " release the power in the orb, and [shrine deity of the current shrine statue]'s power fades." instead;
otherwise:
say " pull away from the questing power of [shrine deity of the current shrine statue], and there is a second odd *click* in your head again as you disengage." instead.
Core memory dump is a truth state that varies. Core memory dump is false.
The currently invoked deity is a deity that varies.
Carry out invoking:
now the current room is the location;
if the noun is enclosed by a shrine statue (called the target statue):
now the noun is the target statue;
now the current shrine statue is the target statue;
[ say "(Shrine deity of the [current shrine statue] = [shrine deity of the current shrine statue]. Health restorer = [health restorer]. Attunement restorer = [attunement restorer]. Debuff remover = [debuff remover]. IDer = [IDer]. Monster locator = [monster locator].)";]
if the shrine deity of the current shrine statue is the health restorer:
now the current shrine statue is previously invoked;
if an unlit candle set (called the target candle) is in the location:
now the target candle is lit;
describe the current shrine interior;
say ". The [candle type of the target candle] candles bloom with [flame type of the target candle] light.[line break]";
otherwise:
say ".";
restore the player's health;
otherwise if the shrine deity of the current shrine statue is the attunement restorer:
now the current shrine statue is previously invoked;
if an unlit candle set (called the target candle) is in the location:
now the target candle is lit;
describe the current shrine interior;
say ". The [candle type of the target candle] candles blossom with [flame type of the target candle] light.[line break]";
otherwise:
say ".";
restore the player's attunement;
otherwise if the shrine deity of the current shrine statue is the debuff remover:
now the current shrine statue is previously invoked;
if an unlit candle set (called the target candle) is in the location:
now the target candle is lit;
describe the current shrine interior;
say ". The [candle type of the target candle] candles spring into [flame type of the target candle] light.[line break]";
otherwise:
say ".";
remove the player's debuffs;
otherwise if the shrine deity of the current shrine statue is the IDer: [Previously invoked status gets set in the called activity for this one.]
if an unlit candle set (called the target candle) is in the location:
now the target candle is lit;
describe the current shrine interior;
say ". The [candle type of the target candle] candles blaze into [flame type of the target candle] life.[line break]";
otherwise:
say ".";
identify the player's stuff;
otherwise if the shrine deity of the current shrine statue is the monster locator:
now the current shrine statue is previously invoked;
if an unlit candle set (called the target candle) is in the location:
say ". The [candle type of the target candle] candles leap into [flame type of the target candle] light.[line break]";
now the target candle is lit;
describe the current shrine interior;
otherwise:
say ".";
locate monsters for the player;
otherwise:
say ".[line break]";
if an unlit candle set (called the target candle) is in the location:
now the target candle is lit;
describe the current shrine interior;
if the current shrine statue is previously invoked:
now the danger increment is 1;
[ say "This statue was previously invoked. Turning on the danger increment ([danger increment]).";]
otherwise:
now the current shrine statue is previously invoked;
now the danger increment is 0;
[ say "This statue has just been invoked for the first time. Turning off the danger increment ([danger increment]).";]
now the current deity is the shrine deity of the current shrine statue;
now the currently invoked deity is the shrine deity of the current shrine statue;
now core memory dump is true;
[ a core memory triggers in 1 turn from now;]
now Exile access is true;
phase the player into the Exile.