User:Crashaholic/ActionTemplate: Difference between revisions
Jump to navigation
Jump to search
Crashaholic (talk | contribs) m (oops forgot to first initialize it) |
Crashaholic (talk | contribs) m (ew bullet points) |
||
Line 46: | Line 46: | ||
{{#rmatch: string={{{cost|}}}|pattern=([Ww]il[Ss]hp)|then={{#vardefine:ws|{{#rmatch:{{{cost|}}}|[Ww]il[Ss]hp:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Wild Shape--> | {{#rmatch: string={{{cost|}}}|pattern=([Ww]il[Ss]hp)|then={{#vardefine:ws|{{#rmatch:{{{cost|}}}|[Ww]il[Ss]hp:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Wild Shape--> | ||
{{#ifexpr: {{#ifeq: {{#var:hasaction}} | 1 | 1 | 0}} or {{#ifeq: {{#var:hasothers}} | 1 | 1 | 0}} | | {{#ifexpr: {{#ifeq: {{#var:hasaction}} | 1 | 1 | 0}} or {{#ifeq: {{#var:hasothers}} | 1 | 1 | 0}} | <br/>}}{{#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: ar}} > 0|{{R|name=ar|count={{#var: ar}}}}}}{{#ifexpr: {{#var: bi}} > 0|{{R|name=bi|count={{#var: bi}}}}}}{{#ifexpr: {{#var: cd}} > 0|{{R|name=cd|count={{#var: cd}}}}}}{{#ifexpr: {{#var: co}} > 0|{{R|name=co|count={{#var: co}}}}}}{{#ifexpr: {{#var: ki}} > 0|{{R|name=ki|count={{#var: ki}}}}}}{{#ifexpr: {{#var: lh}} > 0|{{R|name=lh|count={{#var: lh}}}}}}{{#ifexpr: {{#var: rg}} > 0|{{R|name=rg|count={{#var: rg}}}}}}{{#ifexpr: {{#var: sd}} > 0|{{R|name=sd|count={{#var: sd}}}}}}{{#ifexpr: {{#var: wp}} > 0|{{R|name=wp|count={{#var: wp}}}}}}{{#ifexpr: {{#var: ws}} > 0|{{R|name=ws|count={{#var: ws}}}}}} | ||
}} | }} | ||
{{trim|{{#if: {{{concentration|}}} | | {{trim|{{#if: {{{concentration|}}} |<br/>{{Concentration}} | {{blank}}}}}} | ||
{{trim|{{#if: {{{recharge|}}} | | {{trim|{{#if: {{{recharge|}}} |<br/>{{Recharge|{{{recharge}}}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{trim| | {{trim| | ||
{{#if: {{{duration|}}} | {{#if: {{{duration|}}} | ||
|{{#ifeq:{{{duration|}}}| LR | |<br/>{{#ifeq:{{{duration|}}}| LR | ||
| | |{{Duration|Until Long Rest}} | ||
|{{#ifeq: {{{duration|}}} |Perm | |{{#ifeq: {{{duration|}}} |Perm | ||
| | |{{Duration|Permanent}} | ||
| | |{{Duration|{{{duration}}}}} | ||
}} | }} | ||
}} | }} | ||
Line 62: | Line 62: | ||
}} | }} | ||
}} | }} | ||
{{trim|{{#if: {{{distance|}}} | | {{trim|{{#if: {{{distance|}}} |<br/>{{Distance|{{{distance}}}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{trim|{{#if: {{{aoe|}}} | | {{trim|{{#if: {{{aoe|}}} |<br/>{{{aoe}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{trim| | {{trim| | ||
{{#if: {{{save|}}} | {{#if: {{{save|}}} | ||
Line 77: | Line 77: | ||
| charisma | cha = {{#vardefine: saveicon | Charisma}} {{#vardefine: savetext | CHA}} | | charisma | cha = {{#vardefine: saveicon | Charisma}} {{#vardefine: savetext | CHA}} | ||
| #default = {{#vardefine: saveicon |Alert}} {{#vardefine: savetext | EDITOR SHOULD CHECK TEMPLATE}} | | #default = {{#vardefine: saveicon |Alert}} {{#vardefine: savetext | EDITOR SHOULD CHECK TEMPLATE}} | ||
}} | }}<br/>{{SmallIcon|Saving Throw Icons.png}} [[File:{{#var: saveicon}} icon.png|frameless|25px|{{#var: saveicon}}]][[{{#var: saveicon}}|{{#var: savetext}}]] [[Saving Throw|Save]] {{#if: {{#pos:{{{save|}}}|,}} | ||
| (On Save: {{#explode:{{{save|}}}|,|1}}) | | (On Save: {{#explode:{{{save|}}}|,|1}}) | ||
}}| {{blank}} | }}| {{blank}} |
Revision as of 12:10, 23 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
DEX Save (On Save: abc)
- abcd
Fly |
---|
Duration: 1 turn
go on, fly |
At Higher Levels
go far
How to Learn
3
Notes
bar