User:Crashaholic/Sandbox: Difference between revisions
Jump to navigation
Jump to search
Crashaholic (talk | contribs) (a) |
Crashaholic (talk | contribs) mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{ | <includeonly>{{trim| | ||
{{#if: {{{damage|}}} | | |||
{{#vardefine: amt|}} | |||
{{#vardefine: typ|}} | |||
{{#vardefine: mod|}} | |||
{{#vardefine: per|}} | |||
{{#vardefine: sav|}} | |||
{{#vardefine: sfx|}} | |||
}}</includeonly><noinclude> | {{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|amount:}}|| <!--doesnt exist--> | {{#vardefine: amt|{{#rmatch: {{{damage|}}}|amount:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | ||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|type:}}|| <!--doesnt exist--> |{{#vardefine: typ|{{#rmatch: {{{damage|}}}|type:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|mod:}}|| <!--doesnt exist--> |{{#vardefine: mod|{{#rmatch: {{{damage|}}}|mod:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|per:}}|| <!--doesnt exist--> |{{#vardefine: dot|{{#rmatch: {{{damage|}}}|per:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save:}}|| <!--doesnt exist--> |{{#vardefine: sav|{{#rmatch: {{{damage|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save effect:}}|| <!--doesnt exist--> |{{#vardefine: sfx|{{#rmatch: {{{damage|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}} | |||
{{DamageInfo|{{#var: amt}}|{{#var: typ}}|modifier = {{#var:mod}}|per = {{#var: dot}}|save = {{#var: sav}}|save effect = {{#var: sfx}}}} | |||
}}|{{blank}}}}</includeonly><noinclude> | |||
{| class="wikitable" style="width: 100%" | |||
|- | |||
! outcome | |||
! input | |||
|- | |||
| {{User:Crashaholic/Sandbox|damage=}} | |||
| ''there is an empty entry first'' | |||
|- | |||
| {{User:Crashaholic/Sandbox|damage=amount:1d4,type:Fire}} | |||
| <pre>damage=amount:1d4,type:Fire</pre> | |||
|- | |||
| {{User:Crashaholic/Sandbox|damage = amount:4d4+4, type:Acid, mod:finesse, per:turn, save:DEX, save effect:half}} | |||
| <pre>damage = amount:4d4+4, type:Acid, mod:finesse, per:turn, save:DEX, save effect:half</pre> | |||
|- | |||
| {{User:Crashaholic/Sandbox|damage = amount:4d4+4, type:Fire, mod:melee}} | |||
| <pre>damage = amount:4d4+4, type:Fire, mod:finesse, per:turn, save:DEX, save effect:half</pre> | |||
|- | |||
</noinclude> |
Latest revision as of 07:49, 25 August 2023
outcome | input |
---|---|
there is an empty entry first | |
1d4 (1~4) Fire
|
damage=amount:1d4,type:Fire |
4d4 + 4 (8~20) + Strength or Dexterity modifier Acid per turn (DEX save to halve)
|
damage = amount:4d4+4, type:Acid, mod:finesse, per:turn, save:DEX, save effect:half |
4d4 + 4 (8~20) + Strength modifier Fire per turn
|
damage = amount:4d4+4, type:Fire, mod:finesse, per:turn, save:DEX, save effect:half |