Template:SubSpell: Difference between revisions
Jump to navigation
Jump to search
(Max level for subspells - need to check on!) |
(→Template Documentation: Remember copy-from!) |
||
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
|data2={{{body_parts|}}} | |data2={{{body_parts|}}} | ||
| | |label3=<abbr title="Maximum effective level">Max Level</abbr> | ||
| | |data3={{{maxlevel|<span style="color:grey">0</span>}}} | ||
| | |header4={{#if: {{{range|{{{range_increment|}}} }}}|Range }} | ||
| | |label4=<abbr title="Base/min range">Min</abbr> | ||
| | |data4={{#if: {{{range|{{{range_increment|}}} }}}|{{{range|<span style="color:grey">0</span>}}} }} | ||
| | |label5=<abbr title="Maximum range">Max</abbr> | ||
| | |data5={{{max_range|}}} | ||
| | |label6=<abbr title="Range increment">Increment</abbr> | ||
| | |data6={{#ifeq: {{{range|}}}|{{{max_range|}}}|{{{range_increment|}}}|{{{range_increment|<span style="color:grey">0</span>}}} }} | ||
| | |header7={{#if: {{{shape|{{{min_AOE|{{{AOE_increment|}}} }}} }}}|<abbr title="Shape/Area Of Effect">Shape/AOE</abbr> }} | ||
| | |label7=Shape | ||
| | |data7={{#if: {{{shape|{{{min_AOE|{{{AOE_increment|}}} }}} }}}|{{{shape|<span style="color:grey"><abbr title="N/A shape; technically blast">Pseudo-Blast</abbr></span>}}} }} | ||
| | |label8=<abbr title="Base/minimum Area Of Effect (usually radius)">Min AOE</abbr> | ||
| | |data8={{#if: {{{min_AOE|{{{AOE_increment|}}} }}}|{{{min_AOE|0}}} }} | ||
| | |label9=<abbr title="Maximum Area Of Effect">Max AOE</abbr> | ||
| | |data9={{#if: {{{max_AOE|}}}|{{{max_AOE}}} }} | ||
| | |label10=<abbr title="Area Of Effect increment">Increment</abbr> | ||
| | |data10={{#if: {{{AOE_increment|{{{min_AOE|}}} }}}|{{{AOE_increment|0}}} }} | ||
| | |header11={{#if: {{{duration|{{{duration_increment|}}} }}}|Duration}} | ||
| | |label11=<abbr title="Base/minimum duration (in moves)">Min</abbr> | ||
| | |data11={{#if: {{{duration|{{{duration_increment|}}} }}}|{{{duration|0}}} }} | ||
| | |label12=<abbr title="Maximum duration (in moves)">Max</abbr> | ||
| | |data12={{{max_duration|}}} | ||
| | |label13=<abbr title="Duration increment (in moves)">Increment</abbr> | ||
| | |data13={{#if: {{{duration_increment|{{{duration|}}} }}}|{{{duration_increment|0}}} }} | ||
| | |header14={{#if: {{{min_damage|{{{damage_increment|}}} }}}|Damage}} | ||
| | |label14=<abbr title="Damage type">Type</abbr> | ||
| | |data14={{#if: {{{min_damage|{{{damage_increment|}}} }}}|{{{dtype|<span style="color:grey">Pure</span>}}}}} | ||
| | |label15=<abbr title="Base/minimum damage">Min</abbr> | ||
| | |data15={{#if: {{{min_damage|{{{damage_increment|}}} }}}|{{{min_damage|0}}} }} | ||
| | |label16=<abbr title="Maximum damage">Max</abbr> | ||
| | |data16={{{max_damage|}}} | ||
| | |label17=<abbr title="Damage increment">Increment</abbr> | ||
| | |data17={{#if: {{{damage_increment|{{{min_damage|}}} }}}|{{{damage_increment|0}}} }} | ||
| | |header18={{#if: {{{min_DOT|{{{DOT_increment|}}} }}}|<abbr title="Damage Over Time (per turn)">DOT</abbr>}} | ||
| | |label18=<abbr title="Base/minimum Damage Over Time">Min</abbr> | ||
| | |data18={{#if: {{{min_DOT|{{{DOT_increment|}}} }}}|{{{min_DOT|0}}} }} | ||
| | |label19=<abbr title="Maximum Damage Over Time">Max</abbr> | ||
| | |data19={{{max_DOT|}}} | ||
| | |label20=<abbr title="Damage Over Time increment">Increment</abbr> | ||
| | |data20={{#if: {{{min_DOT|{{{DOT_increment|}}} }}}|{{{DOT_increment|0}}} }} | ||
| | |header21={{#if: {{{field|}}}|Field }} | ||
| | |label21={{#if: {{{field|}}}|<abbr title="Field ID">Field</abbr> }} | ||
| | |data21={{{field|}}} | ||
| | |label22={{#if: {{{field_chance|}}}|<abbr title="1 over this is the chance of a field occurring in the AOE">Field Chance</abbr> }} | ||
| | |data22={{{field_chance|}}} | ||
| | |label23={{#if: {{{field|}}}|<abbr title="Minimum/base field intensity">Min I</abbr> }} | ||
| | |data23={{#if: {{{field|}}}|{{{min_field_intensity|<span style="color:grey">0</span>}}} }} | ||
| | |label24={{#if: {{{max_field_intensity|}}}|<abbr title="Maximum/final field intensity">Max I</abbr> }} | ||
| | |data24={{{max_field_intensity|}}} | ||
| | |label25={{#if: {{{field|}}}|<abbr title="Field intensity increment">Increment</abbr> }} | ||
| | |data25={{#if: {{{field_intensity_increment|<span style="color:grey">0</span>}}} }} | ||
| | |label26=<abbr title="Intensity is +/- this as a proportion">Variance</abbr> | ||
| | |data26={{{field_intensity_variance|}}} | ||
| | |header27={{#if: {{{min_pierce|{{{pierce_increment|}}} }}}|Pierce}} | ||
| | |label27=<abbr title="Base/minimum pierce">Min</abbr> | ||
| | |data27={{#if: {{{min_pierce|{{{pierce_increment|}}} }}}|{{{min_pierce|0}}} }} | ||
| | |label28=<abbr title="Maximum pierce">Max</abbr> | ||
| | |data28={{{max_pierce|}}} | ||
| | |label29=<abbr title="Pierce increment">Increment</abbr> | ||
| | |data29={{#if: {{{pierce_increment|{{{min_pierce|}}} }}}|{{{pierce_increment|0}}} }} | ||
| | |header30=Other | ||
| | |label30=Effect | ||
| | |data30={{{effect|<span style="color:gray">Pseudo-Attack</span>}}} | ||
| | |label31=Effect String | ||
| | |data31={{#if: {{{eff_str|}}}|{{{eff_str}}} }} | ||
| | |label32=Flags | ||
| | |data32={{#if:{{{flag1|}}}|<abbr title="{{spellflags|{{{flag1}}}}}">{{uc:{{{flag1}}}}}</abbr>|}}{{#if:{{{flag2|}}}|, <abbr title="{{spellflags|{{{flag2}}}}}">{{uc:{{{flag2}}}}}</abbr>|}}{{#if:{{{flag3|}}}|, <abbr title="{{spellflags|{{{flag3}}}}}">{{uc:{{{flag3}}}}}</abbr>|}}{{#if:{{{flag4|}}}|, <abbr title="{{spellflags|{{{flag4}}}}}">{{uc:{{{flag4}}}}}</abbr>|}}{{#if:{{{flag5|}}}|, <abbr title="{{spellflags|{{{flag5}}}}}">{{uc:{{{flag5}}}}}</abbr>|}}{{#if:{{{flag6|}}}|, <abbr title="{{spellflags|{{{flag6}}}}}">{{uc:{{{flag6}}}}}</abbr>|}} | ||
| | |label33=Extra Effects | ||
| | |data33={{#if: {{{extra_effects|}}}|{{{extra_effects}}} }} | ||
}} | }} | ||
Line 130: | Line 130: | ||
<noinclude> | <noinclude> | ||
== Template Documentation == | == Template Documentation == | ||
This template is for spells that are either sub-spells of [[:Template:Spell|another spell]], or used to get a result other than an actual [[Magiclysm]] spell (e.g., the Frog Mother's spawning of tadpoles). In parentheses are variable names, where not identical: | This template is for spells that are either sub-spells of [[:Template:Spell|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: | * Title: | ||
Line 137: | Line 137: | ||
** Valid target/targets (target): Defaults to "None" | ** Valid target/targets (target): Defaults to "None" | ||
** Affected body part/parts (body_parts) | ** Affected body part/parts (body_parts) | ||
** Max effective level (maxlevel): If this is not in a subspell | ** Max effective level (maxlevel): If this is not in a subspell's [[:Category:JSON|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: | * Range: | ||
** Base (minimum) range (range): Defaults to 0 | ** Base (minimum) range (range): Defaults to 0 |
Latest revision as of 21:07, 4 April 2021
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.