Hello, I'm currently making a conditional branch which is meant to check whether a specific character has learned a certain skill and if they have then the player can choose to perform it.
However, even though the character has the skill, the conditional branch moves to the else option which is only for when they don't have the skill.
I'm wondering if anyone knows why that could be happening as I can't seem to figure it out.
I don't know if this could affect its function, but just in case, I'll mention that the conditional branch is used in a common event that is activated by the use of a different skill mid battle.
If anyone needs extra information then please tell me and I will do whatever I can to provide you with that.
Can you post screenshots of your events related to this?
Does Strong Attack require anything other than 10MP? Maybe you are forcing him to use something that costs TP too when he has none?
if he has a sword equipped and 10MP, I don't see why it won't work. I've never used "Force Attack" in any of my projects, so it might be something to do with that – maybe you'd need to set the scope to "One Random Enemy", but I don't know (I'd try that just to see if it makes any difference).
Another thing you can do is put Show Text commands in various parts of the conditional branch in order to see exactly what 'choices' the game actually makes.
Also, your Sleeping Blade skill costs 5MP to use, so Erik would actually need 15MP to use both (you probably know that).
The only other thing I can think of is that your conditional branch checks Erik's MP through a variable check – so maybe check what value that variable actually is (and if it correctly corresponds to his current MP). If you don't have it already, put "Control variable 0002:Erik's MP = Game Data 001:Erik's MP" immediately before the start of the conditional branch to make sure that the variable 0002 has the correct value after you've used the Sleeping Blade skill.
And he can definitely use Strong Attack independently of the combo with Sleeping Blade?
Plz post the full Common Event with the text popups etc.
So it says "Erik doesn't know the skill"?
What you're missing is that "has learned the skill" and "can use the skill" are two different things.
If a skill is added through a trait (for example by equipping something that has the skill added), then the actor can use it without having learned it. Especially as that knowledge can be removed by unequipping that item.
A skill only counts as "learned" if it is either learned by event command or by the skill list of the class.
So how did your actor get the skill?
Cool. Glad it's working now! And I learned how to use the Force Action command. 🙂