How to Add Item Mods
In this page you will learn how to add modifiers to items. These are for items that add mods to the player/weapon once equipped.
Finding the Item ID
To find the Item ID, you can either search through the item_ tables or find the Item ID from it's url on ffxiah e.g.
With 18072 being the item's id.
Adding mods to the item
First, you'll need to find which mods the item adds. You can go about doing this by finding the item's wiki page on ffxiclopedia or checking the item on ffxiah.
You can then look up the Mod ID in
scripts/globals/status.lua, the Mod IDs Page, or
src/map/modifier.h (ctrl+f for MOD_).
You will then need to convert the Mod ID from hexadecimal to decimal. You can do this if you use Windows Calculator (on Windows 7) and switch it to Programmer Mode (View > Programmer) to convert between hex and dec or you can use an online hexadecimal to decimal converter.
Then you navigate to
sql/item_mods.sql, add a new SQL statement with the Item ID, Mod ID and Mod Value e.g.
INSERT INTO `item_mods` VALUES(ItemId, modId, modValue);
- Items also have MOD_DEF for DEF+ on items so remember to add that too if the item doesn't already have it.
- If the item has mods which are activated on certain conditions, it's a latent. Please refer to the How to Add Item Latents page.