Template:Spell cost table/doc

From RuneRealm Wiki
Jump to navigation Jump to search
This is a documentation subpage for Template:Spell cost table.
It contains usage information, categories, and other content that is not part of the original template page.
Template:Spell cost table invokes function main in Module:Spell cost table using Lua.
Template:Spell cost table invokes Module:Spell cost table using Lua.

Creates a table for cost of casting a spell. Automatically calculates additional costs for combo runes and staves.

To hide the staff section for any reason, add the parameter nostaff with any value. Similarly, to hide the offhand section, add the nooffhand parameter.

{{Spell cost table
|Rune# = <name> (without rune)
|Rune#num = amount
}}

Example (from Fire Wave)

{{Spell cost table
|Rune1 = fire
|Rune1num = 7
|Rune2 = air
|Rune2num = 5
|Rune3 = blood
|Rune3num = 1
}}


Spell cost
InputCost
7 5 1 280
Combo runes
7 1 5 265
5 1 7 266
1 7 360
5 1 7 875
7 1 5 365
Main-hands
7 1 Alt255
5 1 Alt245
1 220
Main and off-hands
5 1 245
1 Alt 220