I hope this is the right forum for this question. I have imbuing for jewelry on my shard, and right now a person can add the same skill 5 times to a piece of jewelry with a max each time of 15. ie: Animal Taming 15, Animal Taming 15, Animal Taming 15, Animal Taming 15, Animal Taming 15. It shows five lines for the item. I want them to only be able to add each skill ONLY one time? I have attached the three files I found and I'm afraid this is way above my scripting capability. Can anyone help with this?
 

Attachments

  • Imbuing.cs
    60.9 KB · Views: 7
  • ImbuingB.cs
    43.7 KB · Views: 5
  • ImbuingC.cs
    259.6 KB · Views: 5
In ImbuingC, around line 1340, you might want to do a check to see if the skills already on the item match the one they are trying to get. The method exists to do that. Cast the item to a BaseJewel, and then call SkillBonuses.GetSkill(i) in a for loop where i is between 1 and 5, and compare the result to the skillname they are trying to imbue. If you want to let them waste their resources you can do the check later around like 1928 instead.
 
Back