Ad placeholder

Template:Action page: Difference between revisions

Jump to navigation Jump to search
add freeaction support
m (just a minor doc tweak)
(add freeaction support)
Line 14: Line 14:
{{#lvardef:bonus|0}}
{{#lvardef:bonus|0}}
{{#lvardef:reaction|0}}
{{#lvardef:reaction|0}}
{{#lvardef:freeaction|0}}
{{#lvardef:movement|0}}
{{#lvardef:movement|0}}
{{#lvardef:ar|0}}
{{#lvardef:ar|0}}
Line 32: Line 33:
{{#rmatch: {{{cost|}}}|bonus|{{#lvardef:bonus|1}} {{#lvardef:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Bonus-->
{{#rmatch: {{{cost|}}}|bonus|{{#lvardef:bonus|1}} {{#lvardef:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Bonus-->
{{#rmatch: {{{cost|}}}|reaction|{{#lvardef:reaction|1}} {{#lvardef:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Reaction-->
{{#rmatch: {{{cost|}}}|reaction|{{#lvardef:reaction|1}} {{#lvardef:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Reaction-->
{{#rmatch: {{{cost|}}}|freeaction|{{#lvardef:freeaction|1}} {{#lvardef:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Free Action-->
{{#rmatch: {{{cost|}}}|movement|{{#lvardef:movement|1}} {{#lvardef:hasmovemt|1}}<!--add cargo in this place-->|caseless=1}} <!--Movement-->
{{#rmatch: {{{cost|}}}|movement|{{#lvardef:movement|1}} {{#lvardef:hasmovemt|1}}<!--add cargo in this place-->|caseless=1}} <!--Movement-->
{{#rmatch: {{{cost|}}}|arcrec|{{#lvardef:ar|{{#rmatch:{{{cost|}}}|arcrec:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Arcane Recovery-->
{{#rmatch: {{{cost|}}}|arcrec|{{#lvardef:ar|{{#rmatch:{{{cost|}}}|arcrec:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Arcane Recovery-->
Line 47: Line 49:
{{#ifeq: {{#lvar: hasaction}} | 1 |
{{#ifeq: {{#lvar: hasaction}} | 1 |
<dt> Cost:
<dt> Cost:
<dd> {{#ifeq: {{#lvar: reaction}} | 1 | {{action|reaction}} | {{#ifeq: {{#lvar: action}} | 1 | {{#ifeq: {{#lvar: bonus}}| 1 | {{action|both}}<!--1,1--> | {{action}}<!--1,0-->}} | {{#ifeq: {{#lvar: bonus}} | 1 | {{action|bonus}}<!--0,1--> | {{blank}}<!--0,0-->}}}}}} {{#ifeq: {{#lvar: hasaction}} | 1 | {{#ifeq: {{#lvar: hasothers}} | 1 | +}}}} {{#if: {{{level|}}} |  
<dd> {{#ifeq: {{#lvar: freeaction}} | 1 | {{InfoBlob|Free Action}} | {{#ifeq: {{#lvar: reaction}} | 1 | {{action|reaction}} | {{#ifeq: {{#lvar: action}} | 1 | {{#ifeq: {{#lvar: bonus}}| 1 | {{action|both}}<!--1,1--> | {{action}}<!--1,0-->}} | {{#ifeq: {{#lvar: bonus}} | 1 | {{action|bonus}}<!--0,1--> | {{blank}}<!--0,0-->}}}}}}}} {{#ifeq: {{#lvar: hasaction}} | 1 | {{#ifeq: {{#lvar: hasothers}} | 1 | +}}}} {{#if: {{{level|}}} |  
{{#switch: {{{level}}}
{{#switch: {{{level}}}
         | cantrip =
         | cantrip =
Line 252: Line 254:
|{{#ifeq: {{#lvar: action}} | 1 |<!--Spells aren't included in Actions-->
|{{#ifeq: {{#lvar: action}} | 1 |<!--Spells aren't included in Actions-->
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Bonus Actions]]
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Bonus Actions]]
| [[Category:Passive Features]]  
|{{#ifeq: {{#lvar: freeaction}} | 1 |[[Category:Free Actions]]
| [[Category:Passive Features]]  
}}
}}
}}
|}}
|}}
Line 260: Line 264:
|{{#ifeq: {{#lvar: action}} | 1 |[[Category:Class Actions]][[Category:Actions]]
|{{#ifeq: {{#lvar: action}} | 1 |[[Category:Class Actions]][[Category:Actions]]
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Class Actions]][[Category:Bonus Actions]]
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Class Actions]][[Category:Bonus Actions]]
| [[Category:Class Actions]][[Category:Passive Features]]  
|{{#ifeq: {{#lvar: freeaction}} | 1 |[[Category:Class Actions]][[Category:Free Actions]]
| [[Category:Class Actions]][[Category:Passive Features]]  
}}
}}
}}
|}}
|}}
Line 268: Line 274:
|{{#ifeq: {{#lvar: action}} | 1 |[[Category:Racial Action]][[Category:Actions]]
|{{#ifeq: {{#lvar: action}} | 1 |[[Category:Racial Action]][[Category:Actions]]
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Racial Action]][[Category:Bonus Actions]]
|{{#ifeq: {{#lvar: bonus}} | 1 |[[Category:Racial Action]][[Category:Bonus Actions]]
                | [[Category:Racial Action]][[Category:Passive Features]]  
|{{#ifeq: {{#lvar: freeaction}} | 1 |[[Category:Racial Action]][[Category:Free Actions]]
            }}
| [[Category:Racial Action]][[Category:Passive Features]]  
        |}}
}}
}}
        }}
   |}}
   |}}
|
|
}} <!-- End if race can learn -->
}}<!-- End if race can learn -->
}}<!-- End if class can learn -->
}}<!-- End if class can learn -->
}}<!-- End if is a spell -->
}}<!-- End if is a spell -->
Line 374: Line 382:
"action",
"action",
"bonus",
"bonus",
"reaction",
"freeaction",
"ki:1, action",
"ki:1, action",
"supdie:1, bonus",
"supdie:1, bonus"
"reaction"
],
],
"suggested": true,
"suggested": true,

Navigation menu