PluginName: SDJB_SaveManager
Author: ShadowDragon
This plugin is completely rewritten from the ground up
and works differently as it was before.
Smoother and save as its own object entirely!
=== TERMS OF USE ===
Free for Non-Commercial and Commercial use when credit is given.
credit one of the following:
ShadowDragon
ShadowDragonJB
=== WARNING ===
YOU ARE NOT ALLOWED TO REDISTRIBUTE OR SELL IT OR TAKE CODE FOR YOUR OWN.
DO NOT REMOVE THE HEADER.
(require my base plugin (SDJB_Base or SDJB_BaseMVZ (minified version))
leave Feedback and or suggestions.
Download from itch.io
Author: ShadowDragon
This plugin is completely rewritten from the ground up
and works differently as it was before.
Smoother and save as its own object entirely!
Code:
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.
=== TERMS OF USE ===
Free for Non-Commercial and Commercial use when credit is given.
credit one of the following:
ShadowDragon
ShadowDragonJB
=== WARNING ===
YOU ARE NOT ALLOWED TO REDISTRIBUTE OR SELL IT OR TAKE CODE FOR YOUR OWN.
DO NOT REMOVE THE HEADER.
(require my base plugin (SDJB_Base or SDJB_BaseMVZ (minified version))
leave Feedback and or suggestions.
Download from itch.io