- Joined
- Dec 26, 2013
- Messages
- 1,813
- Solutions
- 12
- Reaction score
- 1,106
Ok everyone, I have been working on something for a few weeks in my spare time, and I'm here to share with you, a "Custom Equipment" system, that loads all your custom equipment properties thru a single xml file.
Credits to : @azzkaban for original release this is based off of here
Special thanks to @forgee , @zbizu , @Sarah Wesker , @Evil Hero for helping me along the way.
This is for TFS 1.3+ only, it is considered a MOD as it utilizes many different events in one file.
Features
Why would you prefer to use this over any other system out there? Perhaps for simplicity or convenience, however this isn't a system that is made to be in competition with other systems like it, it's intended purpose was to make up for what the source code doesn't already provide for us, you know, those "item abilities" that people are always looking for, well, they can easily be added to this system.
This system is extremely extensible, and since it is part of the {SYC} series I was discussing here I would like to see many people sharing their copies. It is not required, nor enforced, but it is highly encouraged, if you add say "Luck" to it for monsters to drop the loot, or "rarity" system, perhaps you want to make your 10 different copies of MPA as different "tier" levels, anything you feel you can add or want to add to this system, please share with the rest of us! That includes the xml file, if all you did was create an elaborate equipment list that you are proud of, share here and we will all appreciate it.
I plan on uploading a video to demonstrate the power of this system, perhaps even make it into a guide, but that will have to wait, I don't currently have the time, so I will probably update this main thread later with a video and perhaps a more complete version of the xml. If you have any questions about the acceptable xml tags, please don't be afraid to ask.
As part of the Share Your Copy series, I will be updating main post with links to shared version of this system
(PLEASE SHARE YOU VERSION HERE, NOT IN A NEW THREAD)
for now, lets get to the good stuff.
the customequipment.lua file just needs to be inside data/scripts folder, and the customequipment.xml file inside data/xml and viola! System is ready to use!
One thing to keep in mind while using this system, the information is based off of the "equipId" so please, once you start making the items, DO NOT CHANGE THE EQUIPID, it will cause problems for you, as the items that have already been created, will not register properly.
The only function you need to use in other scripts to utilize this system is player:addCustomEquipment() -- uses equipId
a demonstration
That is a test action I used for testing this system, contains all the equipId's of the starter xml file.
I tried to include some comments for the different types of xml tags used, but if anyone has any questions about ones not already demonstrated, please ask.
Oh and any equipment you use here, please remove requirements from other appropriate locations, movements.xml, weapons.xml, ect. As those will still be applied and can conflict with the system.
Doesn't support wands, or ammo types
Enjoy
Updated version 1.1 has the premmy bugfix, the descriptions for conditions, manashield working, mana event that works with reflects absorbs, no nil error from absorbs/reflects anymore, lootable customequipment with configs, configs for setting healthticks, manaticks, and soulticks, with soulgain fixed.
Credits to : @azzkaban for original release this is based off of here
Special thanks to @forgee , @zbizu , @Sarah Wesker , @Evil Hero for helping me along the way.
This is for TFS 1.3+ only, it is considered a MOD as it utilizes many different events in one file.
Features
- Standard Attributes
- Buffs (conditions)
- Skill buffs (conditions)
- Penalties (conditions)
- Damage Penalties (conditions)
- Reflection
- Absorption
- Requirements
- Reusable base items (make as many version of one item as you like)
- Special skills (crit, lifeleech, manaleech)
- Elemental Damage increase
- Lootable (from item with baseItemId being dropped in corpse) with chance configuration
- Extended description for condtions on custom equipment
- onLook
- onEquip
- onDeEquip
- onHealthChange
Why would you prefer to use this over any other system out there? Perhaps for simplicity or convenience, however this isn't a system that is made to be in competition with other systems like it, it's intended purpose was to make up for what the source code doesn't already provide for us, you know, those "item abilities" that people are always looking for, well, they can easily be added to this system.
This system is extremely extensible, and since it is part of the {SYC} series I was discussing here I would like to see many people sharing their copies. It is not required, nor enforced, but it is highly encouraged, if you add say "Luck" to it for monsters to drop the loot, or "rarity" system, perhaps you want to make your 10 different copies of MPA as different "tier" levels, anything you feel you can add or want to add to this system, please share with the rest of us! That includes the xml file, if all you did was create an elaborate equipment list that you are proud of, share here and we will all appreciate it.
I plan on uploading a video to demonstrate the power of this system, perhaps even make it into a guide, but that will have to wait, I don't currently have the time, so I will probably update this main thread later with a video and perhaps a more complete version of the xml. If you have any questions about the acceptable xml tags, please don't be afraid to ask.
As part of the Share Your Copy series, I will be updating main post with links to shared version of this system
(PLEASE SHARE YOU VERSION HERE, NOT IN A NEW THREAD)
for now, lets get to the good stuff.
the customequipment.lua file just needs to be inside data/scripts folder, and the customequipment.xml file inside data/xml and viola! System is ready to use!
One thing to keep in mind while using this system, the information is based off of the "equipId" so please, once you start making the items, DO NOT CHANGE THE EQUIPID, it will cause problems for you, as the items that have already been created, will not register properly.
The only function you need to use in other scripts to utilize this system is player:addCustomEquipment() -- uses equipId
a demonstration
LUA:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
player:addCustomEquipment(24001)
player:addCustomEquipment(24002)
player:addCustomEquipment(24003)
player:addCustomEquipment(24721)
player:addCustomEquipment(24722)
end
That is a test action I used for testing this system, contains all the equipId's of the starter xml file.
I tried to include some comments for the different types of xml tags used, but if anyone has any questions about ones not already demonstrated, please ask.
Oh and any equipment you use here, please remove requirements from other appropriate locations, movements.xml, weapons.xml, ect. As those will still be applied and can conflict with the system.
Doesn't support wands, or ammo types
Enjoy
Updated version 1.1 has the premmy bugfix, the descriptions for conditions, manashield working, mana event that works with reflects absorbs, no nil error from absorbs/reflects anymore, lootable customequipment with configs, configs for setting healthticks, manaticks, and soulticks, with soulgain fixed.
Attachments
-
customequipmentxml.png263.8 KB · Views: 569 · VirusTotal
-
custom_equipment.xml3.3 KB · Views: 138 · VirusTotal
-
customequpiment.lua43.2 KB · Views: 164 · VirusTotal
Last edited: