User:Crashaholic/ActionCost: Difference between revisions
Jump to navigation
Jump to search
Crashaholic (talk | contribs) (WIP) |
Crashaholic (talk | contribs) (SAVE OFTEN PEOPLE) |
||
Line 3: | Line 3: | ||
{{#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:ki|0}} | ||
{{#rmatch: string={{{cost|}}} | pattern=([Bb]onus)| then = {{#vardefine:bonus|1}}|caseless=1}} | {{#vardefine:hasaction|0}} | ||
{{#rmatch: string={{{cost|}}} | pattern=([Rr]eaction) | then = {{#vardefine:reaction|1}}|caseless=1}} | {{#vardefine:hasothers|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}} | {{#rmatch: string={{{cost|}}} | pattern=\W([Aa]ction)| then = {{#vardefine:action|1}} {{#vardefine:hasaction|1}}|caseless=1}} | ||
<!--0,0-->}}}}}} | {{#rmatch: string={{{cost|}}} | pattern=([Bb]onus)| then = {{#vardefine:bonus|1}} {{#vardefine:hasaction|1}}|caseless=1}} | ||
}} | {{#rmatch: string={{{cost|}}} | pattern=([Rr]eaction) | then = {{#vardefine:reaction|1}} {{#vardefine:hasaction|1}}|caseless=1}} | ||
</includeonly> | {{#rmatch: string={{{cost|}}}|pattern=([Kk]i)|then={{#vardefine:ki|{{#rmatch:{{{cost|}}}|[Kk]i:+([^\s]*)|$1}}}} {{#vardefine:hasothers|1}}|caseless=1}} | ||
<noinclude>{{User:Crashaholic/ActionCost|cost=reaction}}</noinclude> | {{#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 | {{#var: ki}}{{User:Tc/Ki}}{{#if: {{#expr: {{#var: ki}} > 1}} | s}} | {{blank}}}} | |||
}}</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:3 action}} | |||
| cost=ki:3 action | |||
|} | |||
</noinclude> |
Revision as of 17:15, 16 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 |
Action + 3Ki Points | cost=ki:3 action |