I want to create a skill that gives the player another attack after killing an enemy. Am I correct in that the only way to do that is through a custom script? Any suggestions would be appreciated, as I only know Python, but I'm trying to learn Javascript now.
Creating a Cleave Skill MZ
RPG Maker MZ Supportbasically yes, but it depends on the battlesystem you use.
in default turn based the action selection and the action execution are different parts of the turns, and you can't go back or add another action there.
if you have changed the battlesystem by adding plugins, there are a number of plugins that give notetag options for other effects - but even then there is a difficulty in detecting if an enemy dies or not. probably comparing damage to enemy hp before executing the damage.
in default turn based the action selection and the action execution are different parts of the turns, and you can't go back or add another action there.
if you have changed the battlesystem by adding plugins, there are a number of plugins that give notetag options for other effects - but even then there is a difficulty in detecting if an enemy dies or not. probably comparing damage to enemy hp before executing the damage.
@Paul M
Utilizing Visustella BattleCore, you can place this in a skills note area, to get a simple, target +1 effect.
Utilizing Visustella BattleCore, you can place this in a skills note area, to get a simple, target +1 effect.
Code:
<JS Targets>
let target = targets[0];
let members = $gameTroop.aliveMembers();
//Remove current target from consideration
members.splice(members.indexOf(target), 1);
//Push a new target from the remaining targets.
targets.push(members[Math.round(Math.randomInt(members.length))]);
//If used against a single target, it will only strike once.
</JS Targets>
Wow thanks for that. I do not have Visustella BattleCore, but I was thinking about getting it. This clinches it.
Original thread: https://forums.rpgmakerweb.com/threads/creating-a-cleave-skill-mz.149652/