User:Crashaholic/ActionTemplate: Difference between revisions
Jump to navigation
Jump to search
Crashaholic (talk | contribs) m (im already case-insensitive, why do i still check for both upper and lower case?) |
Crashaholic (talk | contribs) m (if one exists, the others probably dont (im cheating a bit more here, to try and make it less intensive on the servers by putting everything under else)) |
||
Line 35: | Line 35: | ||
{{#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|}}}|[Aa]rc[Rr]ec:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| | {{#rmatch: {{{cost|}}}|(arcrec)|{{#vardefine:ar|{{#rmatch:{{{cost|}}}|[Aa]rc[Rr]ec:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Arcane Recovery--> | ||
{{#rmatch: {{{cost|}}}|(barins)|{{#vardefine:bi|{{#rmatch:{{{cost|}}}|[Bb]ar[Ii]ns:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| | {{#rmatch: {{{cost|}}}|(barins)|{{#vardefine:bi|{{#rmatch:{{{cost|}}}|[Bb]ar[Ii]ns:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Bardic Inspiration--> | ||
{{#rmatch: {{{cost|}}}|(chadiv)|{{#vardefine:cd|{{#rmatch:{{{cost|}}}|[Cc]ha[Dd]iv:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| | {{#rmatch: {{{cost|}}}|(chadiv)|{{#vardefine:cd|{{#rmatch:{{{cost|}}}|[Cc]ha[Dd]iv:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Channel Divinity--> | ||
{{#rmatch: {{{cost|}}}|(chaoat)|{{#vardefine:co|{{#rmatch:{{{cost|}}}|[Cc]ha[Oo]at:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| | {{#rmatch: {{{cost|}}}|(chaoat)|{{#vardefine:co|{{#rmatch:{{{cost|}}}|[Cc]ha[Oo]at:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Channel Oath--> | ||
{{#rmatch: {{{cost|}}}|(ki)|{{#vardefine:ki|{{#rmatch:{{{cost|}}}|[Kk]i:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| | {{#rmatch: {{{cost|}}}|(ki)|{{#vardefine:ki|{{#rmatch:{{{cost|}}}|[Kk]i:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Ki--> | ||
{{#rmatch: {{{cost|}}}|(layonh)|{{#vardefine:lh|{{#rmatch:{{{cost|}}}|[Ll]ay[Oo]n[Hh]:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| | {{#rmatch: {{{cost|}}}|(layonh)|{{#vardefine:lh|{{#rmatch:{{{cost|}}}|[Ll]ay[Oo]n[Hh]:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Lay On Hands--> | ||
{{#rmatch: {{{cost|}}}|(natrec)|{{#vardefine:nr|{{#rmatch:{{{cost|}}}|[Nn]at[Rr]ec:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| | {{#rmatch: {{{cost|}}}|(natrec)|{{#vardefine:nr|{{#rmatch:{{{cost|}}}|[Nn]at[Rr]ec:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Natural Recovery--> | ||
{{#rmatch: {{{cost|}}}|(rage)|{{#vardefine:rg|{{#rmatch:{{{cost|}}}|[Rr]age:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| | {{#rmatch: {{{cost|}}}|(rage)|{{#vardefine:rg|{{#rmatch:{{{cost|}}}|[Rr]age:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Rage--> | ||
{{#rmatch: {{{cost|}}}|(supdie)|{{#vardefine:sd|{{#rmatch:{{{cost|}}}|[Ss]up[Dd]ie:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| | {{#rmatch: {{{cost|}}}|(supdie)|{{#vardefine:sd|{{#rmatch:{{{cost|}}}|[Ss]up[Dd]ie:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--Superiority Die--> | ||
{{#rmatch: {{{cost|}}}|(warpri)|{{#vardefine:wp|{{#rmatch:{{{cost|}}}|[Ww]ar[Pp]ri:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| | {{#rmatch: {{{cost|}}}|(warpri)|{{#vardefine:wp|{{#rmatch:{{{cost|}}}|[Ww]ar[Pp]ri:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->| <!--War Priest--> | ||
{{#rmatch: {{{cost|}}}|( | {{#rmatch: {{{cost|}}}|(wldshp)|{{#vardefine:ws|{{#rmatch:{{{cost|}}}|[Ww]ld[Ss]hp:\s?([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|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 177: | Line 177: | ||
| image = Fly Icon.png | | image = Fly Icon.png | ||
| summary = fly you fools | | summary = fly you fools | ||
| cost = | | cost = rage:2 action | ||
| damage = {{DamageInfo|1d4+1|Bludgeoning}} | | damage = {{DamageInfo|1d4+1|Bludgeoning}} | ||
| recharge = Long Rest | | recharge = Long Rest |
Revision as of 03:25, 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 | 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: 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