User:Crashaholic/ActionTemplate: Difference between revisions
Jump to navigation
Jump to search
Crashaholic (talk | contribs) m (maybe this will fix pages without any properties?) |
Crashaholic (talk | contribs) (two damage types will now merge into one) |
||
Line 13: | Line 13: | ||
{{trim| | {{trim| | ||
{{#if: {{{damage|}}} | | {{#if: {{{damage|}}} | | ||
{{#vardefine: amt|}} | {{#vardefine: amt|}}{{#vardefine: typ|}}{{#vardefine: mod|}}{{#vardefine: per|}}{{#vardefine: sav|}}{{#vardefine: sfx|}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|amount:}}||| {{#vardefine: amt|{{#rmatch: {{{damage|}}}|amount:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|type:}}|||{{#vardefine: typ|{{#rmatch: {{{damage|}}}|type:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|mod:}}|||{{#vardefine: mod|{{#rmatch: {{{damage|}}}|mod:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|per:}}|||{{#vardefine: dot|{{#rmatch: {{{damage|}}}|per:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save:}}|||{{#vardefine: sav|{{#rmatch: {{{damage|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|amount:}}|| | {{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save effect:}}|||{{#vardefine: sfx|{{#rmatch: {{{damage|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|type:}}|| | {{InfoBlob|{{DamageInfo|{{#var: amt}}|{{#var: typ}}|modifier = {{#var:mod}}|per = {{#var: dot}}|save = {{#var: sav}}|save effect = {{#var: sfx}}}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|mod:}}|| | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|per:}}|| | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save:}}|| | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save effect:}}|| | |||
{{ | |||
{{#if: {{{damage2|}}} | | {{#if: {{{damage2|}}} | | ||
{{#vardefine: amt|}} | {{#vardefine: amt|}}{{#vardefine: typ|}}{{#vardefine: mod|}}{{#vardefine: per|}}{{#vardefine: sav|}}{{#vardefine: sfx|}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|amount:}}||| {{#vardefine: amt|{{#rmatch: {{{damage2|}}}|amount:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|type:}}|||{{#vardefine: typ|{{#rmatch: {{{damage2|}}}|type:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|mod:}}|||{{#vardefine: mod|{{#rmatch: {{{damage2|}}}|mod:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|per:}}|||{{#vardefine: dot|{{#rmatch: {{{damage2|}}}|per:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|save:}}|||{{#vardefine: sav|{{#rmatch: {{{damage2|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|amount:}}|| | {{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|save effect:}}|||{{#vardefine: sfx|{{#rmatch: {{{damage2|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|type:}}|| | + {{DamageInfo|{{#var: amt}}|{{#var: typ}}|modifier = {{#var:mod}}|per = {{#var: dot}}|save = {{#var: sav}}|save effect = {{#var: sfx}}}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|mod:}}|| | |{{blank}}}}}}}}}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|per:}}|| | |||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|save:}}|| | |||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|save effect:}}|| | |||
}} | |||
{{trim|<!--DONT DO HACKS AT HOME KIDS--> | {{trim|<!--DONT DO HACKS AT HOME KIDS--> | ||
{{#vardefine:action|0}} | {{#vardefine:action|0}} | ||
Line 135: | Line 123: | ||
| concentration = | | concentration = | ||
| damage = | | damage = | ||
| damage2 = | |||
| recharge = | | recharge = | ||
| duration = | | duration = | ||
Line 168: | Line 157: | ||
|- | |- | ||
| {{C|damage}} | | {{C|damage}} | ||
| The damage of the action. '''REWRITE PENDING''' | |||
|- | |||
| {{C|damage2}} | |||
| The damage of the action. '''REWRITE PENDING''' | | The damage of the action. '''REWRITE PENDING''' | ||
|- | |- | ||
Line 191: | Line 183: | ||
| cost = ki:2, action | | cost = ki:2, action | ||
| damage = amount: 1d4+1, type:Bludgeoning | | damage = amount: 1d4+1, type:Bludgeoning | ||
| damage2 = amount: 1d6, type: Fire | |||
| recharge = Long Rest | | recharge = Long Rest | ||
| distance = melee | | distance = melee |
Revision as of 08:59, 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 = | damage2 = | 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 | damage2 = amount: 1d6, type: Fire | 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
+ 1d6 (1~6) Fire
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