User:Crashaholic/ActionCost: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(SAVE OFTEN PEOPLE YOU NEVER KNOW WHEN A BLACKOUT CAN HAPPEN)
(bardic inspiration inspired me to try editing on my phone)
Tags: Mobile edit Mobile web edit
Line 14: Line 14:
{{#rmatch: string={{{cost|}}} | pattern=([Rr]eaction) | then = {{#vardefine:reaction|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Reaction-->
{{#rmatch: string={{{cost|}}} | pattern=([Rr]eaction) | then = {{#vardefine:reaction|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Reaction-->
{{#rmatch: string={{{cost|}}} | pattern=([Mm]ovement)| then = {{#vardefine:movement|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Movement-->
{{#rmatch: string={{{cost|}}} | pattern=([Mm]ovement)| then = {{#vardefine:movement|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Movement-->
{{#rmatch: string={{{cost|}}}|pattern=([Kk]i)|then={{#vardefine:ki|{{#rmatch:{{{cost|}}}|[Kk]i:+([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Ki-->
{{#rmatch: string={{{cost|}}}|pattern=([Kk]i)|then={{#vardefine:ki|{{#rmatch:{{{cost|}}}|[Kk]i:+([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Ki-->
{{#rmatch: string={{{cost|}}}|pattern=([Ss]up[Dd]ie)|then={{#vardefine:sd|{{#rmatch:{{{cost|}}}|[Ss]up[Dd]ie:+([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Superiority Die-->
{{#rmatch: string={{{cost|}}}|pattern=([Ss]up[Dd]ie)|then={{#vardefine:sd|{{#rmatch:{{{cost|}}}|[Ss]up[Dd]ie:+([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Superiority Die-->
{{#rmatch: string={{{cost|}}}|pattern=([Aa]rc[Rr]ec)|then={{#vardefine:ar|{{#rmatch:{{{cost|}}}|[Aa]rc[Rr]ec:+([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Arcane Recovery-->
{{#rmatch: string={{{cost|}}}|pattern=([Aa]rc[Rr]ec)|then={{#vardefine:ar|{{#rmatch:{{{cost|}}}|[Aa]rc[Rr]ec:+([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Arcane Recovery-->
{{#rmatch: string={{{cost|}}}|pattern=([Bb]ar[Ii]ns)|then={{#vardefine:bi|{{#rmatch:{{{cost|}}}|[Bb]ar[Ii]ns:+([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Arcane Recovery-->
 
{{#rmatch: string={{{cost|}}}|pattern=([Bb]ar[Ii]ns)|then={{#vardefine:bi|{{#rmatch:{{{cost|}}}|[Bb]ar[Ii]ns:+([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Bardic Inspiration-->
 
{{#rmatch: string={{{cost|}}}|pattern=([Rr]age)|then={{#vardefine:rage|{{#rmatch:{{{cost|}}}|[Rr]age:+([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}<!--add cargo in this place-->|caseless=1}} <!--Rage-->
 
<!-- TODO: CLEAN THIS UP -->
 
{{#ifeq: {{#var: reaction}} | 1 | {{action|reaction}} | {{#ifeq: {{#var: action}} | 1 | {{#ifeq: {{#var: bonus}}| 1 | {{action|both}}<!--1,1--> | {{action}}<!--1,0-->}} | {{#ifeq: {{#var: bonus}} | 1 | {{action|bonus}}<!--0,1--> | {{blank}}
{{#ifeq: {{#var: reaction}} | 1 | {{action|reaction}} | {{#ifeq: {{#var: action}} | 1 | {{#ifeq: {{#var: bonus}}| 1 | {{action|both}}<!--1,1--> | {{action}}<!--1,0-->}} | {{#ifeq: {{#var: bonus}} | 1 | {{action|bonus}}<!--0,1--> | {{blank}}
<!--0,0-->}}}}}} {{#ifeq: {{#var: hasaction}} | 1 | {{#ifeq: {{#var: hasothers}} | 1 | +}}}} {{#ifexpr: {{#var: ki}} > 0 | {{#ifeq: {{#var: ki}} | 1 |  | {{#var: ki}}}}{{User:Tc/Ki}}{{#ifexpr: {{#var: ki}} > 1 | s}} | {{blank}}}}{{#ifexpr: {{#var: sd}} > 0 | {{#ifeq: {{#var: sd}} | 1 |  | {{#var: sd}}}}[[File:Superiority Die d8 Icon.png|25px]]Superiority Die{{#ifexpr: {{#var: sd}} > 1 | s}} | {{blank}}}}{{#ifexpr: {{#var: ar}} > 0 | {{#ifeq: {{#var: ar}} | 1 |  | {{#var: ar}}}}[[File:Arcane Recovery Charges Icons.png|25px]]Arcane Recovery{{#ifexpr: {{#var: sd}} > 1 | s}} | {{blank}}}}
<!--0,0-->}}}}}} {{#ifeq: {{#var: hasaction}} | 1 | {{#ifeq: {{#var: hasothers}} | 1 | +}}}} {{#ifexpr: {{#var: ki}} > 0 | {{#ifeq: {{#var: ki}} | 1 |  | {{#var: ki}}}}{{User:Tc/Ki}}{{#ifexpr: {{#var: ki}} > 1 | s}} | {{blank}}}}{{#ifexpr: {{#var: sd}} > 0 | {{#ifeq: {{#var: sd}} | 1 |  | {{#var: sd}}}}[[File:Superiority Die d8 Icon.png|25px]]Superiority Die{{#ifexpr: {{#var: sd}} > 1 | s}} | {{blank}}}}{{#ifexpr: {{#var: ar}} > 0 | {{#ifeq: {{#var: ar}} | 1 |  | {{#var: ar}}}}[[File:Arcane Recovery Charges Icons.png|25px]]Arcane Recovery{{#ifexpr: {{#var: ar}} > 1 | s}} | {{blank}}}}{{#ifexpr: {{#var: bi}} > 0 | {{#ifeq: {{#var: bi}} | 1 |  | {{#var: bi}}}}[[File:Bardic Inspiration Resource Icon.png|25px]]Bardic Inspiration{{#ifexpr: {{#var: bi}} > 1 | s}} | {{blank}}}}
}}</includeonly>
}}</includeonly>
<noinclude>
<noinclude>
Line 53: Line 62:
| {{User:Crashaholic/ActionCost|cost=supdie:1 reaction}}
| {{User:Crashaholic/ActionCost|cost=supdie:1 reaction}}
| cost=supdie:1 reaction
| cost=supdie:1 reaction
|-
| {{User:Crashaholic/ActionCost|cost=barins:1}}
| cost=barins:1
|-
|
| cost=rage:1
|-
|-
| {{User:Crashaholic/ActionCost|cost=arcrec:1}}
| {{User:Crashaholic/ActionCost|cost=arcrec:1}}

Revision as of 02:42, 17 August 2023


outcome test
Action cost=action
Bonus action cost=bonus
Action + Bonus action cost=action bonus
Reaction cost=reaction
Reaction cost=reaction action
3Ki Points cost=ki:3
Ki Point cost=ki:1
Action + 3Ki Points cost=ki:3 action
Reaction + Superiority Die d8 Icon.pngSuperiority Die cost=supdie:1 reaction
Bardic Inspiration Resource Icon.pngBardic Inspiration cost=barins:1
cost=rage:1
Arcane Recovery Charges Icons.pngArcane Recovery cost=arcrec:1