*SOLVED*Issues with himework's feature conditions script (and dual wielding)

EDIT: A bit of a subject change since i found a whole different issue.

So i've been trying to use Himeworks individual feature conditions http://himeworks.com/2014/07/individual-feature-conditions/

and i found two issues. The first one is if i try to use having a skill as a condition, if the skill originates from an actor's features and not his class leveling it completely ignores it.

"!a.skills.include?($data_skills[6])"
with this it blocks it out to everyone regardless
"a.skills.include?($data_skills[6])"
and with this everyone doesn't have the seal regardless.

Second issue is a bit of a minor but still annoying compatibilty issue. Not sure how simple it would be to fix it.

The reason i've been using this script is to try to make a class that can one hand two handed weapon while still being holding a shield (cause two handed weapons has the "seal shield" feature). Because of the earlier issue i had some troubles but i ended up using yanfly's passive state as an alternative. But now i tried to use trihan's dual wield fix: https://rpgmaker.net/scripts/299/ which counts the dual wield slot as a shield slot, but when you equip a weapon with a shield seal, the hime condition works on shield but not on dual wield weapon despite the shield slot detection.

And i'm really not sure how to fix this.

I've moved this thread to Script Support. Thank you.

Moved to: Script Support
I tried but when i clicked the section it led to a non-existant page for some reason. This was the closest thing i could find since the script section is for actual script and not script related help.
First I would say please do not use harsh language in the forums, it is not necessary. Second do you mean you tried in a new project?
i tried with vanilla

Finally I would try
<feature condition>
a.skills?(6)
</feature condition>

But I also think from what I understand in your post, is that you will need a second entry to unblock the seal shield.
So then you would set on the weapon
<feature condition: 2> # seal shield
!a.skills?(6)
</feature condition>

Not sure if that works, I have never used this script.
First I would say please do not use harsh language in the forums, it is not necessary. Second do you mean you tried in a new project?


Finally I would try
<feature condition>
a.skills?(6)
</feature condition>

But I also think from what I understand in your post, is that you will need a second entry to unblock the seal shield.
So then you would set on the weapon
<feature condition: 2> # seal shield
!a.skills?(6)
</feature condition>

Not sure if that works, I have never used this script.

Edited the naughty word to be less harsh <3, anyway...

Using the first line would ignore ALL features. and the second one results a crash:
upload_2017-5-26_15-59-5.png


and by vanilla yes i do mean a new project. But i have quite a few ammount of scripts in use so its hard to figure what EXACTLY make it not work.

I also tried disabling and re-enabling group of scripts categorized by people who made them and the issue occured regardless
I found the solution but its still a problematic one. The script takes the skill in account only if its added via leveling but not if its added via the "add skill" character feature. Which can be hm... problematic still...

Especially if you want a skill to be part of a character and no not of a class leveling
@François Godbout Yes, I realize that, it's a preformatted message that we use just to let members know we've moved something so they're not confused when it's not where they posted.

Also, I know you're new here and there's a lot to get used to, so, just another tip is not to double post - posting after yourself like you've done above. You can go back and edit your last post if you need to add something. If you need help getting around the forums, let us know.
can you make a zip of the demo (new project) you tried, so I can play with it?

The non existent page sometimes happens to me as well, just hit refresh.
can you make a zip of the demo (new project) you tried, so I can play with it?

The non existent page sometimes happens to me as well, just hit refresh.
when i got some times ill try, and also containing the dual wielding issue.
Actually I thought I'd take a stab at it. I got it working for me without any issues. Learn skill through level or given to player.
seal.PNG

Your original method works fine.
I did find a way to make that work out but the issue is when a skill is part of a specific character's features and no not a class or given mid game.
Also it doesn't solve the dual wielding issue. Ill get you a file when i got some time.
Solved. Add on dual wield to the weapon. In the dual wield script change line 76 124 and 146 to true.
Tested with eric with axe as dual wield (two axes)(I think this is what you want), ernest with spear and shield and thief with dual daggers. all works. when the axe is removed it returns to weapon and shield.
the only thing that was weird was in the test game I changed eric was able to equip a mithril mace, that somehow was in the inventory.
I think there's a glitch in my rpg maker vx ace program.
Hm, ill try it out and give you some news.

