Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:A/doc: Difference between revisions

From Teriock
Content deleted Content added
Created page with "= Module:A Parameter Documentation = This page details all the parameters and their aliases accepted by the Module:A Scribunto module for formatting TTRPG abilities. == Core Parameters == === Basic Information === * '''name''' - The name of the ability (required) * '''e''' - The effect/description of the ability * '''trigger''' - What triggers the ability to activate === Type Flags === * '''skill''' - Flag to mark this as a skill ability * '''spell''' - Flag to mark..."
 
Line 1: Line 1:
= Module:A Parameter Documentation =
== Module:A Parameter Documentation ==


This page details all the parameters and their aliases accepted by the Module:A Scribunto module for formatting TTRPG abilities.
This page details all the parameters and their aliases accepted by the Module:A Scribunto module for formatting TTRPG abilities.


== Core Parameters ==
=== Core Parameters ===


=== Basic Information ===
==== Basic Information ====
* '''name''' - The name of the ability (required)
* '''name''' - The name of the ability (required)
* '''e''' - The effect/description of the ability
* '''e''' - The effect/description of the ability
* '''trigger''' - What triggers the ability to activate
* '''trigger''' - What triggers the ability to activate


=== Type Flags ===
==== Type Flags ====
* '''skill''' - Flag to mark this as a skill ability
* '''skill''' - Flag to mark this as a skill ability
* '''spell''' - Flag to mark this as a spell ability
* '''spell''' - Flag to mark this as a spell ability
* '''standard''' - Flag to mark this as a standard ability
* '''standard''' - Flag to mark this as a standard ability


=== Class Information ===
==== Class Information ====
* '''class''' - The class this ability belongs to
* '''class''' - The class this ability belongs to
** Supported values: <code>bar</code>/<code>ber</code> (Berserker), <code>sam</code>/<code>due</code> (Duelist), <code>vet</code> (Veteran), <code>kni</code> (Knight), <code>pal</code> (Paladin), <code>ass</code> (Assassin), <code>ama</code>/<code>cor</code> (Corsair), <code>arc</code> (Archer), <code>thi</code> (Thief), <code>ran</code> (Ranger), <code>fla</code> (Flame Mage), <code>sto</code> (Storm Mage), <code>lif</code> (Life Mage), <code>nec</code> (Necromancer), <code>nat</code> (Nature Mage)
** Supported values: <code>bar</code>/<code>ber</code> (Berserker), <code>sam</code>/<code>due</code> (Duelist), <code>vet</code> (Veteran), <code>kni</code> (Knight), <code>pal</code> (Paladin), <code>ass</code> (Assassin), <code>ama</code>/<code>cor</code> (Corsair), <code>arc</code> (Archer), <code>thi</code> (Thief), <code>ran</code> (Ranger), <code>fla</code> (Flame Mage), <code>sto</code> (Storm Mage), <code>lif</code> (Life Mage), <code>nec</code> (Necromancer), <code>nat</code> (Nature Mage)
Line 174: Line 174:
* '''pro''' - Flag for proficiency in feat save
* '''pro''' - Flag for proficiency in feat save


== Premade Templates ==
=== Premade Templates ===
The module includes several premade templates that can be used as a base for abilities:
The module includes several premade templates that can be used as a base for abilities:


