Template:Condition page: Difference between revisions
m (nvm it removed them from everything) Tag: Undo |
(Changed it to use the new "counter" template which counts how many rows is returned on the stack id, and only displays if it is not 1.) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><div class="bg3wiki-tooltip-box"><!--Extract name and icon from the page title-->{{#lvardef: name | ||
| {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}} | | {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}} | ||
}}{{#lvardef: page | }}{{#lvardef: page | ||
Line 8: | Line 8: | ||
<!--backwards compat for disease--> | <!--backwards compat for disease--> | ||
| {{#ifeq:{{{disease|}}}|yes|disease|{{{type|}}} }} | | {{#ifeq:{{{disease|}}}|yes|disease|{{{type|}}} }} | ||
}}<!-- Check if the stack ID is used by any other conditions and save it as #lvar:stackid --> {{#vardefine:counter|0 | |||
}}{{#cargo_query:tables=conditions|fields=name|where=stack_id='{{{stack id}}}'|format=template|template=counter | |||
}}{{#lvardef:stackid|{{#if:{{{stack id|}}}|{{#ifeq:{{#var:counter}}|1||1}}}} | |||
}}{{PageSeo | }}{{PageSeo | ||
| title = {{PAGENAME}} | | title = {{PAGENAME}} | ||
Line 19: | Line 23: | ||
== [[Honour mode]] == | == [[Honour mode]] == | ||
{{{honour mode}}}}}{{#if: | {{{honour mode}}}}}{{#if:{{#lvar:stackid}}{{{status groups|}}}{{{tick type|}}}{{{stack type|}}}{{{properties|}}}|{{blank}} | ||
== Properties == | == Properties == | ||
{{#if: | {{#if:{{#lvar:stackid}}|{{blank}} | ||
{{SmallIcon|Info Icon.png|link=Status ID}}[[Stack ID]]: {{code|{{{stack id}}}}}{{Main namespace only|[[Category:Has stack ID]]}}|{{Main namespace only|[[Category:No stack ID]]}} | {{SmallIcon|Info Icon.png|link=Status ID}}[[Stack ID]]: {{code|{{{stack id}}}}}{{Main namespace only|[[Category:Has stack ID]]}}|{{Main namespace only|[[Category:No stack ID]]}} | ||
Line 56: | Line 60: | ||
== Notes == | == Notes == | ||
{{{notes}}} | {{{notes}}} | ||
}}{{#if: | }}{{#if:{{#lvar:stackid}}|{{blank}} | ||
== Conditions with the same stack ID == | == Conditions with the same stack ID == | ||
Conditions with the [[stack ID]] {{code|{{{stack id}}}}}, only one of these can be applied at the same time: | Conditions with the [[stack ID]] {{code|{{{stack id}}}}}, only one of these can be applied at the same time: | ||
Line 70: | Line 74: | ||
|intro={{ConditionsTableHeader}} | |intro={{ConditionsTableHeader}} | ||
|outro={{ConditionsTableFooter}} | |outro={{ConditionsTableFooter}} | ||
}} | |||
}}{{#if:{{{suppress sources|}}}||{{blank}} | }}{{#if:{{{suppress sources|}}}||{{blank}} | ||
Line 132: | Line 136: | ||
* If Undead, has {{Disadvantage}} on [[Attack Roll]]s. | * If Undead, has {{Disadvantage}} on [[Attack Roll]]s. | ||
| this is an example = yes | | this is an example = yes | ||
| stack id = MEENLOCK_FEAR | |||
| tick type = end | | tick type = end | ||
| properties = FreezeDuration, IgnoreResting, InitiateCombat, ApplyToDead | | properties = FreezeDuration, IgnoreResting, InitiateCombat, ApplyToDead |
Revision as of 10:58, 5 February 2024
If the page title is Blah (Condition)
, then you don't have to provide the name
parameter. Likewise, if the icon for the condition is called Blah Condition Icon.webp
then you don't have to provide the icon
parameter.
If a condition has multiple types, separate them with a semicolon.
{{Condition page | effects = | type = | honour mode = | stack id = | status groups = | tick type = | stack type = | stack priority = | properties = | notes = }}
Examples:
Blade Ward (Condition)
- Has resistance against Bludgeoning, Piercing, and Slashing damage dealt by weapon attacks. Damage of these types is halved.
Honour mode
- If you get hit by anything you are not resistant too, you immediately die.
Properties
Stack ID: HASTE
Status groups: SG_RemoveOnRespec
Loses duration: end of turn
If already applied: don't apply
Stack priority: 10
More properties:Notes
- note 1
- note 2
Conditions with the same stack ID
Conditions with the stack ID HASTE
, only one of these can be applied at the same time:
Condition | Effects |
---|---|
|
|
|
|
|
|
|
|
Affected entity has a +2 bonus to Armour Class, Advantage on Dexterity Saving throws, its Movement Speed is doubled, and it can take one additional Action per turn. |
Sources of Blade Ward
No results
Bone Chilled (Condition)
- Can not regain Hit Points.
- If Undead, has Disadvantage on Attack Rolls.
Properties
Loses duration: end of turn
More properties:
Sources of Bone Chilled
No results
Flesh Rot (Condition)
- Flesh is decaying.
- Disadvantage on Ability Checks and Saving throws using Charisma.
- Vulnerable to all damage.
Sources of Flesh Rot
No results
Multiple types example
- How are you still alive?
- Disadvantage on Ability Checks and Saving throws using Charisma.
- Vulnerable to all damage.
This template defines the table "conditions". View table.
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | If specified, overrides the name.
| String | optional |
icon | icon | If specified, overrides the icon.
| File | optional |
disease | disease | If specified, sets the type to be disease | Boolean | deprecated |
type | type | The type or types of the condition. If multiple, separate the types with commas.
| String | optional |
stack id | stack id | Stack ID for the condition. Conditions with the same Stack ID can not be present at the same time.
| String | optional |
status groups | status groups | Any status groups the condition belongs too. If multiple, separate the types with commas.
| String | optional |
tick type | tick type | When the condition loses duration. This can be at the start or end of a turn. If marked with '''none''' the condition will be marked as not having a duration. This may be used by conditions who are active based on something else like a passive feature or standing near something. If you are unsure, leave it empty.
| String | optional |
stack type | stack type | Decides what happends when the condition is applied while already being present. '''additive''' adds the durations together, '''overwrite''' replaces the present condition and duration with the new, and '''ignore''' will keep the present condition and duration. This can be important on conditions who have the same stack ID as other conditions to show which of them takes priority, and for showing if you can increase the duration of a condition by applying it again.
| String | optional |
stack priority | stack priority | Conditions with higher stack priority overwrite conditions with lower stack priority when applied.
| String | optional |
properties | properties | Properties for the condition. If multiple, separate the types with commas.
| String | optional |
effects | effects | The description of the condition. | Content | suggested |
this is an example | this is an example | If specified, does not insert into the Conditions table. | Boolean | optional |
suppress sources | suppress sources | If specified, will not display "sources of". | Boolean | optional |
honour mode | honour mode | Changes that apply under the honour mode difficulty. | String | optional |
notes | notes | Notes, displayed before the list of sources | String | optional |