Template:Action page: Difference between revisions

Jump to navigation Jump to search
fungal infestation support
(have properties appear in some edge cases)
(fungal infestation support)
Line 20: Line 20:
{{#lvardef:cd|0}}
{{#lvardef:cd|0}}
{{#lvardef:co|0}}
{{#lvardef:co|0}}
{{#lvardef:fi|0}}
{{#lvardef:ki|0}}
{{#lvardef:ki|0}}
{{#lvardef:lh|0}}
{{#lvardef:lh|0}}
Line 46: Line 47:
{{#rmatch: {{{cost|}}}|warpri|{{#lvardef:wp|{{#rmatch:{{{cost|}}}|warpri:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--War Priest-->
{{#rmatch: {{{cost|}}}|warpri|{{#lvardef:wp|{{#rmatch:{{{cost|}}}|warpri:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--War Priest-->
{{#rmatch: {{{cost|}}}|wldshp|{{#lvardef:ws|{{#rmatch:{{{cost|}}}|wldshp:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Wild Shape-->
{{#rmatch: {{{cost|}}}|wldshp|{{#lvardef:ws|{{#rmatch:{{{cost|}}}|wldshp:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Wild Shape-->
{{#rmatch: {{{cost|}}}|fnginf|{{#lvardef:fi|{{#rmatch:{{{cost|}}}|fnginf:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Fungal Infestation-->
{{#if: {{{level|}}} | {{#ifeq: {{{level}}} | cantrip | | {{#lvardef:hasothers|1}}}} }} <!--Spell Level + Not Cantrip -->
{{#if: {{{level|}}} | {{#ifeq: {{{level}}} | cantrip | | {{#lvardef:hasothers|1}}}} }} <!--Spell Level + Not Cantrip -->
|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}} <!--Wild Shape--> {{#ifeq: {{#lvar: hasaction}} | 1 | {{#lvardef:hascost|1}} | {{#ifeq: {{#lvar: hasothers}} | 1 | {{#lvardef:hascost|1}} }}}} <!-- Find out if Cost: is needed -->
|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}{{#ifeq: {{#lvar: hasaction}} | 1 | {{#lvardef:hascost|1}} | {{#ifeq: {{#lvar: hasothers}} | 1 | {{#lvardef:hascost|1}} }}}} <!-- Find out if Cost: is needed -->
<!--if you think i know what im doing, ymmv--><dl class="bg3wiki-property-list">
<!--if you think i know what im doing, ymmv--><dl class="bg3wiki-property-list">
{{#ifeq: {{#lvar: hasaction}} | 1 |
{{#ifeq: {{#lvar: hasaction}} | 1 |
Line 55: Line 57:
         | cantrip =
         | cantrip =
         | #default = {{SmallIcon|Spell Slot Icon.png}} Level {{{level}}} Spell Slot
         | #default = {{SmallIcon|Spell Slot Icon.png}} Level {{{level}}} Spell Slot
}} | {{#ifexpr: {{#lvar: ar}} > 0|{{R|ar|{{#lvar: ar}}}}}}{{#ifexpr: {{#lvar: bi}} > 0|{{R|bi|{{#lvar: bi}}}}}}{{#ifexpr: {{#lvar: cd}} > 0|{{R|cd|{{#lvar: cd}}}}}}{{#ifexpr: {{#lvar: co}} > 0|{{R|co|{{#lvar: co}}}}}}{{#ifexpr: {{#lvar: ki}} > 0|{{R|ki|{{#lvar: ki}}}}}}{{#ifexpr: {{#lvar: lh}} > 0|{{R|lh|{{#lvar: lh}}}}}}{{#ifexpr: {{#lvar: rg}} > 0|{{R|rg|{{#lvar: rg}}}}}}{{#ifexpr: {{#lvar: sd}} > 0|{{R|sd|{{#lvar: sd}}}}}}{{#ifexpr: {{#lvar: wp}} > 0|{{R|wp|{{#lvar: wp}}}}}}{{#ifexpr: {{#lvar: ws}} > 0|{{R|ws|{{#lvar: ws}}}}}}
}} | {{#ifexpr: {{#lvar: ar}} > 0|{{R|ar|{{#lvar: ar}}}}}}{{#ifexpr: {{#lvar: bi}} > 0|{{R|bi|{{#lvar: bi}}}}}}{{#ifexpr: {{#lvar: cd}} > 0|{{R|cd|{{#lvar: cd}}}}}}{{#ifexpr: {{#lvar: co}} > 0|{{R|co|{{#lvar: co}}}}}}{{#ifexpr: {{#lvar: fi}} > 0|{{R|fi|{{#lvar: fi}}}}}}{{#ifexpr: {{#lvar: ki}} > 0|{{R|ki|{{#lvar: ki}}}}}}{{#ifexpr: {{#lvar: lh}} > 0|{{R|lh|{{#lvar: lh}}}}}}{{#ifexpr: {{#lvar: rg}} > 0|{{R|rg|{{#lvar: rg}}}}}}{{#ifexpr: {{#lvar: sd}} > 0|{{R|sd|{{#lvar: sd}}}}}}{{#ifexpr: {{#lvar: wp}} > 0|{{R|wp|{{#lvar: wp}}}}}}{{#ifexpr: {{#lvar: ws}} > 0|{{R|ws|{{#lvar: ws}}}}}}
}}<!-- End if/if not level spell -->
}}<!-- End if/if not level spell -->
}}<!-- End if/if not hasaction -->
}}<!-- End if/if not hasaction -->
Line 400: Line 402:
},
},
"cost": {
"cost": {
"description": "The resource cost of the action. Format is {Resource}:{Amount}, {\"action\" if action etc.}. Resource types: \n* Arcane Recovery: arcrec \n* Bardic Inspiration: barins \n* Channel Divinity: chadiv \n* Channel Oath: chaoat \n* Ki: ki \n* Lay On Hands: layonh \n* Natural Recovery: natrec \n* Rage: rage \n* Superiority Die: supdie \n* War Priest: warpri \n* Wild Shape: wldshp",
"description": "The resource cost of the action. Format is {Resource}:{Amount}, {\"action\" if action etc.}. Resource types: \n* Arcane Recovery: arcrec \n* Bardic Inspiration: barins \n* Channel Divinity: chadiv \n* Channel Oath: chaoat \n* Fungal Infestation: fnginf \n* Ki: ki \n* Lay On Hands: layonh \n* Natural Recovery: natrec \n* Rage: rage \n* Superiority Die: supdie \n* War Priest: warpri \n* Wild Shape: wldshp",
"example": "action",
"example": "action",
"suggestedvalues": [
"suggestedvalues": [

Navigation menu