Jump to content

Equipment Upgrade System 1.0.1


7 Screenshots

About This File

A multi-level upgrade system for your equipment similar to ROM:EL equipment upgrades. Easily manage the upgrade bonuses of your equipment without duplicating them. The only downside is, the upgrade system doesn't support any 4 slotted equipment.

For easy explanation, we will go with 2 equipment samples:
Equipment 50103 (Costume Fate Magic Book) and Equipment 50107 (Costume Fate Wand)

How to Use:

Go and edit your file equipment_upgrades.txt

1. You add your upgrade bonuses at section II. EQUIPMENT BONUSES and list the item bonus just like the 2 samples.
2. Enumerate all the requirements for upgrading the equipment at section III. EQUIPMENT REQUIREMENTS and list it just like the 2 samples.
(3.) Optional. If you are planning to add more than 5 upgrades or if you modified the item ID of enchant stones, you must also update the section I. EQUIPMENT UPGRADE LEVEL MODIFIERS.

Go and edit your file item_db.yml

1. You must add this first:

# UPGRADE ENCHANT CARD SLOTS
  - Id: 50108
    AegisName: S_Upgrade_I
    Name: Upgrade - I
    Type: Card
    SubType: Enchant
  - Id: 50109
    AegisName: S_Upgrade_II
    Name: Upgrade - II
    Type: Card
    SubType: Enchant
  - Id: 50110
    AegisName: S_Upgrade_III
    Name: Upgrade - III
    Type: Card
    SubType: Enchant
  - Id: 50111
    AegisName: S_Upgrade_IV
    Name: Upgrade - IV
    Type: Card
    SubType: Enchant
  - Id: 50112
    AegisName: S_Upgrade_V
    Name: Upgrade - V
    Type: Card
    SubType: Enchant

(2.) Optional. If you are planning to add more than 5 upgrades or if you modified the item ID of enchant stones, you must add/update the necessary item_db entry for those just like the above entries. (with the correct enchantIDs of course)
3. IMPORTANT: Every time you add an equipment upgrade bonus to an item, you must also add this line: callfunc("GetUpgradeBonus");

Here are some sample entry using the 2 equipment samples for your reference:

- Id: 50103
    AegisName: C_Fate_MagicBook
    Name: Costume Fate Magic Book
    Type: ShadowGear
    Weight: 100
    View: 115
    Jobs:
      Sage: true
    Locations:
      Shadow_Weapon: true
    Script: |
      bonus bAspdRate,50;
      bonus2 bSubEle,Ele_Ghost,5;
      bonus3 bAutoSpell,"MG_THUNDERSTORM",10,200;
      callfunc("GetUpgradeBonus");
  - Id: 50107
    AegisName: C_Fate_Wand
    Name: Costume Fate Wand
    Type: ShadowGear
    Weight: 100
    View: 119
    Jobs:
      SoulLinker: true
    Locations:
      Shadow_Weapon: true
    Script: |
      bonus bAspdRate,50;
      bonus2 bSubEle,Ele_Neutral,5;
      bonus2 bMagicAtkEle,Ele_Dark,5;
      callfunc("GetUpgradeBonus");

Lastly, go and edit your file iteminfo.lua

1. You must add this first:

[50108] = {
        unidentifiedDisplayName = "Upgrade - I",
        unidentifiedResourceName = "Wolf_Orb_M_Counter_1",
        unidentifiedDescriptionName = { "" },
        identifiedDisplayName = "Upgrade - I",
        identifiedResourceName = "Wolf_Orb_M_Counter_1",
        identifiedDescriptionName = { "^0066FFThis equipment is currently at Upgrade - I^000000" },
        slotCount = 0,
        ClassNum = 0,
        costume = false
    },
    [50109] = {
        unidentifiedDisplayName = "Upgrade - II",
        unidentifiedResourceName = "Wolf_Orb_Mag_1",
        unidentifiedDescriptionName = { "" },
        identifiedDisplayName = "Upgrade - II",
        identifiedResourceName = "Wolf_Orb_Mag_1",
        identifiedDescriptionName = { "^404DD9This equipment is currently at Upgrade - II^000000" },
        slotCount = 0,
        ClassNum = 0,
        costume = false
    },
    [50110] = {
        unidentifiedDisplayName = "Upgrade - III",
        unidentifiedResourceName = "Wolf_Orb_Robust_1",
        unidentifiedDescriptionName = { "" },
        identifiedDisplayName = "Upgrade - III",
        identifiedResourceName = "Wolf_Orb_Robust_1",
        identifiedDescriptionName = { "^8033B3This equipment is currently at Upgrade - III^000000" },
        slotCount = 0,
        ClassNum = 0,
        costume = false
    },
    [50111] = {
        unidentifiedDisplayName = "Upgrade - IV",
        unidentifiedResourceName = "Wolf_Orb_Str_1",
        unidentifiedDescriptionName = { "" },
        identifiedDisplayName = "Upgrade - IV",
        identifiedResourceName = "Wolf_Orb_Str_1",
        identifiedDescriptionName = { "^BF1A8CThis equipment is currently at Upgrade - IV^000000" },
        slotCount = 0,
        ClassNum = 0,
        costume = false
    },
    [50112] = {
        unidentifiedDisplayName = "Upgrade - V",
        unidentifiedResourceName = "Wolf_Orb_Hp_1",
        unidentifiedDescriptionName = { "" },
        identifiedDisplayName = "Upgrade - V",
        identifiedResourceName = "Wolf_Orb_Hp_1",
        identifiedDescriptionName = { "^FF0066This equipment is currently at Upgrade - V^000000" },
        slotCount = 0,
        ClassNum = 0,
        costume = false
    },

