Introduction
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
This plugin adds per-save-file changes to the database.
It makes unique (one-of-a-kind) weapons or armors
easy to upgrade without adding or removing them from the inventory.
How to use
Íž Íž Íž Íž Íž Íž Íž Íž Íž Íž
Types: "weapon" and "armor"
Available parameters: mhp, mmp, atk, def, mat, mdf, agi, luk
Upgrade an item using a script call:
=> Example for armor
SDJB_SaveManager.saveNewValue("armor", 1, {
name: "Shield +1",
iconIndex: 20,
atk: -3,
def: 20,
description: "New upgraded shield",
});
=> Example for weapon
SDJB_SaveManager.saveNewValue("weapon", 1, {
name: "Sword +1",
iconIndex: 10,
atk: 15,
description: "New upgraded sword",
});
Or fully override the params array (armor or weapon):
SDJB_SaveManager.saveNewValue("weapon", 1, {
name: "Sword +1",
iconIndex: 10,
params: [0, 0, 15, 0, 0, 0, 0, 0],
description: "New upgraded sword",
});
Both methods update the name, icon, parameters, and description
of $dataWeapons[1].
First example: only attack changes to 15.
Second example: only the attack parameter (params[2]) changes,
but it requires the full array to set the new values:
[mhp, mmp, atk, def, mat, mdf, agi, luk].
First option is cleaner, but both are valid.