The "Sketch" skill from Pokémon works as follows:
When selected, the user learns the last skill the selected enemy used.
However, this also takes time to use, just like any other skill. So, if an enemy uses a fire skill, the turn ends, the player selects to use "Sketch" but their agility is lower than the enemy (the enemy goes before the player uses sketch) the skill learned would be whatever skill the enemy most recently used was- not the fire skill.
I've tried combining the change skill script call with a variable but the problem I had with that was I couldn't figure out how to save the last skill ID the enemy used as a variable. RPG Maker MZ has the ability to set a variable to "Last Skill ID Used" but, if the player goes last, this also includes the skill ID that the party used. Also, I could only get this to activate at the end of an entire turn, not just an enemy's.
If anyone has any ideas on how to emulate this skill in RPG Maker MZ, please let me know!
Thank you for reading!
When selected, the user learns the last skill the selected enemy used.
However, this also takes time to use, just like any other skill. So, if an enemy uses a fire skill, the turn ends, the player selects to use "Sketch" but their agility is lower than the enemy (the enemy goes before the player uses sketch) the skill learned would be whatever skill the enemy most recently used was- not the fire skill.
I've tried combining the change skill script call with a variable but the problem I had with that was I couldn't figure out how to save the last skill ID the enemy used as a variable. RPG Maker MZ has the ability to set a variable to "Last Skill ID Used" but, if the player goes last, this also includes the skill ID that the party used. Also, I could only get this to activate at the end of an entire turn, not just an enemy's.
If anyone has any ideas on how to emulate this skill in RPG Maker MZ, please let me know!
Thank you for reading!