(2.) Optional. If you are planning to add more than 5 upgrades or if you modified the item ID of enchant stones, you must add/update the necessary iteminfo entry for those just like the above entries. (with the correct enchantIDs of course)
3. Then add your equipment upgrade description. Here are some sample entry using the 2 equipment samples for your reference:

[50103] = {
        unidentifiedDisplayName = "Costume Fate Magic Book",
        unidentifiedResourceName = "Fate_MagicBook",
        unidentifiedDescriptionName = { "Unknown Item, can be identified by using a ^6666CCMagnifier^000000." },
        identifiedDisplayName = "Costume Fate Magic Book",
        identifiedResourceName = "Fate_MagicBook",
        identifiedDescriptionName = {
            "Slightly increase attack speed",
            "+5% Resistance to Ghost element",
            "Adds a chance of autocasting Thunder Storm when physically attacking",
            "+1% Matk per ^0000FFupgrade^000000",
            "+1 Allstats per ^0000FFupgrade^000000",
            "________________________",
            "^0000FF[Upgrades]",
            "^0066FFI: +2% Ignore Mdef",
            "^404DD9II: +4 Attack Range",
            "^8033B3III: Adds a chance of autocasting Heaven's Drive when physically attacking",
            "^BF1A8CIV: +3% Ignore Mdef",
            "^FF0066V: Has a low chance of autocasting Spider Web when physically attacking, +5% Ghost Resistance",
            "^000000________________________",
            "Class:^6666CC Costume Weapon^000000",
            "Weight:^009900 10^000000",
            "Jobs:^6666CC Sage^000000"
        },
        slotCount = 0,
        ClassNum = 115,
        costume = true
    },
    [50107] = {
        unidentifiedDisplayName = "Costume Fate Wand",
        unidentifiedResourceName = "Fate_Wand",
        unidentifiedDescriptionName = { "Unknown Item, can be identified by using a ^6666CCMagnifier^000000." },
        identifiedDisplayName = "Costume Fate Wand",
        identifiedResourceName = "Fate_Wand",
        identifiedDescriptionName = {
            "Slightly increase attack speed",
            "+5% Resistance to Neutral element",
            "+5% Shadow Magical DMG",
            "+1% Matk per ^0000FFupgrade^000000",
            "+1 Allstats per ^0000FFupgrade^000000",
            "________________________",
            "^0000FF[Upgrades]",
            "^0066FFI: +5% Shadow Magical DMG",
            "^404DD9II: +5% Demi-Human Resistance",
            "^8033B3III: +10% Shadow Magical DMG",
            "^BF1A8CIV: Reduces any reflected damage from enemies by 50%",
            "^FF0066V: +20% Ignore Mdef, +5% Neutral Resistance",
            "^000000________________________",
            "Class:^6666CC Costume Weapon^000000",
            "Weight:^009900 10^000000",
            "Jobs:^6666CC Soul Linker^000000"
        },
        slotCount = 0,
        ClassNum = 119,
        costume = true
    },

That's basically it! You may implement it to an existing equipment to make it more relevant and usable 🙂

DM me on Discord for questions and clarification.

Edited by adeptfrog


What's New in Version 1.0.1   See changelog

Released

  • Fixed any two-handed equipment failing to get any upgrade bonuses
  • Added more samples for reference

×
×
  • Create New...