User:Crashaholic/Sandbox: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(testeengs)
mNo edit summary
 
Line 1: Line 1:
<includeonly>{{trim|
<includeonly>{{trim|
{{#if: {{{save|}}}
{{#if: {{{damage|}}} |
        {{#vardefine: saveicon | }} {{#vardefine: savetext | }}
{{#vardefine: amt|}}
{{#vardefine: savetype | {{#if: {{#pos:{{{save|}}}|,}} | {{#explode:{{{save|}}}|,|0}} | {{{save|}}}}}}}
{{#vardefine: typ|}}
{{#vardefine: saverslt | {{#if: {{#pos:{{{save|}}}|,}} | {{#explode:{{{save|}}}|,|1}} | ""}}}}
{{#vardefine: mod|}}
| * {{SmallIcon|Saving Throw Icons.png}} {{#switch: {{lc:{{#var: savetype}}}}
{{#vardefine: per|}}
| strength | str =  {{#vardefine: saveicon | Strength}} {{#vardefine: savetext | STR}}
{{#vardefine: sav|}}
| dexterity | dex  = {{#vardefine: saveicon | Dexterity}} {{#vardefine: savetext | DEX}}
{{#vardefine: sfx|}}
| constitution | con | = {{#vardefine: saveicon | Constitution}} {{#vardefine: savetext | CON}}
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|amount:}}|| <!--doesnt exist--> | {{#vardefine: amt|{{#rmatch: {{{damage|}}}|amount:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
| intelligence | int | = {{#vardefine: saveicon | Intelligence}} {{#vardefine: savetext | INT}}
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|type:}}|| <!--doesnt exist--> |{{#vardefine: typ|{{#rmatch: {{{damage|}}}|type:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
| wisdom | wis  = {{#vardefine: saveicon | Wisdom}} {{#vardefine: savetext | WIS}}
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|mod:}}|| <!--doesnt exist--> |{{#vardefine: mod|{{#rmatch: {{{damage|}}}|mod:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
| charisma | cha  = {{#vardefine: saveicon | Charisma}} {{#vardefine: savetext | CHA}}
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|per:}}|| <!--doesnt exist--> |{{#vardefine: dot|{{#rmatch: {{{damage|}}}|per:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
| #default = {{#vardefine: saveicon |Alert}} {{#vardefine: savetext | EDITOR SHOULD CHECK TEMPLATE}}
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save:}}|| <!--doesnt exist--> |{{#vardefine: sav|{{#rmatch: {{{damage|}}}|save:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
}}[[File:{{#var: saveicon}} icon.png|frameless|{{{2|24}}}px|{{#var: saveicon}}]][[{{#var: saveicon}}|{{#var: savetext}}]] [[Saving Throw|Save]] {{#if: {{#pos:{{{save|}}}|,}}
{{#ifeq:{{#pos:{{lc:{{{damage|}}}}}|save effect:}}|| <!--doesnt exist--> |{{#vardefine: sfx|{{#rmatch: {{{damage|}}}|save effect:\s?([^\s][^,]*)|$1|caseless=1}}}}}}
| (On Save: {{#explode:{{{save|}}}|,|1}})
{{DamageInfo|{{#var: amt}}|{{#var: typ}}|modifier = {{#var:mod}}|per = {{#var: dot}}|save = {{#var: sav}}|save effect = {{#var: sfx}}}}
}}| {{blank}}
}}|{{blank}}}}</includeonly><noinclude>
}}
}}</includeonly><noinclude>
{| class="wikitable" style="width: 100%"
{| class="wikitable" style="width: 100%"
|-
|-
! outcome
! outcome
! test
! input
|-
|-
| {{User:Crashaholic/Sandbox|save=}}  
| {{User:Crashaholic/Sandbox|damage=}}  
| ''there is an empty entry first''
| ''there is an empty entry first''
|-
|-
| {{User:Crashaholic/Sandbox|save=STR}}  
| {{User:Crashaholic/Sandbox|damage=amount:1d4,type:Fire}}  
| ''STR''
| <pre>damage=amount:1d4,type:Fire</pre>
|-
|-
| {{User:Crashaholic/Sandbox|save=DeX}}  
| {{User:Crashaholic/Sandbox|damage = amount:4d4+4, type:Acid, mod:finesse, per:turn, save:DEX, save effect:half}}  
| ''DeX''
| <pre>damage = amount:4d4+4, type:Acid, mod:finesse, per:turn, save:DEX, save effect:half</pre>
|-
|-
| {{User:Crashaholic/Sandbox|save=it}}
| {{User:Crashaholic/Sandbox|damage = amount:4d4+4, type:Fire, mod:melee}}  
| ''it: wrong input''
| <pre>damage = amount:4d4+4, type:Fire, mod:finesse, per:turn, save:DEX, save effect:half</pre>
|-
| {{User:Crashaholic/Sandbox|save=int}}
| ''int''
|-
| {{User:Crashaholic/Sandbox|save=con}}  
| ''con''
|-
| {{User:Crashaholic/Sandbox|save=sTRenGTH}}
| ''sTRenGTH''
|-
| {{User:Crashaholic/Sandbox|save=WISDOM}}
| ''WISDOM''
|-
| {{User:Crashaholic/Sandbox|save=dex,Target still takes half the damage}}
| ''dex,Target still takes half the damage''
|-
| {{User:Crashaholic/Sandbox|save=ConStitUtion,Target will not be paralyzed}}
| ''ConStitUtion,Target will not be paralyzed''
|-
|-


</noinclude>
</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