Actions

Template

Difference between revisions of "MagicItem"

From Titan's Teeth

Line 26: Line 26:
 
|Construction=Distill Compound, Destruction sphere, Explosive Orb, Crystal Blast
 
|Construction=Distill Compound, Destruction sphere, Explosive Orb, Crystal Blast
 
|ConstructionCost=75 gp}}
 
|ConstructionCost=75 gp}}
{{#cargo_declare:_table=MagicItems|Name=Wikitext|Type=Wikitext|Subtype=Wikitext|Aura=Wikitext|CL=Integer|Slot=Wikitext|Price=Float|Weight=Wikitext|Description=Wikitext|Construction=Wikitext|ConstructionCost=Wikitext|ForPlayer=Boolean}}
+
{{#cargo_declare:_table=MagicItems|Name=Wikitext|Type=Wikitext|Subtype=Wikitext|Aura=Wikitext|CL=Integer|GL=Integer|Slot=Wikitext|Price=Float|Weight=Wikitext|Description=Wikitext|Construction=Wikitext|ConstructionCost=Wikitext|ForPlayer=Boolean}}
</noinclude><includeonly>{{#cargo_store:_table=MagicItems|Name={{{Name|{{PAGENAME}}}}}|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Aura={{{Aura|}}}|CL={{{CL|—}}}|Slot={{{Slot|—}}}|Price={{{Price|}}}|Weight={{{Weight|}}}|Description={{{Description|}}}|Construction={{{Construction|}}}|ConstructionCost={{{ConstructionCost|}}}|ForPlayer={{{ForPlayer|}}} }}<!--
+
</noinclude><includeonly>{{#cargo_store:_table=MagicItems|Name={{{Name|{{PAGENAME}}}}}|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Aura={{{Aura|}}}|CL={{{CL|—}}}|GL={{GetGearLevel|{{{Price|0}}}}}|Slot={{{Slot|—}}}|Price={{{Price|}}}|Weight={{{Weight|}}}|Description={{{Description|}}}|Construction={{{Construction|}}}|ConstructionCost={{{ConstructionCost|}}}|ForPlayer={{{ForPlayer|}}} }}<!--
  
 
-->{{ColCard|{{{Name|{{PAGENAME}}}}}|3|W|{{#if:{{{Aura|}}}|'''Aura''' {{{Aura}}}; <wbr>|}}'''CL''' {{{CL|—}}}<br><!--
 
-->{{ColCard|{{{Name|{{PAGENAME}}}}}|3|W|{{#if:{{{Aura|}}}|'''Aura''' {{{Aura}}}; <wbr>|}}'''CL''' {{{CL|—}}}<br><!--

Revision as of 14:29, 3 January 2020

Usage:

{{MagicItem
|Name=Name for use when sorting and display; "Healing Potion, Minor"
|Type=Armor, Potion, Wondrous Item
|Subtype=Generally used for wondrous items; Belt, Mask, Hammer
|Aura=Aura detected by detect magic
|CL=Caster Level of creator (Int)
|Slot=Slot when worn
|Price=Buying price in gp (Float)
|Weight=Weight of the item
|Description=Full description
|Construction=Construction requirements
|ConstructionCost=Construction price
|ForPlayer=Whether this item should be visible on player lists (bool, optional)}}

Example Item

Aura faint Destruction; CL 1
Slot none; Price 150 gp; Weight -
Description
This grenade is considered a thrown splash weapon.
Construction Requirements
Distill Compound, Destruction sphere, Explosive Orb, Crystal Blast; Cost 75 gp

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