Editing User:Crashaholic/ActionCost

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 8: Line 8:
{{#vardefine:ar|0}}
{{#vardefine:ar|0}}
{{#vardefine:bi|0}}
{{#vardefine:bi|0}}
{{#vardefine:rage|0}}
{{#vardefine:hasaction|0}}
{{#vardefine:hasaction|0}}
{{#vardefine:hasothers|0}}
{{#vardefine:hasothers|0}}
Line 15: 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}} <!--Bardic Inspiration-->
{{#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-->
{{#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-->


{{#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 | +}}}} {{User:Crashaholic/ShowIconWithText|thevar=ki|imagelink=Monk Ki Icon.png|name=Ki Charge}}{{User:Crashaholic/ShowIconWithText|thevar=sd|imagelink=Superiority Die d8 Icon.png|name=Superiority Die}}{{User:Crashaholic/ShowIconWithText|thevar=ar|imagelink=Arcane Recovery Charges Icons.png|name=Arcane Recovery}}{{User:Crashaholic/ShowIconWithText|thevar=bi|imagelink=Bardic Inspiration Resource Icon.png|name=Bardic Inspiration}}{{User:Crashaholic/ShowIconWithText|thevar=rage|imagelink=Rage Charges Icons.png|name=Rage Charge}}
<!-- 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}}
<!--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 59: Line 66:
| cost=barins:1
| cost=barins:1
|-
|-
| {{User:Crashaholic/ActionCost|cost=rage:1}}
|  
| cost=rage:1
| cost=rage:1
|-
|-
Please note that all contributions to Baldur's Gate 3 Wiki are considered to be released under the CC BY-NC-SA license, except when noted otherwise (see BG3Wiki:Copyrights for details). If you do not want your writing to be edited and redistributed at will, do not submit it here. Per our Content Rules, you are promising that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)