Template:Condition page: Difference between revisions
m (Added "Conditions with shared stack IDs" category) |
HiddenDragon (talk | contribs) mNo edit summary |
||
(32 intermediate revisions by 5 users not shown) | |||
Line 8: | Line 8: | ||
<!--backwards compat for disease--> | <!--backwards compat for disease--> | ||
| {{#ifeq:{{{disease|}}}|yes|disease|{{{type|}}} }} | | {{#ifeq:{{{disease|}}}|yes|disease|{{{type|}}} }} | ||
}}<!-- | |||
}}<!-- Status properties --> {{#lvardef:FreezeDuration|{{#if:{{#invoke:String2|matchAny|source={{{properties}}}|FreezeDuration}}|1|}} | |||
}}{{PageSeo | }}{{PageSeo | ||
Line 22: | Line 21: | ||
{{Condition type|{{#lvar:type}} }}}}{{#if:{{{honour mode|}}}|{{blank}} | {{Condition type|{{#lvar:type}} }}}}{{#if:{{{honour mode|}}}|{{blank}} | ||
== | == Honour mode == | ||
{{{honour mode}}}}}{{#if:{{ | {{{honour mode}}}}}{{#if:{{{stack id|}}}{{{status groups|}}}{{{tick type|}}}{{{stack type|}}}{{{properties|}}}|{{blank}} | ||
== Properties == | == Properties == | ||
{{#if:{{ | {{#if:{{{stack id|}}}|{{blank}} | ||
{{ | {{SmIconLink|Info Icon.png|Stack ID}}: {{code|{{{stack id}}}}}{{Main namespace only|[[Category:Has stack ID]]}}|{{Main namespace only|[[Category:No stack ID]]}} | ||
}}{{#if: {{{status groups|}}}|{{blank}} | }}{{#if: {{{status groups|}}}|{{blank}} | ||
{{#arraydefine:status groups|{{{status groups|}}}|,}} | {{#arraydefine:status groups|{{{status groups|}}}|,}} | ||
{{ | {{SmIconLink|Plus Icon.png|Status groups}}: {{#arrayprint:status groups|, |@|{{SG|@}}}}{{Main namespace only|[[Category:Has status groups]]}}|{{Main namespace only|[[Category:No status groups]]}} | ||
}}{{#if: {{{tick type|}}}|{{blank}} | }}{{#if: {{{tick type|}}}{{#lvar:FreezeDuration}}|{{blank}} | ||
{{ | {{SmIconLink|Duration Icons.png|Conditions#Duration|Loses duration}}: {{#if:{{#lvar:FreezeDuration}}|{{SP|FreezeDuration|No}}|{{#switch: {{lc:{{{tick type}}}}} | ||
| start | start turn | startturn = start of turn | | start | start turn | startturn = start of turn | ||
| end | end turn | endturn = end of turn | | end | end turn | endturn = end of turn | ||
Line 41: | Line 40: | ||
| none = N/A | | none = N/A | ||
| #default = !syntax error! | | #default = !syntax error! | ||
}}{{Main namespace only|[[Category:Has tick type]]}}|{{Main namespace only|[[Category:No tick type]]}}}}{{#if: {{{stack type|}}}|{{blank}} | }}}}{{Main namespace only|[[Category:Has tick type]]}}|{{Main namespace only|[[Category:No tick type]]}}}}{{#if: {{{stack type|}}}|{{blank}} | ||
{{ | {{SmIconLink|Sort Icon.png|Conditions#Stack type|If already applied}}: {{#switch: {{lc:{{{stack type}}}}} | ||
| additive = add to duration | | additive = add to duration | ||
| overwrite = replace current | | overwrite = replace current | ||
Line 52: | Line 51: | ||
}}{{#if: {{{stack priority|}}}|{{blank}} | }}{{#if: {{{stack priority|}}}|{{blank}} | ||
{{ | {{SmIconLink|Empty Icon.png|Stack priority}}: {{{stack priority}}}{{Main namespace only|[[Category:Has stack priority]]}}|{{Main namespace only|[[Category:No stack priority]]}} | ||
}}{{#if: {{{properties|}}}|{{blank}} | }}{{#if: {{{properties|}}}|{{blank}} | ||
{{ | {{SmIconLink|Options Icon.png|Status properties|More properties}}:{{#invoke:ParseList|main|{{#arraydefine:propertiesList|{{{properties|}}}|,}}{{#arrayprint:propertiesList|,|@|{{SP|@}}}}|type=htmlList}}{{Main namespace only|[[Category:Has status properties]]}}|{{Main namespace only|[[Category:No status properties]]}}}}|{{Main namespace only|[[Category:No stack ID]][[Category:No status groups]][[Category:No tick type]][[Category:No stack type]][[Category:No stack priority]][[Category:No status properties]]}} | ||
</div><references/> | |{{Main namespace only|[[Category:Condition pages with no properties]]}}}} | ||
</div> {{#if: {{{grants|}}} | | |||
<h2> Grants: </h2> | |||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> | |||
{{#invoke: ParseList | main | {{{grants}}} | type = htmlListNoBullets | useTemplate = SAI/fixed }} | |||
</div> | |||
}}{{#if: {{{condition|}}} | | |||
<h2> Condition: {{{condition}}} </h2> | |||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> | |||
{{Condition | {{{condition}}} | |||
| save = {{{condition save|}}} | |||
| dc = {{{condition dc|}}} | |||
| radius m = {{{condition radius m|}}} | |||
| duration = {{{condition duration|}}} | |||
}} | |||
{{main namespace only|{{Inflicts|{{{condition}}}|cond|type=condition|dc={{{condition dc|}}}|save={{{condition save|}}}|duration={{{condition duration|}}}}}}} | |||
</div> | |||
}}{{#if: {{{condition2|}}} | {{blank}} | |||
<h2> Condition: {{{condition2}}} </h2> | |||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> | |||
{{Condition | {{{condition2}}} | |||
| save = {{{condition2 save|}}} | |||
| dc = {{{condition2 dc|}}} | |||
| radius m = {{{condition2 radius m|}}} | |||
| duration = {{{condition2 duration|}}} | |||
}} | |||
{{main namespace only|{{Inflicts|{{{condition2}}}|cond|type=condition|dc={{{condition2 dc|}}}|save={{{condition2 save|}}}|duration={{{condition2 duration|}}}}}}} | |||
</div> | |||
}}{{#if: {{{condition3|}}} | {{blank}} | |||
<h2> Condition: {{{condition3}}} </h2> | |||
<div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common"> | |||
{{Condition | {{{condition3}}} | |||
| save = {{{condition3 save|}}} | |||
| dc = {{{condition3 dc|}}} | |||
| radius m = {{{condition3 radius m|}}} | |||
| duration = {{{condition3 duration|}}} | |||
}} | |||
{{main namespace only|{{Inflicts|{{{condition3}}}|cond|type=condition|dc={{{condition3 dc|}}}|save={{{condition3 save|}}}|duration={{{condition3 duration|}}}}}}} | |||
</div> | |||
}}<references/> | |||
{{#if:{{{notes|}}}| | {{#if:{{{notes|}}}| | ||
== Notes == | == Notes == | ||
{{{notes}}} | {{{notes}}} | ||
}}{{#if:{{# | }} | ||
{{#if:{{{bugs|}}}| | |||
== Bugs == | |||
{{{bugs}}} | |||
[[Category:Bugs]] | |||
}}{{#if:{{{stack id|}}}|{{blank}} | |||
== Conditions with the same stack ID == | == Conditions with the same stack ID == | ||
Line 66: | Line 120: | ||
{{#cargo_query: | {{#cargo_query: | ||
tables = conditions | tables = conditions | ||
|fields = name, icon, effects | |fields = _pageName = page, name, icon, effects | ||
|where = stack_id='{{{stack id}}}' | |where = stack_id='{{{stack id}}}' | ||
|order by = name | |order by = name | ||
Line 74: | Line 128: | ||
|intro={{ConditionsTableHeader}} | |intro={{ConditionsTableHeader}} | ||
|outro={{ConditionsTableFooter}} | |outro={{ConditionsTableFooter}} | ||
}}[[Category:Conditions with shared stack IDs]] | }}{{Main namespace only|[[Category:Conditions with shared stack IDs]]}} | ||
}}{{#if:{{{suppress sources|}}}||{{blank}} | }}{{#if: {{{suppress sources|}}} | | {{blank}} | ||
== Sources of {{#lvar:name}} == | == Sources of {{#lvar:name}} == | ||
{{Condition sources|{{#lvar:page}}}} | |||
{{Condition sources | {{#lvar:page}} }} | |||
}} | }} | ||
<!--some housekeeping:categories and cargo-->{{Main namespace only|[[Category:Conditions]] | <!--some housekeeping:categories and cargo-->{{Main namespace only|[[Category:Conditions]]{{#cargo_store: _table = conditions | ||
| name = {{#lvar:name}} | | name = {{#lvar:name}} | ||
| icon = {{#lvar:icon}} | | icon = {{#lvar:icon}} | ||
| brief = {{{brief|}}} | |||
| types = {{#lvar:type}} | | types = {{#lvar:type}} | ||
| condition_name = {{{condition|}}} | |||
| condition2_name = {{{condition2|}}} | |||
| condition3_name = {{{condition3|}}} | |||
}} | }} | ||
}}</includeonly><noinclude>{{documentation | }}</includeonly><noinclude>{{documentation}}{{#cargo_declare: _table = conditions | ||
{{#cargo_declare: _table = conditions | |||
| name = String (unique, mandatory) | | name = String (unique, mandatory) | ||
| icon = File | | icon = File | ||
| effects = Wikitext | | effects = Wikitext | ||
| brief = Wikitext | |||
| types = List (,) of String | | types = List (,) of String | ||
| stack_id = string | | stack_id = string | ||
Line 179: | Line 155: | ||
| properties = List (,) of String | | properties = List (,) of String | ||
| stack_type = String | | stack_type = String | ||
| condition_name = String | |||
== | | condition_save = String | ||
| condition_dc = String | |||
| condition2_name = String | |||
| condition2_save = String | |||
| condition2_dc = String | |||
| condition3_name = String | |||
| condition3_save = String | |||
| condition3_dc = String | |||
}}</noinclude> | |||
Latest revision as of 06:34, 25 September 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 = | grants = | condition = | condition duration = | condition save = | condition dc = | condition radius m = | condition2 = | condition2 duration = | condition2 save = | condition2 dc = | condition2 radius m = | condition3 = | condition3 duration = | condition3 save = | condition3 dc = | condition3 radius m = | notes = | bugs = }}
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
HASTE
: end of turn
: don't apply
: 10 :
Notes
- note 1
- note 2
Bugs
- bug 1
- bug 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
MEENLOCK_FEAR
Conditions with the same stack ID
Conditions with the stack ID MEENLOCK_FEAR
, only one of these can be applied at the same time:
Condition | Effects |
---|---|
|
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.
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. If a stack ID is specified, it will only display if there are other conditions with that stack ID. It will also display those conditions.
| 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 |
brief | brief | Optional brief description to be used in infoboxes and other places where the text should be short. If left out, defaults to the same value as the effects field. | Content | suggested |
condition | condition | The full name of the condition (if any) that this action applies to its target/s. Leave blank if there is no condition.
| String | optional |
condition duration | condition duration | The duration in turns of the action's applied condition. Leave blank if the duration is unlimited.
| Number | optional |
condition save | condition save | The save that the action's target must roll to avoid or reduce its effects. Can use short or long name, e.g: "STR" or "Strength"
| String | optional |
condition dc | condition dc | The optional fixed DC of the condition that targets have to pass to apply it
| Number | optional |
condition radius m | condition radius m | The optional radius, in meters, where this condition is applied
| Number | optional |
condition2 | condition2 | The full name of the condition (if any) that is applied if there is a second condition.
| String | optional |
condition2 duration | condition2 duration | The duration in turns of the action's second condition. Leave blank if the duration is unlimited.
| Number | optional |
condition2 save | condition2 save | The save that the action's target must roll to avoid or reduce the effects of the second condition. Can use short or long name, e.g: "STR" or "Strength"
| String | optional |
condition2 dc | condition2 dc | The optional fixed DC of the second condition that targets have to pass to apply it
| Number | optional |
condition2 radius m | condition2 radius m | The optional radius, in meters, where the third condition is applied
| Number | optional |
condition3 | condition3 | The full name of the condition (if any) that is applied if there is a third condition.
| String | optional |
condition3 duration | condition3 duration | The duration in turns of the action's third condition. Leave blank if the duration is unlimited.
| Number | optional |
condition3 save | condition3 save | The save that the action's target must roll to avoid or reduce the effects of the third condition. Can use short or long name, e.g: "STR" or "Strength"
| String | optional |
condition3 dc | condition3 dc | The optional fixed DC of the third condition that targets have to pass to apply it
| Number | optional |
grants | grants | This specifies what spells/actions are granted to whoever has this condition
| String | optional |
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 |