Items Tutorial and Reference
(A cheap rip off-off the Spell Modding Tutorial By Hazmat, injected with some of El_Heffe's know-how and ... Style!)
This tutorial is part of the “A Blank Mod” project which can be downloaded in it’s entirety here:
Page Index
1.3 Example Item - Healing Charm
2.0 Passive/Equipable Items (and Gems)
2.1 General Tag Explanation
2.2 Effect Tag Explanation
2.3 Example Items
2.3.1 Weapon - Pick
2.3.2 Armor - Leather Vest
2.3.3 Gem - Cracked Zircon
2.4 Templates
2.4.1 Template - Weapon
2.4.2 Template - Armor/Jewelry
2.4.3 Template - Gem
4.1 Effect ‘Type Name’ Tables
Table 4.1.1: ‘Derived’ Stats ( hp, mana, stamina )
Table 4.1.2: Ability Stats ( strength, dexterity, vitality, magic )
Table 4.1.3: Miscellaneous Effects ( ie. openportal )
Table 4.1.4: Defensive Effects ( ie. armorbonus )
Table 4.1.5: Offensive Effects ( ie. adddamagetype )
4.2 Effect Archive - Active Effects
4.3 Effect Archive - Passive Effects
1.0: Active/Useable Items
1.1 General Tag Explanation
The tags that are between [item] and [effect] are the “general tags”. They define certain general things about the item. The tags [effect] and [/effect] surround what is called “the effect block”. The tags inside the effect block define what happens when the item is used. Sometimes the same tag will appear in both places, but do different things.The last line of code for any item is always [/item], if you leave this off the item won’t work.
1.1.1: The Type tag.
1.1.2: The Name tag.
1.1.3: The Rarity tag.
1.1.4: The Fishing Rarity tag.
1.1.5: The Min & Max Depth tags.
1.1.6: The Model tag.
1.1.7: The Collideable & Takeable tags.
1.1.8: The Icon tag.
1.1.9: The Value tag.
1.1.10: The Shadow tag.
1.1.11: The Sound tags.
1.1.12: The Useable tag.
1.1.13: The Uses tag.
1.1.14: The Sfx tag.
1.2: The EFFECT Tag Explanation
The tags [effect] and [/effect] surround what is called “the effect block”. The tags inside the effect block define what happens when the item is used. See the Effect Archive at the end of the tutorial for a list of default effect blocks that you can cut and paste into items, or read the individual tag descriptions below. (Note: You can add multiple effect blocks to the same item to get multiple effects).
1.2.1: The Activation tag.
1.2.2: The Type tag.
1.2.3: The Duration tag.
1.2.4: The Value tag.
1.2.5: The Sfx tag.
1.3: An Example: Healing Charm
Here you'll find a Cut-and-Paste template and tag descriptions that you can use to make your own Active/Useable items.
Difficulty: **
1.3.1 Example Item - Healing Charm
<TYPE>:POTION
<NAME>:Healing Charm
<RARITY>:200
<MINIMUM_DEPTH>:10
<MODEL>:ITEMS/charm.mdl
<COLLIDEABLE>:0
<ICON>:ICONS/healcharm.png:ICONS/healcharma.png
<VALUE>:2000
<SHADOW>:0
<TAKEABLE>:1
<DROP_SOUND>:SOUNDS/ITEMS/fall.wav
<TAKE_SOUND>:SOUNDS/ITEMS/charmget.wav
<LAND_SOUND>:SOUNDS/ITEMS/charmdrop.wav
<USE_SOUND>:SOUNDS/SPELLS/heal.wav
<USEABLE>:1
<USES>:8
<SFX>:FOLLOWTARGET:-1:0:0:0:SPELLS/EFFECTS/HEAL/heal.ams
<MERCHANT_MINIMUM>:8
[EFFECT]
<ACTIVATION>:USAGE
<TYPE>:HPRECHARGE
<DURATION>:INSTANT
<VALUE>:100
[/EFFECT]
[/ITEM]
1.4: An Item Template
1.4.1: Template
<TYPE>:*BOOK, PETFOOD, POTION, SCROLL, or SPELL*
<NAME>:
<RARITY>:
<MINIMUM_DEPTH>:
<MAXIMUM_DEPTH>:
<MODEL>:*put the file path to a 3-D model here, ends with .mdl*
<COLLIDEABLE>:0
<ICON>:*put the file path to the icon here*:*put the file path to the alpha here, both end with .png*
<VALUE>:
<SHADOW>:0
<TAKEABLE>:1
<DROP_SOUND>:SOUNDS/ITEMS/fall.wav
<TAKE_SOUND>:SOUNDS/ITEMS/charmget.wav
<LAND_SOUND>:SOUNDS/ITEMS/charmdrop.wav
<USE_SOUND>:SOUNDS/SPELLS/heal.wav
<USEABLE>:1
<USES>:
<SFX>:FOLLOWTARGET:-1:0:0:0:SPELLS/EFFECTS/HEAL/heal.ams
<MERCHANT_MINIMUM>:
<MERCHANT_MAXIMUM>:
[EFFECT]
<ACTIVATION>:USAGE
<TYPE>:HPRECHARGE
<DURATION>:
<VALUE>:
[/EFFECT]
[/ITEM]