LINK TO YANFLY'S SKILL RESTRICTIONS SCRIPT
Okay So my question is simple:
Using the linked script, How do i lock a skill unless a certain weapon is equipped?
I'm not talking about "weapon type" I'm talking about THE WEAPON.
Like for example:
Raplh has Dark blade equipped, he is now able to cast dark force
Raplh unequipped the dark blade, dark force skill is now locked.
Skill Restictions:Weapons
● ARCHIVED · READ-ONLY
-
-
I solved this without using a script by simply using a Common Event. Though, you could likely do this for every single battle instead (less processing power than a parallel process common event).
What I did was create an event that started with "Conditional Branch" and set it to "Actor" has "Weapon Equipped". When that was fulfilled, I put under it "Learn X Skill". In the Else Case (which is whenever the thing isn't equipped) I put in "Remove X Skill". That way, the skill only appears in the list if the weapon is equipped and it's removed when the weapon is unequipped.
Not really sure if that helps you or not. -
Nope, that doesn't help but thanks for trying!
-
another option is to give the weapon a feature that adds the skill - that way the skill is only available if the weapon is equipped.
-
If the proposed options are not working, make sure you also gave the actor the ability to use skills of that type. As far as I know, if you give someone a skill called say Heal of say Water magic, unless the actor has the ability to use the skill type Water, the skill will not show up either.
-
But then they'll be able to summon any of the summons available to them, I don't want that.another option is to give the weapon a feature that adds the skill - that way the skill is only available if the weapon is equipped.
-
Do you mean all the skills available under that element? If so you can fix that by assigning the skill to an element type that is not used for anything else.But then they'll be able to summon any of the summons available to them, I don't want that.
-
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
-
My answer was for exactly that what you asked - if there are other conditions you need fulfilled, then you should have stated that in the original post.But then they'll be able to summon any of the summons available to them, I don't want that.
However, I don't understand what you mean - if the weapon has only that skill, then only this skill will be added, not others.
Please make a more detailed description on all conditions you want on that skill, and then we can tell you how to make that. -
No,no you fixed the problem. I was imply being an idiot at that time and I have a tendency to overcomplicate things. Thank you for the help, your solution fixed my issue. :)My answer was for exactly that what you asked - if there are other conditions you need fulfilled, then you should have stated that in the original post.
However, I don't understand what you mean - if the weapon has only that skill, then only this skill will be added, not others.
Please make a more detailed description on all conditions you want on that skill, and then we can tell you how to make that.