Skip to content

Attributes

Zynj-git edited this page Jan 10, 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.

    Examples

    • keys (your)(?!.*(his|her)).*(eyes?|iris)#[d] RegEx

    • entry azure-blue

      You look into her eyes.
      She looks into your azure-blue eyes.
      

[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.

    Examples

    • keys .#[p=3] RegEx

    • entry [Author's Note: You are the danger.]

      • Functions the same as authorsNote.
      [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.
      Unprepared for the outlandish rage boiling within you, the manager is unaware of the barrage of complaints you're about to unleash.
      

[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.

    Examples

    • keys (you).*(die|perish)#[m] RegEx

    • entry 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.
      

[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.

    Examples

    • keys (you).*(cast|summon|conjure).*(fire-?(ball|vortex|tornado))#[t] RegEx

    • entry > You masterfully incinerate the enemies.

      > You masterfully incinerate the enemies.
      In the midst of battle, you summon a fire-tornado
      

[r] Random Selector

  • Random selection attribute.

  • Randomly selects between contesting entries that share the same conditions.

    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