Template:Action: Difference between revisions

From The Undead Archive
No edit summary
Niuf (talk | contribs)
No edit summary
Line 20: Line 20:
| data13      = {{{Uses|}}}
| data13      = {{{Uses|}}}


| header20   = {{{Description|}}}
| header20   = {{{Description|}}}


| label30    = {{#if:{{{Roll|}}}{{{DC|}}}|Roll:}}
| label30    = {{#if:{{{Roll|}}}{{{DC|}}}|Roll:}}
| data30      = {{#if:{{{Roll|}}}|{{{Roll}}}}}{{#if:{{{Roll|}}}{{{DC|}}}|{{#if:{{{Roll|}}}|{{#if:{{{DC|}}}| <span style="font-style:italic;"> vs </span> }}}}}}{{#if:{{{DC|}}}|{{{DC}}}}}
| data30      = {{#if:{{{Roll|}}}|{{{Roll}}}}}{{#if:{{{Roll|}}}{{{DC|}}}|{{#if:{{{Roll|}}}|{{#if:{{{DC|}}}| <span style="font-style:italic;"> vs </span> }}}}}}{{#if:{{{DC|}}}|{{{DC}}}}}


| label40    = {{#if:{{{Success|}}}{{{Strong Success|}}}{{{Failure|}}}{{{Strong Failure|}}}|Outcome:}}
| label40    = {{#if:{{{Success|}}}{{{Strong Success|}}}{{{Failure|}}}{{{Strong Failure|}}}{{{Rolltable|}}}|Outcome:}}
| data40      = {{#if:{{{Success|}}}{{{Strong Success|}}}{{{Failure|}}}{{{Strong Failure|}}}|
| data40      = {{#if:{{{Success|}}}{{{Strong Success|}}}{{{Failure|}}}{{{Strong Failure|}}}{{{Rolltable|}}}|
{{#if:{{{Success|}}}{{{Strong Success|}}}{{{Failure|}}}{{{Strong Failure|}}}|
<div style="display:flex; align-items:stretch;">
<div style="display:flex; align-items:stretch;">
<div style="flex:1; padding:6px 8px;">
<div style="flex:1; padding:6px 8px;">
{{#if:{{{Success|}}}|<div><b>Success:</b><br> {{{Success}}}</div>}}
{{#if:{{{Success|}}}|<div><b>Success:</b><br> {{{Success}}}</div>}}
{{#if:{{{Strong Success|}}}|<div><b>Strong Success:</b><br> {{{Strong Success}}}</div>}}
{{#if:{{{Strong Success|}}}|<div style="margin-top:6px;"><b>Strong Success:</b><br> {{{Strong Success}}}</div>}}
</div>
</div>
<div style="flex:1; padding:6px 8px;">
<div style="flex:1; padding:6px 8px;">
{{#if:{{{Failure|}}}|<div><b>Failure:</b><br> {{{Failure}}}</div>}}
{{#if:{{{Failure|}}}|<div><b>Failure:</b><br> {{{Failure}}}</div>}}
{{#if:{{{Strong Failure|}}}|<div><b>Strong Failure:</b><br> {{{Strong Failure}}}</div>}}
{{#if:{{{Strong Failure|}}}|<div style="margin-top:6px;"><b>Strong Failure:</b><br> {{{Strong Failure}}}</div>}}
</div>
</div>
</div>
</div>
}}
{{#if:{{{Rolltable|}}}|
<div style="padding:6px 8px;">
{{{Rolltable}}}
</div>
}}
}}
}}
}}
}}
<hr>
<hr>
<noinclude>
<noinclude>
== Example ==
{{Action
{{Action
|Name= Action Name
|Name= Action Name
Line 56: Line 64:
|Failure= You lose.
|Failure= You lose.
|Strong Failure= You really lost.
|Strong Failure= You really lost.
|Rolltable=
{{Rolltable
|rows=
{{Rolltable/row|4 and under|Object lands 5 tiles off target.<br />Strong Failure if Item calls for it.}}
{{Rolltable/row|5-9|Object lands 3 tiles off target.}}
{{Rolltable/row|10-14|Object lands 2 tiles off target.}}
{{Rolltable/row|15-19|Object lands on target.}}
{{Rolltable/row|20 and up|Object lands on target.<br />Strong Success if Item calls for it.}}
}}
}}
}}


== Usage ==
<pre>
<pre>
{{Action
{{Action
Line 74: Line 92:
|Failure        =
|Failure        =
|Strong Failure =
|Strong Failure =
|Rolltable      =
}}
</pre>
== Usage with rolltable ==
<pre>
{{Action
|Name= Throw Object
|Description= Throw an object at a target tile.
|Type=
|AP= 1
|Uses= Throwable Object
|Range= 10 Tiles
|Requirement=
|Trigger=
|Roll= Aiming
|DC= 15
|Success=
|Strong Success=
|Failure=
|Strong Failure=
|Rolltable=
{{Rolltable
|rows=
{{Rolltable/row|4 and under|Object lands 5 tiles off target.<br />Strong Failure if Item calls for it.}}
{{Rolltable/row|5-9|Object lands 3 tiles off target.}}
{{Rolltable/row|10-14|Object lands 2 tiles off target.}}
{{Rolltable/row|15-19|Object lands on target.}}
{{Rolltable/row|20 and up|Object lands on target.<br />Strong Success if Item calls for it.}}
}}
}}
}}
</pre>
</pre>
<templatedata>
<templatedata>
{
{
"description": "Infobox for an action. Can optionally include a rolltable in the Outcome section.",
"params": {
"params": {
"Name": {
"Name": {
Line 151: Line 201:
],
],
"description": "If there is a roll required for the action, which one?"
"description": "If there is a roll required for the action, which one?"
},
"DC": {
"description": "This can be a set number, or an opposing roll.",
"suggestedvalues": [
"Target Defense DC"
]
},
},
"Success": {
"Success": {
Line 164: Line 220:
"type": "string"
"type": "string"
},
},
"DC": {
"Rolltable": {
"description": "This can be a set number, or an opposing roll.",
"label": "Rolltable",
"suggestedvalues": [
"description": "Optional roll table shown underneath the normal outcome text. Use Template:Rolltable with Template:Rolltable/row.",
"Target Defense DC"
"example": "{{Rolltable|rows={{Rolltable/row|4 and under|Object lands 5 tiles off target.}}{{Rolltable/row|20 and up|Object lands on target.}}}}",
]
"type": "content",
"suggested": false
}
}
},
},
Line 185: Line 242:
"Strong Success",
"Strong Success",
"Failure",
"Failure",
"Strong Failure"
"Strong Failure",
]
"Rolltable"
],
"format": "block"
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Revision as of 10:58, 31 May 2026


Example

Reaction: Action Name, 1 AP
Requirement:Hidden Condition
Trigger:You are targeted by an attack or grapple.
Range:Adjacent tile
Uses:Bottle of Water
What does the Action do?
Roll:Academia vs 15
Outcome:
Success:
You win.
Strong Success:
You win so hard!
Failure:
You lose.
Strong Failure:
You really lost.
Roll Result
4 and under Object lands 5 tiles off target.
Strong Failure if Item calls for it.
5-9 Object lands 3 tiles off target.
10-14 Object lands 2 tiles off target.
15-19 Object lands on target.
20 and up Object lands on target.
Strong Success if Item calls for it.


Usage

{{Action
|Name           =
|Description    =
|Type           =
|AP             =
|Uses           =
|Range          =
|Requirement    =
|Trigger        =
|Roll           =
|DC             =
|Success        =
|Strong Success =
|Failure        =
|Strong Failure =
|Rolltable      =
}}

Usage with rolltable

{{Action
|Name= Throw Object
|Description= Throw an object at a target tile.
|Type=
|AP= 1
|Uses= Throwable Object
|Range= 10 Tiles
|Requirement=
|Trigger=
|Roll= Aiming
|DC= 15
|Success=
|Strong Success=
|Failure=
|Strong Failure=
|Rolltable=
{{Rolltable
|rows=
{{Rolltable/row|4 and under|Object lands 5 tiles off target.<br />Strong Failure if Item calls for it.}}
{{Rolltable/row|5-9|Object lands 3 tiles off target.}}
{{Rolltable/row|10-14|Object lands 2 tiles off target.}}
{{Rolltable/row|15-19|Object lands on target.}}
{{Rolltable/row|20 and up|Object lands on target.<br />Strong Success if Item calls for it.}}
}}
}}

Infobox for an action. Can optionally include a rolltable in the Outcome section.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
NameName

no description

Example
Simple Melee Attack
Stringrequired
DescriptionDescription

no description

Example
Choose a target body area to attack with a melee weapon.
Stringsuggested
TypeType

Only use this if it is a special type of action, such as a Reaction.

Suggested values
Reaction
Unknownoptional
APAP

How many Action Points are used by this action.

Suggested values
0 1 2 3 4
Default
0
Numberrequired
RequirementRequirement

Any special requirements that are needed to perform the action.

Example
Hidden Condition.
Unknownoptional
TriggerTrigger

What starts the Reaction. Only use on Reactions.

Example
You are targeted by an attack or grapple.
Unknownoptional
RangeRange

no description

Suggested values
Adjacent Tile 5 Tiles 10 Tiles Visible
Unknownoptional
UsesUses

Does the action use any items? Underline if the item is consumed.

Example
Melee Weapon
Unknownoptional
RollRoll

If there is a roll required for the action, which one?

Suggested values
Physique Athletics Melee Resilience Reason Awareness Medicine Technology Academia Agility Aiming Stealth Reflex Finesse Presence Morale Intimidation Persuasion Deception
Unknownoptional
DCDC

This can be a set number, or an opposing roll.

Suggested values
Target Defense DC
Unknownoptional
SuccessSuccess

no description

Stringoptional
Strong SuccessStrong Success

no description

Stringoptional
FailureFailure

no description

Stringoptional
Strong FailureStrong Failure

no description

Stringoptional
RolltableRolltable

Optional roll table shown underneath the normal outcome text. Use Template:Rolltable with Template:Rolltable/row.

Example
{{Rolltable|rows={{Rolltable/row|4 and under|Object lands 5 tiles off target.}}{{Rolltable/row|20 and up|Object lands on target.}}}}
Contentoptional