Template:SubSpell

From The Cataclysm: Dark Days Ahead Wiki
Revision as of 21:07, 4 April 2021 by Actual-nh (talk | contribs) (→‎Template Documentation: Remember copy-from!)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
SubSpell Sub-Spell
General
Target None
Max Level 0
Other
Effect Pseudo-Attack

Template Documentation

This template is for spells that are either sub-spells of another spell, or used to get a result other than an actual Magiclysm spell (e.g., the Frog Mother's spawning of tadpoles). When translating from JSON, be sure to notice and include anything gotten via "copy-from", such as "max_level". In parentheses are variable names, where not identical:

  • Title:
    • Id: Defaults to name or page name, with "Sub-Spell" appended
  • Casting:
    • Valid target/targets (target): Defaults to "None"
    • Affected body part/parts (body_parts)
    • Max effective level (maxlevel): If this is not in a subspell's JSON and the main spell has it, there may be a problem with the subspell for anything that's supposed to change with level.
  • Range:
    • Base (minimum) range (range): Defaults to 0
    • Maximum range (max_range)
    • Range increment: Defaults to 0
  • Shape/AOE (Area Of Effect):
    • Shape: If the shape is down as "blast", but this is not actually applicable (e.g., many self-only effects), leave this field out. If it is shown, the string "Pseudo-Blast" will be used. (Please feel free to suggest alternate phraseology.)
    • Base (minimum) area of effect (min_AOE): Defaults to 0; usually radius, but depends on "shape"
    • Maximum area of effect (max_AOE): Usually radius, but depends on "shape"
    • Area of effect increment (AOE_increment): Usually radius, but depends on "shape"
  • Duration (in moves):
    • Base (minimum) duration (duration): Defaults to 0
    • Maximum duration (max_duration)
    • Duration increment: Defaults to 0
  • Damage:
    • Damage type (dtype): Defaults to "Pure" (note that a JSON spell file lacking a damage type may not work right currently)
    • Base (minimum) damage (min_damage): Defaults to 0
    • Maximum damage (max_damage)
    • Damage increment: Defaults to 0
  • DOT (Damage Over Time, per turn):
    • Base (minimum) Damage Over Time (min_DOT): Defaults to 0
    • Maximum Damage Over Time (max_DOT)
    • Damage Over Time increment (DOT_increment): Defaults to 0
  • Field:
    • Field ID (field)
    • Field chance (field_chance): 1/this is the chance the field will be created in each tile of the AOE
    • Minimum (base) field intensity (min_field_intensity): Defaults to 0
    • Maximum (final) field intensity (max_field_intensity)
    • Field intensity increment: Defaults to 0
    • Field intensity variance: Actual intensity is intensity +/- this*intensity
  • Pierce:
    • Minimum (base) pierce (min_pierce): Defaults to 0
    • Maximum (final) pierce (max_pierce)
    • Pierce increment: Defaults to 0
  • Other (some other category name, no pun intended, would be helpful...):
    • Effect: Similarly to "shape", if the effect is down as "attack", but it is not actually an attack as such (e.g., a negative-damage self-effect for healing), leave this field out; it will show up as "Pseudo-Attack". (Please feel free to suggest alternate phraseology.)
    • Effect string (eff_str)
    • Flags: Currently can take up to 6 flags; see Template:Spellflags for further information
    • Extra Effects (extra_effects): Other things (usually/always spells?) that are set off by this spell

Not part of the infobox are the description and, if present, message. Note that this template is incomplete; for instance, it does not include any sounds produced.