Jump to content

Template:Spells: Difference between revisions

From Apogea Wiki
Jayarrowz (talk | contribs)
Created page with "{{#cargo_declare:_table=Spells |name=String |sprite=String |type=String |magic=Integer |ability=Integer |cost=String |hp_cast=String |cooldown=String |description=Text |formula=String }}<noinclude> This template declares the Cargo table structure for spells. == Fields == {| class="wikitable" |- ! Field !! Type !! Description |- | name || String || The spell's name |- | sprite || String || Custom sprite override (defaults to type-based spellbook) |- | type || String || S..."
 
Jayarrowz (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
|cooldown=String
|cooldown=String
|description=Text
|description=Text
|formula=String
|base_damage=String
}}<noinclude>
|magic_scaling=String
|damage_scaling=String
|attack_speed=String
|effect=Text
}}
 
<noinclude>
This template declares the Cargo table structure for spells.
This template declares the Cargo table structure for spells.


Line 16: Line 22:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Field !! Type !! Description
! Field !! Type !! Description !! Color
|-
| name || String || The spell's name ||
|-
| sprite || String || Sprite name (e.g., "Red Book", "Blue Book") ||
|-
| type || String || Spell type (Light, Blade, Physical, Death, Fire, etc.) ||
|-
|-
| name || String || The spell's name
| magic || Integer || Magic stat requirement ||
|-
|-
| sprite || String || Custom sprite override (defaults to type-based spellbook)
| ability || Integer || Ability stat requirement ||
|-
|-
| type || String || Spell type (Light, Blade, Physical, Death, Fire, Arrow, Time, Energy, Heal, Holy, Earth, Mystic, Defense, Water, Conjure)
| cost || String || Mana or health cost ||
|-
|-
| magic || Integer || Magic stat requirement
| hp_cast || String || Whether spell can be cast using health ("yes" or "no") ||
|-
|-
| ability || Integer || Ability stat requirement
| cooldown || String || Cooldown in seconds ||
|-
|-
| cost || String || Mana or health cost (can be a range like "50-250")
| description || Text || Spell description ||
|-
|-
| hp_cast || String || Whether spell can be cast using health ("yes" or "no")
| base_damage || String || Base damage (e.g., "20 Base Damage") || Gold
|-
|-
| cooldown || String || Cooldown in seconds
| magic_scaling || String || Magic scaling (e.g., "75% Magic") || Purple
|-
|-
| description || Text || Spell description
| damage_scaling || String || Damage scaling (e.g., "65% Damage") || Purple
|-
|-
| formula || String || Damage/healing formula
| attack_speed || String || Attack speed bonus (e.g., "+10 Attack Speed") || Gold
|-
| effect || Text || Secondary effects (slow, stun, burn, etc.) || Columbia
|}
|}
== Example ==
<pre>
{{SpellEntry
|name=Crying Arrow
|sprite=Red Book
|type=Arrow
|magic=10
|ability=35
|cost=175
|description=Casts multiple arrows towards direction.
|base_damage=35 Base Damage
|magic_scaling=25% Magic
|damage_scaling=65% Damage
|effect=Inflicts thrash
}}
</pre>


[[Category:Cargo declarations]]
[[Category:Cargo declarations]]
</noinclude>
</noinclude>

Latest revision as of 23:46, 30 January 2026

This template defines the table "Spells". View table.


This template declares the Cargo table structure for spells.

Fields

[edit source]
Field Type Description Color
name String The spell's name
sprite String Sprite name (e.g., "Red Book", "Blue Book")
type String Spell type (Light, Blade, Physical, Death, Fire, etc.)
magic Integer Magic stat requirement
ability Integer Ability stat requirement
cost String Mana or health cost
hp_cast String Whether spell can be cast using health ("yes" or "no")
cooldown String Cooldown in seconds
description Text Spell description
base_damage String Base damage (e.g., "20 Base Damage") Gold
magic_scaling String Magic scaling (e.g., "75% Magic") Purple
damage_scaling String Damage scaling (e.g., "65% Damage") Purple
attack_speed String Attack speed bonus (e.g., "+10 Attack Speed") Gold
effect Text Secondary effects (slow, stun, burn, etc.) Columbia

Example

[edit source]
{{SpellEntry
|name=Crying Arrow
|sprite=Red Book
|type=Arrow
|magic=10
|ability=35
|cost=175
|description=Casts multiple arrows towards direction.
|base_damage=35 Base Damage
|magic_scaling=25% Magic
|damage_scaling=65% Damage
|effect=Inflicts thrash
}}