User:Crashaholic/ActionTemplate: Difference between revisions
Jump to navigation
Jump to search
Crashaholic (talk | contribs) (EMERGENCY ADD A DAMAGE2) |
Crashaholic (talk | contribs) (if there are no properties, leave it empty. also defines d1 and d2 for later) |
||
Line 8: | Line 8: | ||
== Description == | == Description == | ||
{{{description}}} | {{{description}}}{{#vardefine: hasprop|0}}{{#vardefine: hasprop | {{#if: {{{damage|}}} | 1}}{{#if: {{{cost|}}} | 1}}{{#if: {{{concentration|}}} | 1}}{{#if: {{{recharge|}}} | 1}}{{#if: {{{distance|}}} | 1}}{{#if: {{{aoe|}}} | 1}}}} | ||
{{#ifexpr: {{#var: hasprop}} > 0| == Properties == | |||
== Properties == | |||
{{trim| | {{trim| | ||
{{#if: {{{damage|}}} | | {{#if: {{{damage|}}} | | ||
Line 25: | Line 24: | ||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save:}}|| <!--doesnt exist--> |{{#vardefine: sav|{{#rmatch: {{{damage|}}}|save:\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}}}}}} | {{#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}}}} | {{#vardefine:d1|{{trim|{{DamageInfo|{{#var: amt}}|{{#var: typ}}|modifier = {{#var:mod}}|per = {{#var: dot}}|save = {{#var: sav}}|save effect = {{#var: sfx}}}}}}}} | ||
}}|{{blank}}}} | }}|{{blank}}}} | ||
{{trim| | {{trim| | ||
Line 41: | Line 40: | ||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|save:}}|| <!--doesnt exist--> |{{#vardefine: sav|{{#rmatch: {{{damage2|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | {{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|save:}}|| <!--doesnt exist--> |{{#vardefine: sav|{{#rmatch: {{{damage2|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|save effect:}}|| <!--doesnt exist--> |{{#vardefine: sfx|{{#rmatch: {{{damage2|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | {{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|save effect:}}|| <!--doesnt exist--> |{{#vardefine: sfx|{{#rmatch: {{{damage2|}}}|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}}}} | {{#vardefine:d2|{{trim|{{DamageInfo|{{#var: amt}}|{{#var: typ}}|modifier = {{#var:mod}}|per = {{#var: dot}}|save = {{#var: sav}}|save effect = {{#var: sfx}}}}}}}} | ||
}}|{{blank}}}} | }}|{{blank}}}} | ||
{{trim|<!--DONT DO HACKS AT HOME KIDS--> | {{trim|<!--DONT DO HACKS AT HOME KIDS--> | ||
Line 115: | Line 114: | ||
}} | }} | ||
{{trim|{{#if: {{{additional|}}} | {{{additional}}}| {{blank}}}}}} | {{trim|{{#if: {{{additional|}}} | {{{additional}}}| {{blank}}}}}} | ||
}} | |||
{{#if: {{{higherlevels|}}} | == At Higher Levels ==}} | {{#if: {{{higherlevels|}}} | == At Higher Levels ==}} | ||
{{trim|{{#if: {{{higherlevels|}}} | {{{higherlevels}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | {{trim|{{#if: {{{higherlevels|}}} | {{{higherlevels}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> |
Revision as of 08:43, 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
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