Template:Action: Difference between revisions
TheUnburied (talk | contribs) No edit summary |
TheUnburied (talk | contribs) No edit summary |
||
| (17 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | <templatestyles src="Template:Action/Styles.css" /> | ||
| | <div class="action-wrapper"> | ||
| | <div class="action-header"><h3>{{#if:{{{Type|}}}|{{{Type}}}:}} {{{Name|Name}}}{{#if:{{{AP|}}}|, {{{AP}}} AP}}</h3><br> | ||
| | {{#if:{{{Description|}}}|<em>{{{Description|}}}</em>}}</div>{{#if:{{{Requirement|}}}|<div class="action-row"><div class="action-label">Requirement:</div><div class="action-data">{{{Requirement|}}}</div></div>}}{{#if:{{{Trigger|}}}|<div class="action-row"><div class="action-label">Trigger:</div><div class="action-data">{{{Trigger|}}}</div></div>}}{{#if:{{{Range|}}}|<div class="action-row"><div class="action-label">Range:</div><div class="action-data">{{{Range|}}}</div></div>}}{{#if:{{{Uses|}}}|<div class="action-row"><div class="action-label">Uses:</div><div class="action-data">{{{Uses|}}}</div></div>}}{{#if:{{{Extra Info|}}}|<div class="action-row"><div class="action-label">Extra Info:</div><div class="action-data">{{{Extra Info|}}}</div></div>}}{{#if:{{{Roll|}}}{{{DC|}}}|<div class="action-row"><div class="action-label">Roll:</div><div class="action-data">{{#if:{{{Roll|}}}|{{{Roll}}}}}{{#if:{{{Roll|}}}{{{DC|}}}|{{#if:{{{Roll|}}}|{{#if:{{{DC|}}}| <span style="font-style:italic;"> vs </span> }}}}}}{{#if:{{{DC|}}}|{{{DC}}}}}</div></div>}}{{#if:{{{Success|}}}{{{Strong Success|}}}{{{Failure|}}}{{{Strong Failure|}}}| | ||
| | <div class="action-header"><strong>Outcome</strong></div> | ||
| | <div class="action-row"> | ||
<div class="action-data"> | |||
{{#if:{{{Success|}}}| | |||
;Success: | |||
:{{{Success}}}}} | |||
{{#if:{{{Strong Success|}}}| | |||
;Strong Success: | |||
:{{{Strong Success}}}}} | |||
</div> | |||
<div class="action-data"> | |||
{{#if:{{{Failure|}}}| | |||
;Failure: | |||
:{{{Failure}}} }} | |||
{{#if:{{{Strong Failure|}}}| | |||
;Strong Failure: | |||
:{{{Strong Failure}}} }} }} | |||
</div> | |||
</div><div class="action-row"> | |||
{{#if:{{{Rolltable|}}}|{{{Rolltable}}}}}</div> | |||
{{ | |||
</div> | |||
<div | |||
{{#if:{{{ | |||
</div> | |||
</div> | </div> | ||
<noinclude> | <noinclude> | ||
== Example == | |||
{{Action | {{Action | ||
|Name= Action Name | |Name= Action Name | ||
| Line 56: | Line 43: | ||
|Failure= You lose. | |Failure= You lose. | ||
|Strong Failure= You really lost. | |Strong Failure= You really lost. | ||
|Extra Info=Extra shit | |||
|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 72: | ||
|Failure = | |Failure = | ||
|Strong Failure = | |Strong Failure = | ||
|Rolltable = | |||
}} | }} | ||
</pre> | </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> | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Infobox for an action. Can optionally include a rolltable in the Outcome section.", | |||
"params": { | "params": { | ||
"Name": { | "Name": { | ||
| Line 151: | Line 180: | ||
], | ], | ||
"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 199: | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "Rolltable": { | ||
"description": " | "label": "Rolltable", | ||
" | "description": "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.}}}}", | |||
"type": "content", | |||
"suggested": false | |||
} | } | ||
}, | }, | ||
| Line 185: | Line 221: | ||
"Strong Success", | "Strong Success", | ||
"Failure", | "Failure", | ||
"Strong Failure" | "Strong Failure", | ||
] | "Rolltable" | ||
], | |||
"format": "block" | |||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> | ||
Latest revision as of 19:30, 20 June 2026
Name
Example
Reaction: Action Name, 1 AP
What does the Action do?
- 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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | Name | no description
| String | required |
| Description | Description | no description
| String | suggested |
| Type | Type | Only use this if it is a special type of action, such as a Reaction.
| Unknown | optional |
| AP | AP | How many Action Points are used by this action.
| Number | required |
| Requirement | Requirement | Any special requirements that are needed to perform the action.
| Unknown | optional |
| Trigger | Trigger | What starts the Reaction. Only use on Reactions.
| Unknown | optional |
| Range | Range | no description
| Unknown | optional |
| Uses | Uses | Does the action use any items? Underline if the item is consumed.
| Unknown | optional |
| Roll | Roll | If there is a roll required for the action, which one?
| Unknown | optional |
| DC | DC | This can be a set number, or an opposing roll.
| Unknown | optional |
| Success | Success | no description | String | optional |
| Strong Success | Strong Success | no description | String | optional |
| Failure | Failure | no description | String | optional |
| Strong Failure | Strong Failure | no description | String | optional |
| Rolltable | Rolltable | Optional roll table shown underneath the normal outcome text. Use Template:Rolltable with Template:Rolltable/row.
| Content | optional |
