Template:Action page: Difference between revisions
(add + to spells) |
(more proper level check) |
||
Line 45: | Line 45: | ||
{{#rmatch: {{{cost|}}}|supdie|{{#lvardef:sd|{{#rmatch:{{{cost|}}}|supdie:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Superiority Die--> | {{#rmatch: {{{cost|}}}|supdie|{{#lvardef:sd|{{#rmatch:{{{cost|}}}|supdie:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Superiority Die--> | ||
{{#rmatch: {{{cost|}}}|warpri|{{#lvardef:wp|{{#rmatch:{{{cost|}}}|warpri:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--War Priest--> | {{#rmatch: {{{cost|}}}|warpri|{{#lvardef:wp|{{#rmatch:{{{cost|}}}|warpri:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--War Priest--> | ||
{{#rmatch: {{{cost|}}}|wldshp|{{#lvardef:ws|{{#rmatch:{{{cost|}}}|wldshp:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}} <!--Wild Shape--> {{#ifeq: {{#lvar: hasaction}} | 1 | {{#lvardef:hascost|1}} | {{#ifeq: {{#lvar: hasothers}} | 1 | {{#lvardef:hascost|1}} }}}} <!-- Find out if Cost: is needed --> | {{#rmatch: {{{cost|}}}|wldshp|{{#lvardef:ws|{{#rmatch:{{{cost|}}}|wldshp:\s?([^\s][^,]*)|$1|caseless=1}}}} {{#lvardef:hasothers|1}}<!--add cargo in this place-->| <!--Wild Shape--> | ||
{{#if: {{{level|}}} | {{#ifeq: {{{level}}} | cantrip | | {{#lvardef:hasothers|1}}}} }} <!--Spell Level + Not Cantrip --> | |||
|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}}|caseless=1}} <!--Wild Shape--> {{#ifeq: {{#lvar: hasaction}} | 1 | {{#lvardef:hascost|1}} | {{#ifeq: {{#lvar: hasothers}} | 1 | {{#lvardef:hascost|1}} }}}} <!-- Find out if Cost: is needed --> | |||
<!--if you think i know what im doing, ymmv--><dl class="bg3wiki-property-list"> | <!--if you think i know what im doing, ymmv--><dl class="bg3wiki-property-list"> | ||
{{#ifeq: {{#lvar: hasaction}} | 1 | | {{#ifeq: {{#lvar: hasaction}} | 1 | | ||
<dt> Cost: | <dt> Cost: | ||
<dd> {{#ifeq: {{#lvar: freeaction}} | 1 | {{InfoBlob|Free Action}} | {{#ifeq: {{#lvar: reaction}} | 1 | {{action|reaction}} | {{#ifeq: {{#lvar: action}} | 1 | {{#ifeq: {{#lvar: bonus}}| 1 | {{action|both}}<!--1,1--> | {{action}}<!--1,0-->}} | {{#ifeq: {{#lvar: bonus}} | 1 | {{action|bonus}}<!--0,1--> | {{blank}}<!--0,0-->}}}}}}}} {{#ifeq: {{#lvar: hasaction}} | 1 | {{#ifeq: {{#lvar: hasothers}} | 1 | + | <dd> {{#ifeq: {{#lvar: freeaction}} | 1 | {{InfoBlob|Free Action}} | {{#ifeq: {{#lvar: reaction}} | 1 | {{action|reaction}} | {{#ifeq: {{#lvar: action}} | 1 | {{#ifeq: {{#lvar: bonus}}| 1 | {{action|both}}<!--1,1--> | {{action}}<!--1,0-->}} | {{#ifeq: {{#lvar: bonus}} | 1 | {{action|bonus}}<!--0,1--> | {{blank}}<!--0,0-->}}}}}}}} {{#ifeq: {{#lvar: hasaction}} | 1 | {{#ifeq: {{#lvar: hasothers}} | 1 | +}}}} {{#if: {{{level|}}} | | ||
{{#switch: {{{level}}} | {{#switch: {{{level}}} | ||
| cantrip = | | cantrip = |
Revision as of 12:45, 11 September 2023
Usage
{{ActionPage | this is an example = | summary = | description = | image = | level = | school = | cost = | concentration = | damage = | damage2 = | recharge = | duration = | save = | attack roll = | ritual = | range = | range m = | range ft = | aoe = | aoe m = | aoe ft = | additional = | higherlevels = | variants = | condition = | condition duration = | condition save = | condition2 = | condition2 duration = | condition2 save = | area = | area category = | area shape = | area range m = | area range ft = | area duration = | area turn start damage = | area turn start damage type = | area turn start damage save = | area turn start damage save effect = | area turn end damage = | area turn end damage type = | area turn end damage save = | area turn end damage save effect = | area condition = | area condition2 = | area condition3 = | area condition4 = | X learns at level X = | granted by feats = | granted by items = | granted by spells = | notes = | video = }}
This is a page to transclude to generate action pages. Though this does contain a superset of the features for them, this is generally for pages that do not fit Template:SpellPage or Template:WeaponActionPage. It will automatically categorize the page based on the action type and what can learn it. There is no need to add categories yourself unless it is for something similar to Category:Bugs. You can make a page for a passive feature as well, simply leave the cost parameter blank.
Parameter | Description | Type | Status | |
---|---|---|---|---|
If this is an example | this is an example | If this is an example and you don't want the page to be categorized and related.
| String | optional |
Action description summary | summary | The summary of the action. This will be used as the wiki's description as well as the SEO text.
| Content | required |
Action description | description | The in-game description of the action. This description is NOT for SEO 'See: summary'.
| String | required |
Action image/icon | image | The image that will be used in the page's SEO and be the page's main image.<br/>IF THIS IS LEFT EMPTY, [[File:NoImage Icon.webp|x40px]] WILL BE USED INSTEAD!
| String | suggested |
Spell level | level | Spell level if a spell. This overrides the resource portion of the cost parameter. Use "cantrip" to indicate a 0th level or cantrip spell.
| String | optional |
Spell school | school | The school of magic that the spell belongs to.
| String | optional |
cost | cost | The resource cost of the action. Format is {Resource}:{Amount}, {"action" if action etc.}. Resource types:
| String | suggested |
damage | damage | The damage of the action.
| String | optional |
damage2 | damage2 | The secondary damage of the action. Will be output as damage + damage2. Same params as damage.
| String | optional |
recharge | recharge | Action recharge time, if applicable
| String | optional |
duration | duration | Duration in turns of the action. Generally you will use condition duration instead.
| String | optional |
ritual | ritual | Indicates whether the action is a ritual spell or not. Leave blank if not a ritual spell.
| String | optional |
attack roll | attack roll | Whether the action is reliant on a attack roll. Leave blank if no attack roll is made.
| String | optional |
save | save | The save (if any) that a target must roll against the damage effect of the action, with the result after the comma.
| String | optional |
concentration | concentration | If this skill is a concentration, type something here. Can be any value you want. Otherwise, leave it blank or delete the field entirely.
| String | optional |
range | range | The range of the action.
| String | optional |
range m | range m | Use this parameter if the action's range does not fit into one of the presets, "melee", "ranged", or "self". Indicates the range in meters.
| Number | optional |
range ft | range ft | Use this parameter if the action's range does not fit into one of the presets, "melee", "ranged", or "self". Indicates the range in feet.
| Number | optional |
aoe | aoe | Indicates if the action affects an area, and what type of shape its effect is.
| String | optional |
aoe m | aoe m | This indicates the range of the action's aoe shape, in meters.
| Number | optional |
aoe ft | aoe ft | This indicates the range of the action's aoe shape, in feet.
| Number | optional |
additional | additional | Any additional properties about the skill that are not covered by template go here, which goes under damage in properties
| Content | optional |
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 |
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 |
Action area name | area | Indicates the name of a special area/field/surface/cloud created by the action (if any). Leave blank if there is none.
| String | optional |
area category | area category | This indicates the type of area created by the action.
| String | optional |
area shape | area shape | This indicates the shape that the special area created by the action takes.
| String | optional |
area range m | area range m | Indicates the range of the area created by action, in meters.
| Number | optional |
area range ft | area range ft | Indicates the range of the area created by action, in feet.
| Number | optional |
area duration | area duration | This indicates how long the area created by the action lasts, in turns.
| Number | optional |
area turn start damage | area turn start damage | How much damage this area does to an entity starting its turn in it.
| String | optional |
area turn start damage type | area turn start damage type | The type of damage dealt to a creature starting its turn in the area created by this action.
| String | optional |
area turn start damage save | area turn start damage save | The saving throw an entity starting its turn in the area created by this action must roll in order to reduce or negate its damage.
| String | optional |
area turn start damage save effect | area turn start damage save effect | This indicates what effect a successful saving throw has on the damage applied to a creature starting its turn in this action's area. Leave blank to default to "negate".
| String | optional |
area turn end damage | area turn end damage | How much damage this area does to an entity ending its turn in it.
| String | optional |
area turn end damage type | area turn end damage type | The type of damage dealt to a creature ending its turn in the area created by this action.
| String | optional |
area turn end damage save | area turn end damage save | The saving throw an entity ending its turn in the area created by this action must roll in order to reduce or negate its damage.
| String | optional |
area turn end damage save effect | area turn end damage save effect | This indicates what effect a successful saving throw has on the damage applied to a creature ending its turn in this action's area. Leave blank to default to "negate".
| String | optional |
area condition | area condition | The full name of the condition applied by this action's area, leave blank if no condition is applied.
| String | optional |
area condition2 | area condition2 | The full name of the second condition applied by this action's area, leave blank if no second condition is applied.
| String | optional |
area condition3 | area condition3 | The full name of the third condition applied by this action's area, leave blank if no third condition is applied.
| String | optional |
area condition4 | area condition4 | The full name of the fourth condition applied by this action's area, leave blank if no fourth condition is applied.
| String | optional |
higher levels | higher levels | If the action changes at higher levels, put info about that here
| Content | optional |
variants | variants | Comma-separated list of variants of the action, like the element types of Chromatic Orb.
| String | optional |
class learns at level X | class learns at level X | This specifies what level the classes get access to this action. Use e.g. "class learns at level 5" with a comma-separated list of classes to specify classes that learn this action at class level 5. You can use subclass names such as "Fiend" or "Light Domain" to indicate that Fiend Warlocks or Light Domain clerics gain access.
| String | suggested |
race learns at level X | race learns at level X | This specifies what level the races get access to this action. Use e.g. "race learns at level 5" with a comma-separated list of races to specify which races learn this action at level 5. You can use subrace names such as "Wood Elf" or "Seldarine Drow" as well.
| String | optional |
granted by feats | granted by feats | This specifies what feats get access to this action. Similar to the class and race arguments, this list can be comma-separated as well.
| String | optional |
granted by items | granted by items | This specifies what items get access to this action. Similar to the class and race arguments, this list can be comma-separated as well.
| String | optional |
granted by spells | granted by spells | This specifies what spells get access to or trigger this action. Similar to the class and race arguments, this list can be comma-separated as well.
| String | optional |
notes | notes | Any extra or related information about the action. | Content | optional |
video | video | Name of an uploaded video file showcasing the action. | File | optional |
Example
{{ActionPage| this is an example = yes | description = abc | image = Fly Icon.png | summary = fly you fools | cost = ki:2, action | damage = amounttext: 1d4+1, type:Bludgeoning | damage2 = amount: 1d6, per:beam, type: Fire | recharge = Long Rest | range = melee | duration = LR | save = DEX, abc | additional = * abcd | higherlevels = go far | condition = Flight | condition duration = 1 | area = Darkness | area category = cloud | area shape = Radius | area range m = 5 | area range ft = 17 | area duration = 10 | area condition = Blinded | class learns at level 3 = Monk | race learns at level 5 = Wood Elf | notes = * bar | video = Fireball-showcase.mp4 }}
fly you fools
Description
abc
Properties
- Cost:
- Action + 2Ki Points
- Damage:
- 1d4+1 Bludgeoning + 1d6 (1~6) Fire per beam
- Details:
- Melee: 1.5 m / 5 ft
- Creates Area: Darkness
- Recharge: Long rest
- Duration: LR turns
- DEX Save (On Save: abc)
- abcd
At Higher Levels
go far
Condition: Flight
Duration: 1 turn
- Fly up to target position, up to 18 m / 60 ft each turn using your Movement Speed.
Area: Darkness
The action creates a cloud with the following properties.
- AoE: 5 m / 17 ft (Radius)
- Duration: 10 turns
Creatures within the area are affected by the following conditions:
- Ranged attacks and spells have a range of 3 m / 10 ft and Attack Rolls suffer Disadvantage.
- Attack Rolls against Blinded creatures have Advantage.
How to Learn
Classes:
- Class Level 3:
Races:
- Character Level 5:
(Character Level is the sum of all Class Levels for a multi-classed character.)
Notes
- bar
Visuals