User:Crashaholic/Sandbox: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(duration)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{trim|
<includeonly>{{trim|
{{#if: {{{duration|}}}
{{#if: {{{damage|}}} |
|{{#ifeq:{{{duration|}}}| LR
{{#vardefine: amt|}}
|* {{Duration|Until Long Rest}}
{{#vardefine: typ|}}
|{{#ifeq: {{{duration|}}} |Perm
{{#vardefine: mod|}}
|* {{Duration|Permanent}}
{{#vardefine: per|}}
|* {{Duration|{{{duration}}}}}
{{#vardefine: sav|}}
}}
{{#vardefine: sfx|}}
}}
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|amount:}}|| <!--doesnt exist--> | {{#vardefine: amt|{{#rmatch: {{{damage|}}}|amount:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
|{{blank}}
{{#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}}}}}}
}}</includeonly><noinclude>
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|per:}}|| <!--doesnt exist--> |{{#vardefine: dot|{{#rmatch: {{{damage|}}}|per:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
*{{User:Crashaholic/Sandbox|duration=}}
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save:}}|| <!--doesnt exist--> |{{#vardefine: sav|{{#rmatch: {{{damage|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
*{{User:Crashaholic/Sandbox|duration=1}}
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save effect:}}|| <!--doesnt exist--> |{{#vardefine: sfx|{{#rmatch: {{{damage|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
*{{User:Crashaholic/Sandbox|duration=LR}}
{{DamageInfo|{{#var: amt}}|{{#var: typ}}|modifier = {{#var:mod}}|per = {{#var: dot}}|save = {{#var: sav}}|save effect = {{#var: sfx}}}}
*{{User:Crashaholic/Sandbox|duration=Perma}}
}}|{{blank}}}}</includeonly><noinclude>
*{{User:Crashaholic/Sandbox|duration=Perm}}
{| class="wikitable" style="width: 100%"
*{{User:Crashaholic/Sandbox|duration=Whenever you feel like it}}</noinclude>
|-
! 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
D4 Fire.png 1d4 (1~4) Damage TypesFire
damage=amount:1d4,type:Fire
D4 Acid.png 4d4 + 4 (8~20) + Strength or Dexterity modifier Damage TypesAcid per turn (DEX save to halve)
damage = amount:4d4+4, type:Acid, mod:finesse, per:turn, save:DEX, save effect:half
D4 Fire.png 4d4 + 4 (8~20) + Strength modifier Damage TypesFire per turn
damage = amount:4d4+4, type:Fire, mod:finesse, per:turn, save:DEX, save effect:half