I've been designing a "Hide" skill, that when used, is supposed to add the skill "sneak attack". I've tried to do this by making a state called "hidden", and giving it the trait "add skill: sneak attack". This trait seemed to be broken however? It doesn't add the sneak attack skill. I've played with it to figure out if I was making a mistake. Made sure that Sneak attack was a special skill that my character could use, but I just can't figure out what I'm doing wrong, and it really just seems like RPG Maker MV is bugged.
Add skill trait not working?
RPG Maker MV Supportno, it is something you must have done wrong because that trait has been used without problem in hundreds of projects already.
There are several things I can think of that might be the cause, and we need to see what you've done before we can see where you made a mistake.
Please provide screenshots of the state, the skill that applies the state, the skill sneak attack itself and the actor/class screenshots of the actor that fails to get the skill.
One additional question: are you using default battlesystem or any plugin to change the battlesystem? Because that could cause bugs from the plugins if those are added wrong.
There are several things I can think of that might be the cause, and we need to see what you've done before we can see where you made a mistake.
Please provide screenshots of the state, the skill that applies the state, the skill sneak attack itself and the actor/class screenshots of the actor that fails to get the skill.
One additional question: are you using default battlesystem or any plugin to change the battlesystem? Because that could cause bugs from the plugins if those are added wrong.
I've moved this thread to MV Support. Thank you.
add a call to actor.initSkills() at the end of your procedure
@gstv87 he has no procedure, he's using the default engine options and those work without any script if done correctly.
by default, it should.
but during the battle scene, I believe it needs to refresh the battle skill window, but sometimes that can fail.
I've made a similar procedure where the whole skill set is changed, but that didn't update the character's skill list unless I called for an init.
either way..... try a skill reset nonetheless, manually.
it should be called already from the interpreter during the skill change, but just in case it fails, call it again.
but during the battle scene, I believe it needs to refresh the battle skill window, but sometimes that can fail.
I've made a similar procedure where the whole skill set is changed, but that didn't update the character's skill list unless I called for an init.
either way..... try a skill reset nonetheless, manually.
it should be called already from the interpreter during the skill change, but just in case it fails, call it again.
I think the most likely scenario is that the 'Sneak Attack' skill belongs to a skilltype that the actor doesn't have. He's probably learning the skill, but not able to see it in the list because he doesn't have the correct skilltype. The way the skills are set up, a script call shouldn't be needed, (and I've done far more to my skill lists and not used that script call).
@KlausAidon Ensure that the actor actually has access to whatever skilltype you set the sneak attack skill to use from the drop down menu on the skill itself.
@KlausAidon Ensure that the actor actually has access to whatever skilltype you set the sneak attack skill to use from the drop down menu on the skill itself.
Here's a screen shot of my the class rogue, the skill sneak attack, and the state hidden. Having the hidden state, should give the rogue the Sneak Attack skill. Rogues, as you can see from the classes image, can learn the "Special" skill types, and Sneak Attack does have the Special skill type. So there is no reason my rogue shouldn't be learning Sneak Attack when he becomes hidden, but it's not working.
Also, sorry I put this in the wrong thread, I was having trouble finding RPG Maker MV Support, I must have overlooked it.
Also, sorry I put this in the wrong thread, I was having trouble finding RPG Maker MV Support, I must have overlooked it.
If you're using the default battle system, swap the state to lasting 2 turns and see if that works. Basically, ensure that the state is carrying over to the next turn.
Edit: Also, can you show the Hide skill please.
Edit: Also, can you show the Hide skill please.
if this happens during battle, there's a chance that the skill set is not being updated.
force a skill reset after you add the skill, to rule that out.
force a skill reset after you add the skill, to rule that out.
@KlausAidon state duration is counted down at the end of a battleturn, so that states that are intended to work only in the current turn (like protection states) can be done with the 1 turn count.
The action selection is in the next turn, which means that the state is already removed when the player wants to use sneak attack.
If a state is to be influence the next turn, it needs a duration of 2 or higher.
The action selection is in the next turn, which means that the state is already removed when the player wants to use sneak attack.
If a state is to be influence the next turn, it needs a duration of 2 or higher.
Increasing it to lasting two turns did the trick, thank you.
Original thread: https://forums.rpgmakerweb.com/threads/add-skill-trait-not-working.96407/