A new script of mine for you
Szyu's Equipment Enhancements
Introduction
Did you ever want to give the opportunity to enhance single equipment items?
With this script, you can enhance weapons and armors individually by defining several “equipment items” and without altering your weapons- and armorsdatabase.
Note that the feature enhancement will require a little bit of trial and error and looking in feature section in database!
Get at Pastebin
Pastebin
How to Use
Simply create items in your database and edit their notes with following constructs:
Indicating that an item is an enhancement item:
<enhancement_item>…</enhancement_item>Define the type this enhancement is for (weapon or armor):
type: wtype: aDefine prefix and suffix, the item will get when enhanced (the terms inside the quote can be altered):
prefix: “Enhanced ”suffix: ” [E]”
Defining the actual enhancements could be a little bit tricky:
Enhancing Parameters:
p: attr value–
p indicates that a parameter will be enhanced
–
attr indicates the shortname of the parameter. For a detailed list of available attributes, see below
–
value indicates the amount the specified attribute will be altered
Enhancing Features:
f: code data val–
f indicates that a feature will be added
–
code indicates which feature will be added (since it will be declared as an integer, you should that a look an the features which can be added to an equipment item.
The number is designed as xy, where x is the index of the tab and y is the index of the parameter. i.e. code = 22 would be tab “parameters” with feature “ex-parameter”)
–
data indicates the id of the dropdown list in the database features i.e. with code = 22, data = 6 would be parameter mrf
–
value indicates the value as it would be stated in the database features. if a state would be added, this number has to be 0 if a skill would be added,
this number has to be 1. With features which do not allow number input in the database, you will have to test if the stated number would work. But it will either be 0 or 1!)
Available Attributes:
- str – Strength
- def – Defense
- mat – Magical Attack
- mdf – Magical Defense
- agi – Agility
- luk – Luck
- hp – Max HP
- mp – Max MP
Examples
This example would define an enhancement item, that enhances a weapon item. After enhancing, a suffix ” [E]” will be applied to the weapon name. Strength will be enhanced by +5, max hp will be enhanced by +200 and a new feature will be added to the weapon:
Another example would be “f: 23 5 2.50″
Credits
Credits to
Szyu if you plan to use this script.
Changelog
Code:
- Weapons and Armors are now ordered by name- Added Diminishing Items- Added Possibility of exlcuding equipment from enhancing list