=== Strike Template (<code>pre=strike</code>) ===
==== Strike Template (<code>pre=strike</code>) ====
<pre>
<pre>
{
{
Line 190: Line 190:
</pre>
</pre>


=== Ray Template (<code>pre=ray</code>) ===
==== Ray Template (<code>pre=ray</code>) ====
<pre>
<pre>
{
{
Line 204: Line 204:
</pre>
</pre>


=== Ball Template (<code>pre=ball</code>) ===
==== Ball Template (<code>pre=ball</code>) ====
<pre>
<pre>
{
{
Line 218: Line 218:
</pre>
</pre>


=== Touch Template (<code>pre=touch</code>) ===
==== Touch Template (<code>pre=touch</code>) ====
<pre>
<pre>
{
{
Line 232: Line 232:
</pre>
</pre>


=== Ritual Template (<code>pre=ritual</code>) ===
==== Ritual Template (<code>pre=ritual</code>) ====
<pre>
<pre>
{
{
Line 245: Line 245:
</pre>
</pre>


== Additional Notes ==
=== Additional Features ===
The module automatically handles:
The module automatically handles:
* Adding AC modifiers for limb (+2), vitals (+5), and other specific targets
* Adding AC modifiers for limb (+2), vitals (+5), and other specific targets
Line 252: Line 252:
* Processing time and distance formats
* Processing time and distance formats
* Managing component requirements for invoked abilities
* Managing component requirements for invoked abilities

[[Category:Module documentation]]

Revision as of 20:06, 6 January 2025

Module:A Parameter Documentation

This page details all the parameters and their aliases accepted by the Module:A Scribunto module for formatting TTRPG abilities.

Core Parameters

Basic Information

  • name - The name of the ability (required)
  • e - The effect/description of the ability
  • trigger - What triggers the ability to activate

Type Flags

  • skill - Flag to mark this as a skill ability
  • spell - Flag to mark this as a spell ability
  • standard - Flag to mark this as a standard ability

Class Information

  • class - The class this ability belongs to
    • Supported values: bar/ber (Berserker), sam/due (Duelist), vet (Veteran), kni (Knight), pal (Paladin), ass (Assassin), ama/cor (Corsair), arc (Archer), thi (Thief), ran (Ranger), fla (Flame Mage), sto (Storm Mage), lif (Life Mage), nec (Necromancer), nat (Nature Mage)
  • arch - Override the default archetype for a class
    • Supported values: warr (Warrior), semi (Semi), mage (Mage)
  • rank - The rank requirement for the ability

Ability Properties

Maneuver Type (maneuver, man, m)

  • active/ac/a - Active maneuver
  • reactive/re/r - Reactive maneuver
  • passive/ps/p - Passive maneuver
  • slow/sl/s - Slow maneuver

Interaction Type (interaction, int, i)

  • attack/atk/a - Attack interaction
  • block/blk/b - Block interaction
  • manifest/man/m - Manifest interaction
  • feat/fea/f - Feat interaction

Delivery Method (delivery, del, d)

  • self/sel/s - Self delivery
  • missile/mis/m - Missile delivery
  • hand/han/h/claw - Hand delivery
  • bite/bit/b/mouth - Bite delivery
  • item/itm/i - Item delivery
  • magelore/mag/ml - Magelore delivery
  • weapon/wep/w - Weapon delivery
  • shield/shl/sh - Shield delivery
  • armor/rmr/a - Armor delivery
  • sight/sit/eye/e - Sight delivery
  • aura/aur/a - Aura delivery
  • cone/con/c - Cone delivery
  • other/oth/o - Other delivery

Target Type (target, tar, t)

  • self/sel/s - Self target
  • creature/cre/c - Creature target
  • body/bod/b - Body target
  • vitals/vit/v - Vitals target
  • limb/lim/l - Limb target
  • arm - Arm target
  • leg - Leg target
  • item/itm/i - Item target
  • weapon/wep/w - Weapon target
  • shield/shl/sh - Shield target
  • armor/rmr/a - Armor target
  • attack/atk/a - Attack target
  • other/oth/o - Other target

Duration (duration, dur, dr)

  • instant/in/i/0 - Instant duration
  • always/al/a - Always active
  • whileUp/up/u - While up
  • whileDown/dn/d - While down
  • whileAlive/al/a - While alive
  • whileDead/dd - While dead
  • endOfTurn/end/e - Until end of turn
  • dawn/d - Until dawn
  • startOfTargetNextTurn/tStart/ts - Until start of target's next turn
  • endOfTargetNextTurn/tEnd/te - Until end of target's next turn
  • startOfYourNextTurn/uStart/us - Until start of your next turn
  • endOfYourNextTurn/uEnd/ue - Until end of your next turn
  • endOfCombat/ec - Until end of combat
  • Time duration format: XmXhXdXwXy (minutes, hours, days, weeks, years)

Range (range, rng, r)

  • melee/m - Melee range
  • weapon/w - Weapon range
  • hand/h - Hand range
  • bite/b - Bite range
  • item/i - Item range
  • shield/sh - Shield range
  • armor/a - Armor range
  • sight/eye/e - Sight range
  • self/s - Self range
  • Distance format: Xf or Xm (feet or miles)

Attribute Saves (attribute, attr, a)

  • int/INT/i - Intelligence save
  • str/STR/s - Strength save
  • mov/MOV/m - Movement save
  • per/PER/p - Perception save
  • snk/SNK/s - Sneak save

Expansion Type (expansion, exp)

  • detonate/det/d - Detonate expansion
  • ripple/rip/r - Ripple expansion
  • cascade/cas/c - Cascade expansion
  • fork/for/f - Fork expansion

Piercing (piercing, prc, p)

  • av0/a - AV0 piercing
  • unblockable/ub/u - Unblockable

Component Flags

  • verbal/ver/v - Verbal component
  • somatic/som/s - Somatic component
  • material/mat/m - Material component
  • magelore/mag/ml - Magelore component
  • invoked/inv/i - Invoked component

Resource Costs

  • mp - Mana point cost
  • mpx - Variable mana point cost description
  • hp - Hit point cost
  • hpx - Variable hit point cost description
  • matx - Material component cost description

Element Flags

  • life - Life element
  • storm - Storm element
  • necro - Necro element
  • flame - Flame element
  • nature - Nature element

Power Source Flags

  • magic - Magical power source
  • divine - Divine power source
  • spirit - Spirit power source
  • primal - Primal power source
  • martial - Martial power source
  • psionic - Psionic power source
  • techo - Techno power source

Effect Type Flags

  • mental - Mental effect
  • truth - Truth detection effect
  • duelMod - Duel modification effect
  • movement - Movement effect
  • displacement - Displacement effect
  • transformation - Transformation effect
  • control - Control effect
  • resist - Resistance effect
  • immune - Immunity effect
  • long - Long range effect
  • sense - Sensory effect
  • revive - Revival effect
  • summon - Summoning effect
  • heal - Healing effect

Results Parameters

  • crithit - Critical hit effect
  • hit - Hit effect
  • miss - Miss effect
  • critmiss - Critical miss effect
  • critfail - Critical fail effect
  • fail - Fail effect
  • save - Save effect
  • critsave - Critical save effect

Attribute Modification

  • vstat - Attribute to modify
  • val - New minimum value for the attribute
  • fstat - Feat save attribute to modify
  • flu - Flag for fluency in feat save
  • pro - Flag for proficiency in feat save

Premade Templates

The module includes several premade templates that can be used as a base for abilities:

Strike Template (pre=strike)

{
    maneuver = 'active',
    executionTime = '1a',
    interaction = 'attack',
    delivery = 'weapon',
    target = 'creature',
    duration = 'instant',
    range = 'weapon',
}

Ray Template (pre=ray)

{
    maneuver = 'active',
    executionTime = '1a',
    interaction = 'attack',
    delivery = 'missile',
    target = 'creature',
    duration = 'instant',
    range = '60f',
    piercing = 'av0',
}

Ball Template (pre=ball)

{
    maneuver = 'active',
    executionTime = '1a',
    interaction = 'attack',
    delivery = 'missile',
    target = 'creature',
    duration = 'instant',
    range = '30f',
    piercing = 'ub',
}

Touch Template (pre=touch)

{
    maneuver = 'active',
    executionTime = '1a',
    interaction = 'attack',
    delivery = 'hand',
    target = 'creature',
    duration = 'instant',
    range = 'hand',
    piercing = 'ub',
}

Ritual Template (pre=ritual)

{
    maneuver = 'slow',
    executionTime = '10m',
    interaction = 'manifest',
    delivery = 'sight',
    target = 'creature',
    duration = 'instant',
    range = '5f',
}

Additional Features

The module automatically handles:

  • Adding AC modifiers for limb (+2), vitals (+5), and other specific targets
  • Managing item interaction DCs
  • Handling class archetypes and their hierarchies
  • Processing time and distance formats
  • Managing component requirements for invoked abilities