User:Crashaholic/ActionCost: Difference between revisions
Jump to navigation
Jump to search
Crashaholic (talk | contribs) (WIP) |
Crashaholic (talk | contribs) m (addede rage charge) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{trim| | <includeonly>{{trim|<!--DONT DO HACKS AT HOME KIDS--> | ||
{{#vardefine:action|0}} | {{#vardefine:action|0}} | ||
{{#vardefine:bonus|0}} | {{#vardefine:bonus|0}} | ||
{{#vardefine:reaction|0}} | {{#vardefine:reaction|0}} | ||
{{#rmatch: string={{{cost|}}} | pattern=\W([Aa]ction)| then = {{#vardefine:action|1}}|caseless=1}} | {{#vardefine:movement|0}} | ||
{{#rmatch: string={{{cost|}}} | pattern=([Bb]onus)| then = {{#vardefine:bonus|1}}|caseless=1}} | {{#vardefine:ki|0}} | ||
{{#rmatch: string={{{cost|}}} | pattern=([Rr]eaction) | then = {{#vardefine:reaction|1}}|caseless=1}} | {{#vardefine:sd|0}} | ||
{{#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 | {{bonus}}<!--0,1--> | {{blank}} | {{#vardefine:ar|0}} | ||
<!--0,0-->}}}}}} | {{#vardefine:bi|0}} | ||
}} | {{#vardefine:rage|0}} | ||
</includeonly> | {{#vardefine:hasaction|0}} | ||
<noinclude>{{User:Crashaholic/ActionCost|cost=reaction}}</noinclude> | {{#vardefine:hasothers|0}} | ||
{{#rmatch: string={{{cost|}}} | pattern=\W([Aa]ction)| then = {{#vardefine:action|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Action--> | |||
{{#rmatch: string={{{cost|}}} | pattern=([Bb]onus)| then = {{#vardefine:bonus|1}} {{#vardefine:hasaction|1}}<!--add cargo in this place-->|caseless=1}} <!--Bonus--> | |||
{{#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=([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=([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=([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}} | |||
}}</includeonly> | |||
<noinclude> | |||
{| class="wikitable" | |||
|- | |||
! outcome | |||
! test | |||
|- | |||
| {{User:Crashaholic/ActionCost|cost=action}} | |||
| cost=action | |||
|- | |||
| {{User:Crashaholic/ActionCost|cost=bonus}} | |||
| cost=bonus | |||
|- | |||
| {{User:Crashaholic/ActionCost|cost=action bonus}} | |||
| cost=action bonus | |||
|- | |||
| {{User:Crashaholic/ActionCost|cost=reaction}} | |||
| cost=reaction | |||
|- | |||
| {{User:Crashaholic/ActionCost|cost=reaction action}} | |||
| cost=reaction action | |||
|- | |||
| {{User:Crashaholic/ActionCost|cost=ki:3}} | |||
| cost=ki:3 | |||
|- | |||
| {{User:Crashaholic/ActionCost|cost=ki:1}} | |||
| cost=ki:1 | |||
|- | |||
| {{User:Crashaholic/ActionCost|cost=ki:3 action}} | |||
| cost=ki:3 action | |||
|- | |||
| {{User:Crashaholic/ActionCost|cost=supdie:1 reaction}} | |||
| cost=supdie:1 reaction | |||
|- | |||
| {{User:Crashaholic/ActionCost|cost=barins:1}} | |||
| cost=barins:1 | |||
|- | |||
| {{User:Crashaholic/ActionCost|cost=rage:1}} | |||
| cost=rage:1 | |||
|- | |||
| {{User:Crashaholic/ActionCost|cost=arcrec:1}} | |||
| cost=arcrec:1 | |||
|} | |||
</noinclude> |
Latest revision as of 05:46, 19 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 Charges | cost=ki:3 |
Ki Charge | cost=ki:1 |
Action + 3Ki Charges | cost=ki:3 action |
Reaction + Superiority Die | cost=supdie:1 reaction |
Bardic Inspiration | cost=barins:1 |
Rage Charge | cost=rage:1 |
Arcane Recovery | cost=arcrec:1 |