User:Toancaro/List of utilities spells/Variables: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><section begin="variables" />Test include<nowiki
<noinclude>{{Template:TranscludeableLST|variables}}<br/></noinclude><includeonly><section begin="variables" /><nowiki
/>{{#vardefine: querySpellsLearnable | ((classes HOLDS "Wizard" OR classes HOLDS "Sorcerer" OR classes HOLDS "Cleric" OR classes HOLDS "Bard" OR classes HOLDS "Ranger" OR classes HOLDS "Druid" OR classes HOLDS "Paladin" OR classes HOLDS "Warlock") AND (is_npc = false OR is_npc IS NULL))}}<nowiki
/>{{#vardefine: querySpellsLearnable | ((classes HOLDS "Wizard" OR classes HOLDS "Sorcerer" OR classes HOLDS "Cleric" OR classes HOLDS "Bard" OR classes HOLDS "Ranger" OR classes HOLDS "Druid" OR classes HOLDS "Paladin" OR classes HOLDS "Warlock") AND (is_npc = false OR is_npc IS NULL))}}<nowiki


/>{{#arraydefine: spellsArmourClassBuff | Shield of Faith,Warding Bond,Mage Armour,Shield}}<nowiki
/>{{#arraydefine: spellsArmourClassBuff | Shield of Faith,Warding Bond,Mage Armour,Shield,Mirror Image,Barkskin}}<nowiki
/>{{#arraydefine: spellsArmourClassDebuff | Chromatic Orb,Melf's Acid Arrow}}<nowiki
/>{{#arraydefine: spellsArmourClassDebuff | Chromatic Orb,Melf's Acid Arrow,Spiritual Weapon}}<nowiki


/>{{#arraydefine: spellsAttackRollBuff | Magic Weapon,Shillelagh,Bless}}<nowiki
/>{{#arraydefine: spellsAttackRollBuff | Magic Weapon,Shillelagh,Bless}}<nowiki
/>{{#arraydefine: spellsAttackRollDebuff | Bane}}<nowiki
/>{{#arraydefine: spellsAttackRollDebuff | Bane}}<nowiki
/>{{#arraydefine: spellsAttackRollAdvantage | Ensnaring Strike,Blindness,True Strike,Entangle,Fog Cloud,Grease,Ice Knife,Command,Sleep,Tasha's Hideous Laughter,Chromatic Orb,Faerie Fire,Guiding Bolt,Thunderous Smite,Colour Spray,Web,Hold Person,Darkness,Gust of Wind}}<nowiki
/>{{#arraydefine: spellsAttackRollAdvantage | Ensnaring Strike,Blindness,True Strike,Entangle,Fog Cloud,Grease,Ice Knife,Command,Sleep,Tasha's Hideous Laughter,Chromatic Orb,Faerie Fire,Guiding Bolt,Thunderous Smite,Colour Spray,Web,Hold Person,Darkness,Gust of Wind,Invisibility}}<nowiki
/>{{#arraydefine: spellsAttackRollDisadvantage | Ensnaring Strike,Blindness,Vicious Mockery,Bone Chill,Protection from Evil and Good,Entangle,Fog Cloud,Dissonant Whispers,Wrathful Smite,Colour Spray,Ray of Sickness,Web,Darkness}}<nowiki
/>{{#arraydefine: spellsAttackRollDisadvantage | Ensnaring Strike,Blindness,Vicious Mockery,Bone Chill,Protection from Evil and Good,Entangle,Fog Cloud,Dissonant Whispers,Wrathful Smite,Colour Spray,Ray of Sickness,Web,Darkness,Blur,Invisibility,Heat Metal}}<nowiki


/>{{#arraydefine: spellsSavingThrowBuff | Resistance,Bless,Warding Bond}}<nowiki
/>{{#arraydefine: spellsSavingThrowBuff | Resistance,Bless,Warding Bond}}<nowiki
/>{{#arraydefine: spellsSavingThrowDebuff | Bane,Sleep,Hold Person}}<nowiki
/>{{#arraydefine: spellsSavingThrowDebuff | Bane,Sleep,Hold Person}}<nowiki
/>{{#arraydefine: spellsSavingThrowAdvantage | Protection from Poison}}<nowiki
/>{{#arraydefine: spellsSavingThrowAdvantage | Protection from Poison,Enlarge/Reduce}}<nowiki
/>{{#arraydefine: spellsSavingThrowDisadvantage | Ensnaring Strike,Entangle,Grease,Ice Knife,Command,Tasha's Hideous Laughter,Chromatic Orb,Thunderous Smite,Web,Shatter,Spiritual Weapon,Spiritual Weapon: Greataxe}}<nowiki
/>{{#arraydefine: spellsSavingThrowDisadvantage | Ensnaring Strike,Entangle,Grease,Ice Knife,Command,Tasha's Hideous Laughter,Chromatic Orb,Thunderous Smite,Web,Shatter,Spiritual Weapon,Enlarge/Reduce}}<nowiki


/>{{#arraydefine: spellsAbilityCheckBuff | Pass Without Trace}}<nowiki
/>{{#arraydefine: spellsAbilityCheckBuff | Guidance,Pass Without Trace}}<nowiki
/>{{#arraydefine: spellsAbilityCheckDebuff | }}<nowiki
/>{{#arraydefine: spellsAbilityCheckDebuff | }}<nowiki
/>{{#arraydefine: spellsAbilityCheckAdvantage | Guidance,Friends,Thaumaturgy,Animal Friendship,Charm Person}}<nowiki
/>{{#arraydefine: spellsAbilityCheckAdvantage | Friends,Thaumaturgy,Animal Friendship,Charm Person,Enhance Ability,Enlarge/Reduce}}<nowiki
/>{{#arraydefine: spellsAbilityCheckDisadvantage | Dissonant Whispers,Hex,Chromatic Orb,Wrathful Smite,Ray of Sickness,Gust of Wind}}<nowiki
/>{{#arraydefine: spellsAbilityCheckDisadvantage | Dissonant Whispers,Hex,Wrathful Smite,Ray of Sickness,Gust of Wind,Enlarge/Reduce,Heat Metal}}<nowiki


/>{{#arraydefine: spellsConditionProtection | Protection from Evil and Good,Heroism,Calm Emotions}}<nowiki
/>{{#arraydefine: spellsConditionProtection | Protection from Evil and Good,Heroism,Calm Emotions}}<nowiki
/>{{#arraydefine: spellsDamageProtection | Blade Ward,Sanctuary,Armour of Agathys,Shield,Heroism,False Life,Protection from Poison,Warding Bond}}<nowiki
/>{{#arraydefine: spellsDamageProtection | Blade Ward,Sanctuary,Armour of Agathys,Shield,Heroism,False Life,Protection from Poison,Warding Bond,Silence,Enhance Ability}}<nowiki
/>{{#arraydefine: spellsUncategorized | Witch Bolt,Minor Illusion,Compelled Duel,Enthrall,Branding Smite,Moonbeam}}<nowiki
/>{{#arraydefine: spellsUncategorized | Witch Bolt,Minor Illusion,Compelled Duel,Enthrall,Branding Smite,Moonbeam,Ray of Enfeeblement,Darkvision}}<nowiki


/>{{#arrayunion: spellsAll | spellsArmourClassBuff | spellsArmourClassDebuff | spellsAttackRollBuff | spellsAttackRollDebuff | spellsAttackRollAdvantage | spellsAttackRollDisadvantage | spellsSavingThrowBuff | spellsSavingThrowDebuff | spellsSavingThrowAdvantage | spellsSavingThrowDisadvantage | spellsAbilityCheckBuff | spellsAbilityCheckDebuff | spellsAbilityCheckAdvantage | spellsAbilityCheckDisadvantage | spellsConditionProtection | spellsDamageProtection | spellsUncategorized}}<nowiki
/>{{#arrayunion: spellsAll | spellsArmourClassBuff | spellsArmourClassDebuff | spellsAttackRollBuff | spellsAttackRollDebuff | spellsAttackRollAdvantage | spellsAttackRollDisadvantage | spellsSavingThrowBuff | spellsSavingThrowDebuff | spellsSavingThrowAdvantage | spellsSavingThrowDisadvantage | spellsAbilityCheckBuff | spellsAbilityCheckDebuff | spellsAbilityCheckAdvantage | spellsAbilityCheckDisadvantage | spellsConditionProtection | spellsDamageProtection | spellsUncategorized}}<nowiki


/>{{#arrayslice: spellsAll1 | spellsAll | 0 | 25}}<nowiki
/>{{#arrayunion: joinORItems | spellsAll }}<nowiki
/>{{#vardefine: querySpellsAll1 | {{#arrayprint: spellsAll1 | OR | @ | name = "@" }}}}<nowiki
/>{{#lst:User:Toancaro/List of utilities spells/Join OR|joinOR}}<nowiki
/>{{#vardefine: queryNamesSpellsAll1 | {{#replace:{{#var: querySpellsAll1}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki
/>{{#vardefine: queryNamesSpellsAll | {{#var: joinORResult}} }}<nowiki


/>{{#arrayslice: spellsAll2 | spellsAll | 25 | 25}}<nowiki
/><section end="variables" /></includeonly>
/>{{#vardefine: querySpellsAll2 | {{#arrayprint: spellsAll2 | OR | @ | name = "@" }}}}<nowiki
/>{{#vardefine: queryNamesSpellsAll2 | {{#replace:{{#var: querySpellsAll2}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki
 
/>{{#arrayslice: spellsAll3 | spellsAll | 50 | 25}}<nowiki
/>{{#vardefine: querySpellsAll3 | {{#arrayprint: spellsAll3 | OR | @ | name = "@" }}}}<nowiki
/>{{#vardefine: queryNamesSpellsAll3 | {{#replace:{{#var: querySpellsAll3}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki
 
/>{{#arrayslice: spellsAll4 | spellsAll | 75 | 25}}<nowiki
/>{{#vardefine: querySpellsAll4 | {{#arrayprint: spellsAll4 | OR | @ | name = "@" }}}}<nowiki
/>{{#vardefine: queryNamesSpellsAll4 | {{#replace:{{#var: querySpellsAll4}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki
 
/>{{#arrayslice: spellsAll5 | spellsAll | 100 | 25}}<nowiki
/>{{#vardefine: querySpellsAll5 | {{#arrayprint: spellsAll5 | OR | @ | name = "@" }}}}<nowiki
/>{{#vardefine: queryNamesSpellsAll5 | {{#replace:{{#var: querySpellsAll5}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki
 
/>{{#arrayslice: spellsAll6 | spellsAll | 125 | 25}}<nowiki
/>{{#vardefine: querySpellsAll6 | {{#arrayprint: spellsAll6 | OR | @ | name = "@" }}}}<nowiki
/>{{#vardefine: queryNamesSpellsAll6 | {{#replace:{{#var: querySpellsAll6}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki
 
/>{{#vardefine: queryNamesSpellsAll | {{#ifexpr: {{#arraysize:spellsAll}} > 0 | ({{#var: queryNamesSpellsAll1|TRUE}} AND {{#var: queryNamesSpellsAll2|TRUE}} AND {{#var: queryNamesSpellsAll3|TRUE}} AND {{#var: queryNamesSpellsAll4|TRUE}} AND {{#var: queryNamesSpellsAll5|TRUE}} AND {{#var: queryNamesSpellsAll6|TRUE}}) | FALSE}} }}<nowiki
 
/><section end="variables" /></includeonly><noinclude>{{Template:TranscludeableLST|variables}}</noinclude>

Latest revision as of 15:41, 24 May 2024

The following section can be transcluded into other pages with {{#lst:User:Toancaro/List of utilities spells/Variables|variables}}.