User:Crashaholic/ActionTemplate: Difference between revisions
Jump to navigation
Jump to search
Crashaholic (talk | contribs) m (using regex to just *search*, not *capture* for the keywords im looking for) |
Crashaholic (talk | contribs) m (BREAKING CHANGE, CHANGED DAMAGE'S INPUT) |
||
Line 11: | Line 11: | ||
== Properties == | == Properties == | ||
{{trim|{{#if: {{{damage|}}} |{{{damage}}}| {{ | {{trim| | ||
{{#if: {{{damage|}}} | | |||
{{#vardefine: amt|}} | |||
{{#vardefine: typ|}} | |||
{{#vardefine: mod|}} | |||
{{#vardefine: per|}} | |||
{{#vardefine: sav|}} | |||
{{#vardefine: sfx|}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|amount:}}|| <!--doesnt exist--> | {{#vardefine: amt|{{#rmatch: {{{damage|}}}|amount:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|type:}}|| <!--doesnt exist--> |{{#vardefine: typ|{{#rmatch: {{{damage|}}}|type:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|mod:}}|| <!--doesnt exist--> |{{#vardefine: mod|{{#rmatch: {{{damage|}}}|mod:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|per:}}|| <!--doesnt exist--> |{{#vardefine: dot|{{#rmatch: {{{damage|}}}|per:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save:}}|| <!--doesnt exist--> |{{#vardefine: sav|{{#rmatch: {{{damage|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save effect:}}|| <!--doesnt exist--> |{{#vardefine: sfx|{{#rmatch: {{{damage|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{DamageInfo|{{#var: amt}}|{{#var: typ}}|modifier = {{#var:mod}}|per = {{#var: dot}}|save = {{#var: sav}}|save effect = {{#var: sfx}}}} | |||
}}|{{blank}}}} | |||
{{trim|<!--DONT DO HACKS AT HOME KIDS--> | {{trim|<!--DONT DO HACKS AT HOME KIDS--> | ||
{{#vardefine:action|0}} | {{#vardefine:action|0}} | ||
Line 31: | Line 46: | ||
{{#vardefine:hasmovemt|0}} | {{#vardefine:hasmovemt|0}} | ||
{{#vardefine:hasothers|0}} | {{#vardefine:hasothers|0}} | ||
{{#rmatch: {{{cost|}}}|\Waction{{#vardefine:action|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Action--> | {{#rmatch: {{{cost|}}}|\Waction|{{#vardefine:action|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Action--> | ||
{{#rmatch: {{{cost|}}}|bonus|{{#vardefine:bonus|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Bonus--> | {{#rmatch: {{{cost|}}}|bonus|{{#vardefine:bonus|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Bonus--> | ||
{{#rmatch: {{{cost|}}}|reaction|{{#vardefine:reaction|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Reaction--> | {{#rmatch: {{{cost|}}}|reaction|{{#vardefine:reaction|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Reaction--> | ||
{{#rmatch: {{{cost|}}}|movement|{{#vardefine:movement|1}} {{#vardefine:hasmovemt|1}}<!--add cargo in this place-->|caseless=1}} <!--Movement--> | {{#rmatch: {{{cost|}}}|movement|{{#vardefine:movement|1}} {{#vardefine:hasmovemt|1}}<!--add cargo in this place-->|caseless=1}} <!--Movement--> | ||
{{#rmatch: {{{cost|}}}|arcrec|{{#vardefine:ar|{{#rmatch:{{{cost|}}}| | {{#rmatch: {{{cost|}}}|arcrec|{{#vardefine:ar|{{#rmatch:{{{cost|}}}|arcrec:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Arcane Recovery--> | ||
{{#rmatch: {{{cost|}}}|barins|{{#vardefine:bi|{{#rmatch:{{{cost|}}}| | {{#rmatch: {{{cost|}}}|barins|{{#vardefine:bi|{{#rmatch:{{{cost|}}}|barins:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Bardic Inspiration--> | ||
{{#rmatch: {{{cost|}}}|chadiv|{{#vardefine:cd|{{#rmatch:{{{cost|}}}| | {{#rmatch: {{{cost|}}}|chadiv|{{#vardefine:cd|{{#rmatch:{{{cost|}}}|chadiv:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Channel Divinity--> | ||
{{#rmatch: {{{cost|}}}|chaoat|{{#vardefine:co|{{#rmatch:{{{cost|}}}| | {{#rmatch: {{{cost|}}}|chaoat|{{#vardefine:co|{{#rmatch:{{{cost|}}}|chaoat:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Channel Oath--> | ||
{{#rmatch: {{{cost|}}}|ki|{{#vardefine:ki|{{#rmatch:{{{cost|}}}| | {{#rmatch: {{{cost|}}}|ki|{{#vardefine:ki|{{#rmatch:{{{cost|}}}|ki:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Ki--> | ||
{{#rmatch: {{{cost|}}}|layonh|{{#vardefine:lh|{{#rmatch:{{{cost|}}}| | {{#rmatch: {{{cost|}}}|layonh|{{#vardefine:lh|{{#rmatch:{{{cost|}}}|layonh:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Lay On Hands--> | ||
{{#rmatch: {{{cost|}}}|natrec|{{#vardefine:nr|{{#rmatch:{{{cost|}}}| | {{#rmatch: {{{cost|}}}|natrec|{{#vardefine:nr|{{#rmatch:{{{cost|}}}|natrec:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Natural Recovery--> | ||
{{#rmatch: {{{cost|}}}|rage|{{#vardefine:rg|{{#rmatch:{{{cost|}}}| | {{#rmatch: {{{cost|}}}|rage|{{#vardefine:rg|{{#rmatch:{{{cost|}}}|rage:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Rage--> | ||
{{#rmatch: {{{cost|}}}|supdie|{{#vardefine:sd|{{#rmatch:{{{cost|}}}| | {{#rmatch: {{{cost|}}}|supdie|{{#vardefine:sd|{{#rmatch:{{{cost|}}}|supdie:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Superiority Die--> | ||
{{#rmatch: {{{cost|}}}|warpri|{{#vardefine:wp|{{#rmatch:{{{cost|}}}| | {{#rmatch: {{{cost|}}}|warpri|{{#vardefine:wp|{{#rmatch:{{{cost|}}}|warpri:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--War Priest--> | ||
{{#rmatch: {{{cost|}}}|wldshp|{{#vardefine:ws|{{#rmatch:{{{cost|}}}| | {{#rmatch: {{{cost|}}}|wldshp|{{#vardefine:ws|{{#rmatch:{{{cost|}}}|wldshp:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}} <!--Wild Shape--> | ||
<!--if you think i know what im doing, ymmv--> | <!--if you think i know what im doing, ymmv--> | ||
{{#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}}}}}} | {{#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}}}}}} | ||
Line 135: | Line 150: | ||
| The summary of the action. This will be used as the wiki's description as well as the SEO text. | | The summary of the action. This will be used as the wiki's description as well as the SEO text. | ||
| <code>summary = Lorem Ipsum</code> | | <code>summary = Lorem Ipsum</code> | ||
|- | |||
| {{C|damage}} | |||
| The damage of the action. '''REWRITE PENDING''' | |||
|- | |- | ||
| {{C|cost}} | | {{C|cost}} | ||
Line 155: | Line 173: | ||
| image = Fly Icon.png | | image = Fly Icon.png | ||
| summary = fly you fools | | summary = fly you fools | ||
| cost = ki:2 | | cost = ki:2, action | ||
| damage = | | damage = amount: 1d4+1, type:Bludgeoning | ||
| recharge = Long Rest | | recharge = Long Rest | ||
| distance = melee | | distance = melee | ||
Line 177: | Line 195: | ||
| image = Fly Icon.png | | image = Fly Icon.png | ||
| summary = fly you fools | | summary = fly you fools | ||
| cost = | | cost = ki:2, action | ||
| damage = | | damage = amount: 1d4+1, type:Bludgeoning | ||
| recharge = Long Rest | | recharge = Long Rest | ||
| distance = melee | | distance = melee |
Revision as of 08:06, 25 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, action | damage = amount: 1d4+1, type: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: LR turns
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