User:Crashaholic/ActionTemplate: Difference between revisions
Jump to navigation
Jump to search
Crashaholic (talk | contribs) (Save improved, added bullet points) |
Crashaholic (talk | contribs) (copied ActionCost over, THIS WILL BREAK PAGES!) |
||
Line 11: | Line 11: | ||
== Properties == | == Properties == | ||
{{trim|{{#if: {{{cost|}}} | {{trim|{{#if: {{{damage|}}} |{{{damage}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{trim|<!--DONT DO HACKS AT HOME KIDS--> | |||
{{#vardefine:action|0}} | |||
{{#vardefine:bonus|0}} | |||
{{#vardefine:reaction|0}} | |||
{{#vardefine:movement|0}} | |||
{{#vardefine:ar|0}} | |||
{{#vardefine:bi|0}} | |||
}}}} | {{#vardefine:ki|0}} | ||
{{#vardefine:sd|0}} | |||
{{#vardefine:rg|0}} | |||
{{#vardefine:hasaction|0}} | |||
{{#vardefine:hasothers|0}} | |||
{{#rmatch: string={{{cost|}}}|pattern=\W([Aa]ction)|then = {{#vardefine:action|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Action--> | |||
{{#rmatch: string={{{cost|}}}|pattern=([Bb]onus)|then = {{#vardefine:bonus|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Bonus--> | |||
{{#rmatch: string={{{cost|}}}|pattern=([Rr]eaction)|then = {{#vardefine:reaction|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Reaction--> | |||
{{#rmatch: string={{{cost|}}}|pattern=([Mm]ovement)| then = {{#vardefine:movement|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Movement--> | |||
{{#rmatch: string={{{cost|}}}|pattern=([Aa]rc[Rr]ec)|then={{#vardefine:ar|{{#rmatch:{{{cost|}}}|[Aa]rc[Rr]ec:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Arcane Recovery--> | |||
{{#rmatch: string={{{cost|}}}|pattern=([Bb]ar[Ii]ns)|then={{#vardefine:bi|{{#rmatch:{{{cost|}}}|[Bb]ar[Ii]ns:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Bardic Inspiration--> | |||
{{#rmatch: string={{{cost|}}}|pattern=([Kk]i)|then={{#vardefine:ki|{{#rmatch:{{{cost|}}}|[Kk]i:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Ki--> | |||
{{#rmatch: string={{{cost|}}}|pattern=([Ss]up[Dd]ie)|then={{#vardefine:sd|{{#rmatch:{{{cost|}}}|[Ss]up[Dd]ie:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Superiority Die--> | |||
{{#rmatch: string={{{cost|}}}|pattern=([Rr]age)|then={{#vardefine:rg|{{#rmatch:{{{cost|}}}|[Rr]age:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Rage--> | |||
{{#ifexpr: {{#ifeq: {{#var:hasaction}} | 1 | 1 | 0}} or {{#ifeq: {{#var:hasothers}} | 1 | 1 | 0}} | *}}{{#ifeq: {{#var: reaction}} | 1 | {{action|reaction}} | {{#ifeq: {{#var: action}} | 1 | {{#ifeq: {{#var: bonus}}| 1 | {{action|both}}<!--1,1--> | {{action}}<!--1,0-->}} | {{#ifeq: {{#var: bonus}} | 1 | {{action|bonus}}<!--0,1--> | {{blank}}<!--0,0-->}}}}}} {{#ifeq: {{#var: hasaction}} | 1 | {{#ifeq: {{#var: hasothers}} | 1 | +}}}} {{#ifexpr: {{#var: ki}} > 0|{{R|name=ki|count={{#var: ki}}}}}}{{#ifexpr: {{#var: sd}} > 0|{{R|name=sd|count={{#var: sd}}}}}}{{#ifexpr: {{#var: ar}} > 0|{{R|name=ar|count={{#var: ar}}}}}}{{#ifexpr: {{#var: bi}} > 0|{{R|name=bi|count={{#var: bi}}}}}}{{#ifexpr: {{#var: rg}} > 0|{{R|name=rg|count={{#var: rg}}}}}} | |||
}} | |||
{{trim|{{#if: {{{concentration|}}} |*{{Concentration}} | {{blank}}}}}} | {{trim|{{#if: {{{concentration|}}} |*{{Concentration}} | {{blank}}}}}} | ||
{{trim|{{#if: {{{ | {{trim|{{#if: {{{recharge|}}} |*{{Recharge|{{{recharge}}}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{trim| | {{trim| | ||
{{#if: {{{duration|}}} | {{#if: {{{duration|}}} | ||
Line 35: | Line 50: | ||
}} | }} | ||
}} | }} | ||
{{trim|{{#if: {{{ | {{trim|{{#if: {{{distance|}}} |* {{Distance|{{{distance}}}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{trim|{{#if: {{{aoe|}}} |*{{{aoe}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | {{trim|{{#if: {{{aoe|}}} |*{{{aoe}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{trim| | {{trim| | ||
Line 66: | Line 81: | ||
{{#if: {{{notes|}}} | == Notes == }} | {{#if: {{{notes|}}} | == Notes == }} | ||
{{trim|{{#if: {{{notes|}}} | {{{notes}}}| {{blank}}}}}}</includeonly><noinclude>This is a page to transclude to generate action pages. It is generally for pages that do not fit the [[Template:SpellPage | <code><nowiki>{{SpellPage}} Template</nowiki></code>]] | {{trim|{{#if: {{{notes|}}} | {{{notes}}}| {{blank}}}}}}</includeonly><noinclude>This is a page to transclude to generate action pages. It is generally for pages that do not fit the [[Template:SpellPage | <code><nowiki>{{SpellPage}} Template</nowiki></code>]] | ||
=Usage= | =Usage= | ||
Line 112: | Line 124: | ||
|- | |- | ||
| {{C|cost}} | | {{C|cost}} | ||
| The resource cost of the action. | | The resource cost of the action. '''REWRITE PENDING''' | ||
|- | |- | ||
| {{C|concentration}} | | {{C|concentration}} | ||
Line 135: | Line 137: | ||
| image = Fly Icon.png | | image = Fly Icon.png | ||
| summary = fly you fools | | summary = fly you fools | ||
| cost = | | cost = ki:2 | ||
| damage = {{DamageInfo|1d4+1|Bludgeoning}} | | damage = {{DamageInfo|1d4+1|Bludgeoning}} | ||
| recharge = | | recharge = Long Rest | ||
| distance = melee | |||
| duration = LR | | duration = LR | ||
| save = DEX, abc | | save = DEX, abc | ||
Line 156: | Line 159: | ||
| image = Fly Icon.png | | image = Fly Icon.png | ||
| summary = fly you fools | | summary = fly you fools | ||
| cost = action | | cost = ki:2 action | ||
| damage = {{DamageInfo|1d4+1|Bludgeoning}} | | damage = {{DamageInfo|1d4+1|Bludgeoning}} | ||
| recharge = | | recharge = Long Rest | ||
| distance = melee | |||
| duration = LR | | duration = LR | ||
| save = DEX, abc | | save = DEX, abc |
Revision as of 13:14, 19 August 2023
This is a page to transclude to generate action pages. It is generally for pages that do not fit the {{SpellPage}} Template
Usage
{{User:Crashaholic/ActionTemplate | description = | image = | summary = | cost = | concentration = | damage = | recharge = | duration = | range = | aoe = | save = | additional = | higherlevels = | learns = | notes = }}
The following is a table to further explain what each parameter takes, and how to use them.
Example
{{User:Crashaholic/ActionTemplate | description = abc | image = Fly Icon.png | summary = fly you fools | cost = ki:2 | damage = {{DamageInfo|1d4+1|Bludgeoning}} | recharge = Long Rest | distance = melee | duration = LR | save = DEX, abc | additional = * abcd {{User:Tc/FXBox | name = Fly | icon = Fly Icon.png | effect = go on, fly | duration = 1 }} | higherlevels = go far | notes = bar | learns = {{class|Monk}} 3 }}
fly you fools
Description
abc
Properties
1d4 + 1 (2~5) Bludgeoning
- Action + 2UNDEFINED
- Recharge: Long rest
- Duration: Until Long rest
- 1.5 m / 5 ft
- abcd
Fly |
---|
Duration: 1 turn
go on, fly |
At Higher Levels
go far
How to Learn
3
Notes
bar