Difference between revisions of "Template:Ability box"
From Tales of Maj'Eyal
(Added conditional to exclude passives from having use speed) |
(Added conditionals to make the default range Melee/Personal unless the use mode is passive. Also updated documentation.) |
||
| Line 18: | Line 18: | ||
|- | |- | ||
! scope="col" width="100px" |Range | ! scope="col" width="100px" |Range | ||
| − | | {{{ | + | | {{#switch: {{{use_mode}}} | Passive | passive = - | {{{range|Melee/Personal}}} }} |
|- | |- | ||
! scope="col" width="100px" |Cost | ! scope="col" width="100px" |Cost | ||
| Line 78: | Line 78: | ||
:Time until the ability can be used again. | :Time until the ability can be used again. | ||
;range | ;range | ||
| − | :The distance over which the ability can be used. | + | :The distance over which the ability can be used. This will default to Melee/Personal if no range is specified and the use mode is not passive. |
;use_speed | ;use_speed | ||
| − | :How much time this ability takes to be used | + | :How much time this ability takes to be used. This defaults to 1 turn if the use mode is not passive. Enter Instant if it is an instant use talent. |
;travel_speed | ;travel_speed | ||
:The speed at which the talent moves, if it has range. This is usually listed in the talent description or code. For melee/personal leave this blank. | :The speed at which the talent moves, if it has range. This is usually listed in the talent description or code. For melee/personal leave this blank. | ||
;use_mode | ;use_mode | ||
| − | :How talent is used - | + | :How talent is used - Passive, Activated, or Sustained. |
;desc | ;desc | ||
:Description of the ability as it appears in game. Remember that any numbers you see in game are '''specific to your character'''! When in doubt use variables ("X" or "Y"), or look into the code to determine the formula used. | :Description of the ability as it appears in game. Remember that any numbers you see in game are '''specific to your character'''! When in doubt use variables ("X" or "Y"), or look into the code to determine the formula used. | ||
</noinclude> | </noinclude> | ||
Revision as of 01:38, 6 August 2014
| [[{{{name}}} (talent)|{{{name}}}]] | ||
| (no image) | ||
| Category Type | - | |
|---|---|---|
| Category | - | |
| Requirements | - | |
| Use Mode | - | |
| Range | Melee/Personal | |
| Cost | - | |
| Cooldown | - | |
| Travel Speed | - | |
| Use Speed | 1 turn | |
| Description | - | |
Use this template on pages that define a talent or item ability. For NPC-only talents/abilities use Template:Ability_box/npc.
{{Ability_box
|name=
|image=
|category_type=
|category=
|require=
|range=
|cost=
|use_mode=
|cooldown=
|use_speed=
|travel_speed=
|desc=
}}
- name
- The name of the ability, the way it is written in game
- image
- Image file for this ability. This is typically the name of the talent with a .png extension (Chant of fortitude (talent) is "Chant of fortitude.png". If you can't find a match, leave it blank.
- category_type
- The top-level category group type; in "Chronomancy/Energy" it would be Chronomancy. See Talents for this list.
- category
- The sub-category type (aka "tree"); in "Chronomancy/Energy" it would be Energy.
- require
- Requirements for the ability. Use the correct template from Template:TalentReq!
- For example, if the talent's source code looks like:
require = cuns_req4,
- then you should use this value in the template:
|require={{TalentReq/CunsReq4}}
- cost
- Ability cost (mana, vim, hate, stamina) etc.
- cooldown
- Time until the ability can be used again.
- range
- The distance over which the ability can be used. This will default to Melee/Personal if no range is specified and the use mode is not passive.
- use_speed
- How much time this ability takes to be used. This defaults to 1 turn if the use mode is not passive. Enter Instant if it is an instant use talent.
- travel_speed
- The speed at which the talent moves, if it has range. This is usually listed in the talent description or code. For melee/personal leave this blank.
- use_mode
- How talent is used - Passive, Activated, or Sustained.
- desc
- Description of the ability as it appears in game. Remember that any numbers you see in game are specific to your character! When in doubt use variables ("X" or "Y"), or look into the code to determine the formula used.