Weapon Upgrade with Socket Effects

so im not sure how easy or complicated this is to pull off, but basically im using TheoAllens Weapon upgrade script
which is based off of Richter_H's script, where you go to a blacksmith and you can level your weapon up from level 1 to level two by paying a fee. now in the script you can change states to increase and decrease, rename the weapon, change the icon and even the description of the weapon. Overall the script works great for exactly what it does, but
the only thing its missing is a sort of socketing effect, to be able to socket a rune for example for elemental effects or extra damage ect and how many sockets each weapon can have during the upgrade. im not sure if the script can be modified for said purpose or if an addon or completely new script have to be made for this. i would greatly appreciate any help with this, i have searched around extensively for options so none that I've found seems to do what im looking for. below ill link the orginal script from Theo to show what the script currently does, as far as i know he's no longer updating the script with the socket effect anymore from which he originally planned to. so hoping i can get some help from you guys. thanks


Page:
script:
Spoiler
I assume you are using TsukiHime's Instance Items script?
If not how do you upgrade just the one weapon and not all of the same?

Short of adding onto the upgrade script I only see a few options...if they would work (probably would have to adjust them)
Tidloc SocketEquips (requires Tidloc Header and Custom Equip scripts)
Victor Sant Materia (requires VE Basic Module)
I'm not sure about any others that are for using as slots on weapons.

I don't know of any other scripts.

So, are you using Instance items?
Does the weapon sockets need to increase as it gets to higher levels or will they be shown but perhaps locked until it reaches a higher level?
I assume you are using TsukiHime's Instance Items script?
If not how do you upgrade just the one weapon and not all of the same?

Short of adding onto the upgrade script I only see a few options...if they would work (probably would have to adjust them)
Tidloc SocketEquips (requires Tidloc Header and Custom Equip scripts)
Victor Sant Materia (requires VE Basic Module)
I'm not sure about any others that are for using as slots on weapons.

I don't know of any other scripts.

So, are you using Instance items?
Does the weapon sockets need to increase as it gets to higher levels or will they be shown but perhaps locked until it reaches a higher level?
so im not using Himes Item script, the way the script theo created works is by putting the upgraded weapons with stat increases in the script.

ill look into those scripts to see if those would work
i do know Victor script wouldn't work, most of Theo scripts aren't compatible with his

but no the sockets dont need to increase with the level, but that would actually be a very nice feature to have that i didnt think of.
so im not using Himes Item script, the way the script theo created works is by putting the upgraded weapons with stat increases in the script.
Then that means that if you have two hand ax they both have the bonues and shared sockets.
Thats what I'm trying to clarify. Are weapons individual items?
Then that means that if you have two hand ax they both have the bonues and shared sockets.
Thats what I'm trying to clarify. Are weapons individual items?
correct, that would be the case. so to put it simply lets just say theres a short sword with 1 socket available, and you want to add a rune that does +5 damage or maybe gives it a elemental effect, you socket it into the sword. and when you upgrade that sword from level 1 to level 5 it unlocks an additional socket slot (maybe). im aware i would have to make those rune items in the database itself which is no problem i just need a way to implement them while also using Theos script.
Are weapons individual items?
Is this true? If weapons are individual items and not controlled in the default way then what script are you using to make them individual?
This has to be known since making the weapon socket script will likely need to interact with it. Much like it does now with the weapon upgrade, but that may just be coincidence.
As far as the rest of your request, I understand it. I don't know if I'll be able to make what you want, but I need to have it clearly understood to even try. Since I have no idea how it would work without you having individual weapons. I say individual to mean what Hime's Instance items does.

To quote you further.
lets just say theres a short sword with 1 socket available, and you want to add a rune that does +5 damage

Well lets say you have 15 of those swords. You upgrade the sword and now all 15 are now +5
I have a potential alternative weapon upgrade script (mine) that could work for you. Maybe @Roninator2 can adapt my script with a simple socket system based on what you may already be using or suggesting a system to integrate easily.

Just thinking from a logic standpoint. You could make an additional equipment last slot on every actor. Then on every menu, only show the actor item slots and reduce the index by -1. So if each actor had 6 + 1 additional slot, ensure that last slot is never seen except for when you are in the upgrade scene.

With the last slot you could then adapt my script to attach equipment (A rune for example) which ideally has the +def and/ +atk for the added bonus you are wanting.