EDIT: the line changes solved the issue with dual wielding. I haven't found any bugs yet but i'll post if i find any.

Dunno about the feature based skills tho but oh well.

EDIT 2: aaaaaaand nevermind, it allows dual wielding with two handed weapons regardless of if you meet the condition or not.

Also i don't want to put dual wield on specific weapons because i want dual wielding to be class specific. I don't want weapons to force the user to dual wield.

Basically what i want is that for normal characters, if they hold a two handed weapon their shield or dual wield slot gets locked. But for a larger character, its unlocked, and if they have dual wielding with a specific class, they can dual wield two handed weapons.

Do you still need a test game? Imma work on that tommorow.
Yea, if you give me a demo, I can play around with it. Make notes on who or what is dual wield and what is not.
I'll try, but you may be asking for something that can't be adjusted, unless you can find another dual wield script or have the creator modify it.

Also I'm really confused. putting the script back to normal and setting dual wield on the class with the seal shield on the weapon with condition on skill present seems to work for me. So I really don't know what you're asking for. Every variation I suggested does not seem to be what you want.

Please describe in detail what is supposed to happen when you send me the link for the demo.
Here you go: https://mega.nz/#!gRcFEQwB!CSiolp6ub0EF9UacOjQf3asheF7cf_EE27H08MQNjFI

Here's how it works. You the hand axe, a one handed weapon, the battle axe, a two handed weapon, and a shield.

Hero#3 and Hero#4 have a passive called "super strenght" that allows them to one hand two handed weapons.

Hero#1 is supposed to be able to not be able to carry a shield if he has the battle axe on.

Hero#2 is supposed to not have acess to dual wield if she has the battle axe on.

Hero#3 is supposed to have acess to a shield if he has the battle axe on.

Hero#4 has acess to dual wielding two handed weapons in both hands.

It all works except for Hero#2 who can just do whatever the hell she wants. What i want is for when "shield" is a sealed equippement slot, it affects people with dual wielding that does not meet the condition.
According to what you wrote down, that was easy to correct. But my question is Hero #2 suppose to have access to the shield if battle axe is equipped.
If not then I did it in 5 minutes. (I was playing with my own demo for a few hours)

In actor 2 put
Code:
<feature condition: 1>
!a.weapons.include?($data_weapons[2])
</feature condition>

I also just tried setting the dual fix script back to normal and Hero 4 does not work properly. I'm going to play with it some more.
According to what you wrote down, that was easy to correct. But my question is Hero #2 suppose to have access to the shield if battle axe is equipped.
If not then I did it in 5 minutes. (I was playing with my own demo for a few hours)

In actor 2 put
Code:
<feature condition: 1>
!a.weapons.include?($data_weapons[2])
</feature condition>

I also just tried setting the dual fix script back to normal and Hero 4 does not work properly. I'm going to play with it some more.
No she isn't. Hero#3 and 4 does. Also i wouldn't right the code based on specific weapon or rather weapon types. Cause its gonna be a pain to set every single weapons in a massive list for every one handed dual wielders <_>
It would not be too hard, but has to be like this
Code:
<feature condition: 1>
!a.weapons.include?($data_weapons[2]) &&
!a.weapons.include?($data_weapons[3]) &&
!a.weapons.include?($data_weapons[4])
</feature condition>
you really can't put a weapon category?
Oh I see. Didn't realize that's what you meant. Sorry. I'll play with that.

well, A total of 8 hours on this is enough for me.
Can't make it work. I put in values that the program does not complain against, but it does nothing. You will either have to put in every weapon or not use that option. Sorry.

Original thread: https://forums.rpgmakerweb.com/threads/solved-issues-with-himeworks-feature-conditions-script-and-dual-wielding.79093/