User:Crashaholic/ActionTemplate: Difference between revisions
Jump to navigation
Jump to search
Crashaholic (talk | contribs) (two damage types will now merge into one) |
Crashaholic (talk | contribs) (fixes weird infoblob being weird) |
||
Line 13: | Line 13: | ||
{{trim| | {{trim| | ||
{{#if: {{{damage|}}} | | {{#if: {{{damage|}}} | | ||
{{#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|}}}}}|save effect:}}|||{{#vardefine: sfx|{{#rmatch: {{{damage|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#vardefine: dmg1|{{DamageInfo|{{#var: amt}}|{{#var: typ}}|modifier = {{#var:mod}}|per = {{#var: dot}}|save = {{#var: sav}}|save effect = {{#var: sfx}}}}}}}} | |||
{{#if: {{{damage2|}}} | | {{#if: {{{damage2|}}} | | ||
{{#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|}}}}}|save effect:}}|||{{#vardefine: sfx|{{#rmatch: {{{damage2|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#vardefine: dmg2|{{DamageInfo|{{#var: amt}}|{{#var: typ}}|modifier = {{#var:mod}}|per = {{#var: dot}}|save = {{#var: sav}}|save effect = {{#var: sfx}}}}}}}} | |||
|{{ | {{#if: {{{damage|}}}| {{#if:{{{damage2|}}}| {{InfoBlob|{{#var: dmg1}} + {{#var: dmg2}}}} | {{#var: dmg1}}}}|{{blank}}}} | ||
}} | |||
{{trim|<!--DONT DO HACKS AT HOME KIDS--> | {{trim|<!--DONT DO HACKS AT HOME KIDS--> | ||
{{#vardefine:action|0}} | {{#vardefine:action|0}} |
Revision as of 13:27, 31 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