Skip to content

Attributes

Zynj-git edited this page Jan 11, 2021 · 29 revisions

Attributes

Attributes are positioned in bracket-encapsulation after a # in the keys field of an entry in the World Information interface.

  • All of the attributes can be utilized in combination with each other.
  • Keyword conditions are handled via Regular Expressions.
    • Familiarity is recommended, but not strictly necessary.
    • Treat | as an OR statement and , as an AND statement.
      • You can escape , with \ (\,) to prevent the creation of an AND condition.
  • Some attributes accept a value assignment via = to further configure the behavior.
    • Examples: [d=1], [rt=5], [am=3p=3rt]

List of Attributes

[d] Descriptor

  • Descriptor attribute.

  • Supplements the entry to the matching word of the last RegEx to form precise descriptors.

  • Default insertion becomes the lastIndexOf of match with the optional value assignment inserting it after match.

    Click for Examples
    keys entry result RegEx
    (your)(?!.*(his|her)).*(eyes?|iris)#[d] azure-blue You look at her eyes.
    She looks at your azure-blue eyes.
    RegEx
    (your)(?!.*(his|her)).*(sword|dagger|lance)#[d] legendary You equip your dagger then unsheathe your legendary sword.
    John#[d=1] (Your Party's Healer) John (Your Party's Healer) casts his spells.

[p] Positional

  • lines positional attribute.

  • Positions the entry relative to the length of lines in context.

  • Default position becomes lines.length with the optional value assignment pushing it further back.

    Click for Examples
    keys entry result regex
    .#[p=3] [Author's Note: You are the danger.] [Author's Note: You are the danger.]
    You walk to the mall to get yourself some milk.
    At the mall you notice that the store is closed.
    Unaware of the outlandish rage boiling within you, the manager is unprepared for the barrage of complaints you're about to unleash.
    RegEx
    .#[p=3] [Editor's Note: Be indescriptive, let the reader extrapolate information.] [Editor's Note: Be indescriptive, let the reader extrapolate information.]
    The enemy is.
    Enemy swing.
    You ouch.
    (forest|woods?|underbush),goblin#[p=3] Another wave of goblins prepare to strike from the bushes. Another wave of goblins prepare to strike from the bushes.
    > You attack the goblins.
    You kill the goblins and gain goblin loot.
    The next wave of goblins rush at you.

[m] Memory Positional

  • memoryLines positional attribute.

  • Positions the entry relative to the length of memoryLines in context.

  • Default position becomes memoryLines.length with the optional value assignment pushing it further back.

    Click for Examples
    keys entry result RegEx
    (you).*(die|perish)#[m] Death has promised to welcome your presence when the time comes. [... Remember]
    Death has promised to welcome your presence when the time comes.
    [... Story]
    In your final moments, you perish.
    RegEx

[t] Trailing Positional

  • Trailing and relative positional attribute.

  • Trails and positions the entry relative to the last qualifying RegEx in context.

  • Default position becomes the line above the qualifier with the optional value pushing it further back.

    Click for Examples
    keys entry result RegEx
    (you).*(cast|summon|conjure).*(fire-?(ball|vortex|tornado))#[t] > You masterfully incinerate the enemies. > You masterfully incinerate the enemies.
    In the midst of battle, you summon a fire-tornado
    RegEx

[r] Random Selector

  • Random selection attribute.
  • Randomly selects between contesting entries that share the same conditions.
Click for Examples
KEYS                        | ENTRY
(you).*(punch|hit|jab)#[rt] | > You fail miserably.
(you).*(punch|hit|jab)#[rt] | > You masterfully land a blow.
(you).*(punch|hit|jab)#[rd] | pitifully

(you).*(shoot|fire)#[rt]    | > You effortlessly hit your target with your superior fire-arm skills.
  • In the above examples, the three first entries have a 33% chance of executing themselves while the fourth is uncontested and thus has a 100% execution rate.

Clone this wiki locally