User:Crashaholic/ActionTemplate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(WIP amounttext) |
||
Line 14: | Line 14: | ||
{{#if: {{{damage|}}} | | {{#if: {{{damage|}}} | | ||
{{#lvardef: amt|}}{{#lvardef: typ|}}{{#lvardef: mod|}}{{#lvardef: per|}}{{#lvardef: sav|}}{{#lvardef: sfx|}} | {{#lvardef: amt|}}{{#lvardef: typ|}}{{#lvardef: mod|}}{{#lvardef: per|}}{{#lvardef: sav|}}{{#lvardef: sfx|}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|amounttext:}}||| {{#lvardef: amttxt|{{#rmatch: {{{damage|}}}|amounttext:\s?([^\s][^,]*)|$1|caseless=0}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|amount:}}||| {{#lvardef: amt|{{#rmatch: {{{damage|}}}|amount:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | {{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|amount:}}||| {{#lvardef: amt|{{#rmatch: {{{damage|}}}|amount:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|type:}}|||{{#lvardef: typ|{{#rmatch: {{{damage|}}}|type:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | {{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|type:}}|||{{#lvardef: typ|{{#rmatch: {{{damage|}}}|type:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | ||
Line 20: | Line 21: | ||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save:}}|||{{#lvardef: sav|{{#rmatch: {{{damage|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | {{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save:}}|||{{#lvardef: sav|{{#rmatch: {{{damage|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save effect:}}|||{{#lvardef: sfx|{{#rmatch: {{{damage|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | {{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save effect:}}|||{{#lvardef: sfx|{{#rmatch: {{{damage|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | ||
{{#lvardef: dmg1|{{DamageInfo|{{#lvar: amt}}|{{#lvar: typ}}|modifier = {{#lvar:mod}}|per = {{#lvar: dot}}|save = {{#lvar: sav}}|save effect = {{#lvar: sfx}}}}}}}} | {{#lvardef: dmg1|{{#if: {{#lvar: amttxt}}|{{DamageText|{{#lvar: amttxt}} |{{#lvar: typ}}}}|{{DamageInfo|{{#lvar: amt}}|{{#lvar: typ}}}}|modifier = {{#lvar:mod}}|per = {{#lvar: dot}}|save = {{#lvar: sav}}|save effect = {{#lvar: sfx}}}}}}}} | ||
{{#if: {{{damage2|}}} | | {{#if: {{{damage2|}}} | | ||
{{#lvardef: amt|}}{{#lvardef: typ|}}{{#lvardef: mod|}}{{#lvardef: per|}}{{#lvardef: sav|}}{{#lvardef: sfx|}} | {{#lvardef: amttxt|}}{{#lvardef: amt|}}{{#lvardef: typ|}}{{#lvardef: mod|}}{{#lvardef: per|}}{{#lvardef: sav|}}{{#lvardef: sfx|}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|amounttext:}}||| {{#lvardef: amttxt|{{#rmatch: {{{damage2|}}}|amounttext:\s?([^\s][^,]*)|$1|caseless=0}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|amount:}}||| {{#lvardef: amt|{{#rmatch: {{{damage2|}}}|amount:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | {{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|amount:}}||| {{#lvardef: amt|{{#rmatch: {{{damage2|}}}|amount:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|type:}}|||{{#lvardef: typ|{{#rmatch: {{{damage2|}}}|type:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | {{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|type:}}|||{{#lvardef: typ|{{#rmatch: {{{damage2|}}}|type:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | ||
Line 29: | Line 31: | ||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|save:}}|||{{#lvardef: sav|{{#rmatch: {{{damage2|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | {{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|save:}}|||{{#lvardef: sav|{{#rmatch: {{{damage2|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|save effect:}}|||{{#lvardef: sfx|{{#rmatch: {{{damage2|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | {{#ifeq:{{#pos:{{lc:{{{damage2|}}}}}|save effect:}}|||{{#lvardef: sfx|{{#rmatch: {{{damage2|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | ||
{{#lvardef: dmg2|{{DamageInfo|{{#lvar: amt}}|{{#lvar: typ}}|modifier = {{#lvar:mod}}|per = {{#lvar: dot}}|save = {{#lvar: sav}}|save effect = {{#lvar: sfx}}}}}}}} | {{#lvardef: dmg2|{{#if: {{#lvar: amttxt}}|{{DamageText|{{#lvar: amttxt}} |{{#lvar: typ}}}}|{{DamageInfo|{{#lvar: amt}}|{{#lvar: typ}}}}|modifier = {{#lvar:mod}}|per = {{#lvar: dot}}|save = {{#lvar: sav}}|save effect = {{#lvar: sfx}}}}}}}} | ||
{{#if: {{{damage|}}}| {{#if:{{{damage2|}}}| {{InfoBlob|{{#lvar: dmg1}} + {{#lvar: dmg2}}}} | {{#lvar: dmg1}}}}|{{blank}}}} | {{#if: {{{damage|}}}| {{#if:{{{damage2|}}}| {{InfoBlob|{{#lvar: dmg1}} + {{#lvar: dmg2}}}} | {{#lvar: dmg1}}}}|{{blank}}}} | ||
}} | }} | ||
Line 256: | Line 258: | ||
| summary = fly you fools | | summary = fly you fools | ||
| cost = ki:2, action | | cost = ki:2, action | ||
| damage = | | damage = amounttext: 1d4+1, type:Bludgeoning | ||
| damage2 = amount: 1d6, type: Fire | | damage2 = amount: 1d6, type: Fire | ||
| recharge = Long Rest | | recharge = Long Rest |
Revision as of 23:27, 4 September 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 = | X learns at level X = | 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 | range = 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 | class learns at level 3 = Monk | race learns at level 5 = Wood Elf }}
fly you fools
Description
abc
Properties
1d4+1 Bludgeoning + 1d6 (1~6) Fire
Action + 2UNDEFINED
Recharge: Long rest
Duration: LR turns
Melee: 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
Classes:
- Class Level 3:
Races:
- Character Level 5:
(Character Level is the sum of all Class Levels for a multi-classed character.)
Notes
bar