after 2 months no answer you guys must hate me or something, no one is too busy to answer a simple request......
(if this is the wrong area to post a question like this im sorry i dont know what category this question goes)
by using these 2 plugins......
http://yanfly.moe/2015/10/10/yep-3-battle-engine-core/
http://yanfly.moe/2015/10/13/yep-8-skill-core/
what is needed to make this custom tag.....
<Before Eval>
// Skill can only be used by actors.
if (user.isActor()) {
// Create a pool for allowed skills to be stolen.
var allowed = [];
// Add the ID's of all the skill types that can be stolen.
allowed.push(16, 17, 18, 19);
allowed.push(20, 21, 22, 23);
allowed.push(24, 25);
// Get the target's skills.
var skills = target.skills();
// Loop through each of the target's skills.
for (var i = 0; i < skills.length; ++i) {
// Get the currently looped skill.
var skill = skills;
// If the skill exists, the skill's type is within the allowed pool, and and the user hasn't learned the skill...
if (skill && allowed.contains(skill.stypeId) && !user.isLearnedSkill(skill.id)) {
// ...then teach the user the skill.
user.learnSkill(skill.id);
// Create the text to display.
var text = '<CENTER>' + user.name() + ' has learned \\i[' + skill.iconIndex + ']' + skill.name + ' from ' + target.name() + '!';
// Set the frames to wait to 90.
var wait = 90;
// Add the text to the Battle Manager.
BattleManager.addText(text, wait);
// Play an animation on the the user.
user.startAnimation(119);
// Break the loop.
break;
}
}
// close actor check.
}
</Before Eval>
that the skill would only work if the enemy has 20% or less hp so it will eat....learn a skill that can be learnt and removes the remaining hp of the enemy, if its over 20% to show a message saying cant eat it yet? but also if the enemy has no skills that can be learnt on eat it will show a message saying it tasted bad and the user of the eat skill would lose 20% of their max HP or 20% of the current hp? just something so it cant be exploited.
(if this is the wrong area to post a question like this im sorry i dont know what category this question goes)
by using these 2 plugins......
http://yanfly.moe/2015/10/10/yep-3-battle-engine-core/
http://yanfly.moe/2015/10/13/yep-8-skill-core/
what is needed to make this custom tag.....
<Before Eval>
// Skill can only be used by actors.
if (user.isActor()) {
// Create a pool for allowed skills to be stolen.
var allowed = [];
// Add the ID's of all the skill types that can be stolen.
allowed.push(16, 17, 18, 19);
allowed.push(20, 21, 22, 23);
allowed.push(24, 25);
// Get the target's skills.
var skills = target.skills();
// Loop through each of the target's skills.
for (var i = 0; i < skills.length; ++i) {
// Get the currently looped skill.
var skill = skills;
// If the skill exists, the skill's type is within the allowed pool, and and the user hasn't learned the skill...
if (skill && allowed.contains(skill.stypeId) && !user.isLearnedSkill(skill.id)) {
// ...then teach the user the skill.
user.learnSkill(skill.id);
// Create the text to display.
var text = '<CENTER>' + user.name() + ' has learned \\i[' + skill.iconIndex + ']' + skill.name + ' from ' + target.name() + '!';
// Set the frames to wait to 90.
var wait = 90;
// Add the text to the Battle Manager.
BattleManager.addText(text, wait);
// Play an animation on the the user.
user.startAnimation(119);
// Break the loop.
break;
}
}
// close actor check.
}
</Before Eval>
that the skill would only work if the enemy has 20% or less hp so it will eat....learn a skill that can be learnt and removes the remaining hp of the enemy, if its over 20% to show a message saying cant eat it yet? but also if the enemy has no skills that can be learnt on eat it will show a message saying it tasted bad and the user of the eat skill would lose 20% of their max HP or 20% of the current hp? just something so it cant be exploited.