Essentially like the Suikoden rune system when you embed on a weapon.
Is this true? If weapons are individual items and not controlled in the default way then what script are you using to make them individual?
This has to be known since making the weapon socket script will likely need to interact with it. Much like it does now with the weapon upgrade, but that may just be coincidence.
As far as the rest of your request, I understand it. I don't know if I'll be able to make what you want, but I need to have it clearly understood to even try. Since I have no idea how it would work without you having individual weapons. I say individual to mean what Hime's Instance items does.

To quote you further.
lets just say theres a short sword with 1 socket available, and you want to add a rune that does +5 damage

Well lets say you have 15 of those swords. You upgrade the sword and now all 15 are now +5
well theos script handles the weapons to make them individual. basically i can create the weapon upgrade in the script without having to create the weapon in the database. i only need to create the base weapon so it can have a starting point to upgrade from.

but to your question, if you have 15 swords you would have to upgrade each of them itself, but also you would have to have 15 runes as well to socket them into. its basically like the Suikoden rune system FG7 mentioned. the weapons are individual and the runes,(or stones or whatever they will be called) are individual.
Just thinking from a logic standpoint. You could make an additional equipment last slot on every actor. Then on every menu, only show the actor item slots and reduce the index by -1. So if each actor had 6 + 1 additional slot, ensure that last slot is never seen except for when you are in the upgrade scene.

With the last slot you could then adapt my script to attach equipment (A rune for example) which ideally has the +def and/ +atk for the added bonus you are wanting.

Essentially like the Suikoden rune system when you embed on a weapon.
the suikoden rune system is what im going for pretty much, Theos script gives me the flexibility to control all stats to a weapon during the upgrade scene, all i need is a socket scene to add or remove runes to a weapon that gives it the effect of whatever rune that was added. it could be attk increase, elemental damage or def upgrade ect.
well theos script handles the weapons to make them individual. basically i can create the weapon upgrade in the script without having to create the weapon in the database. i only need to create the base weapon so it can have a starting point to upgrade from.

but to your question, if you have 15 swords you would have to upgrade each of them itself, but also you would have to have 15 runes as well to socket them into. its basically like the Suikoden rune system FG7 mentioned. the weapons are individual and the runes,(or stones or whatever they will be called) are individual.
Ok apologies, I didn't know Theo's script make the weapons individual items.
I'll see what I can do.
Ok apologies, I didn't know Theo's script make the weapons individual items.
I'll see what I can do.
Greatly appreciate it
Greatly appreciate it
Try this

Updated script on next page
ill try it now!
so ran into this issue so far when attempting to swap out the socket item for another item
Screenshot 2024-01-28 171701.png
so ran into this issue so far when attempting to swap out the socket item for another item
View attachment 293383
One test I didn't do.
line 613 add [0] at the end of the line.
old = self.equips[0].sockets[slot][0]
One test I didn't do.
line 613 add [0] at the end of the line.
old = self.equips[0].sockets[slot][0]
that fixed it! i just have two more questions regarding the script, is it possible to view the armors in the inventory? i notice they're invisible unless your doing the upgrade to the weapon where they become visible in the socket scene.
Also where would i move the x and y for the icons i noticed they are abit misaligned. both the
slot_icon for nothing, and the actual icons for the armor in my case the gems
Screenshot 2024-01-28 191445.png
is it possible to view the armors in the inventory? i notice they're invisible unless your doing the upgrade to the weapon where they become visible in the socket scene.
It works the same as Victor Sant Materia System. the socket items are in a variable and is only displayed in the socketing scene.
I suppose I could make a view the socket screen.
Also where would i move the x and y for the icons i noticed they are abit misaligned
This might be because you have the icons misaligned in your iconset.
It just takes the icon and displays it. if the nothin icon looks good then the socket item icons are not center.
But I'll test that again. yep mine look perfectly fine. line 1168. or 1166 to me, I just removed two lines I had commented out.
1706492203621.png


Nice windowskin.

Socket View Scene
Moved to script post page
ahhh so i should just fix the icons in the iconset then.
i love this windowskin.
ill try the script
ill try the script
I just made some adjustments because I see that you are using 640 x 480 resolution.
Plus I noticed a graphical issue on the 640 resolution for the smithing scene. At least it was an issue for me.
I also added an option to change the vertical line x position.

Updated script on next page...

Original thread: https://forums.rpgmakerweb.com/threads/weapon-upgrade-with-socket-effects.165098/