He already made a Tips and Tricks on how to transform an actor.
[YEP] Yanfly Engine Plugins
JS Plugin Releases (RMMV)He already made a Tips and Tricks on how to transform an actor.
Yes I know, but it 's another Tips and Tricks, how do I combine both in one status ???
Just have the notetags of both states in the one state (dunno if that makes sense) So here's the code:
<Custom Passive Condition>
// Check if the party is in battle.
if ($gameParty.inBattle()) {
// Default the user's trance state to false.
user._trance = user._trance || false;
// Sets the condition for the user to be either in the trance state or if the user's TP matches the user's MaxTP.
condition = user._trance || user.tp === user.maxTp();
} else {
// Otherwise, the condition is false.
condition = false;
}
// If the condition passes...
if (condition) {
// And if the user isn't in the trance state...
if (!user._trance) {
// Then play an animation as the user enters trance.
user.startAnimation(120);
}
// Set the user's trance state to true.
user._trance = true;
}
</Custom Passive Condition>
<Custom Regenerate Effect>
// Set the TP drain amount.
var tp = 10;
// Reduce the user's TP.
user.gainTp(-tp);
// If the user's TP is 0...
if (user.tp === 0) {
// ...then turn off trance.
user._trance = false;
}
<Custom Regenerate Effect>
// Check if the party is in battle.
if ($gameParty.inBattle()) {
// Default the user's trance state to false.
user._trance = user._trance || false;
// Sets the condition for the user to be either in the trance state or if the user's TP matches the user's MaxTP.
condition = user._trance || user.tp === user.maxTp();
} else {
// Otherwise, the condition is false.
condition = false;
}
// If the condition passes...
if (condition) {
// And if the user isn't in the trance state...
if (!user._trance) {
// Then play an animation as the user enters trance.
user.startAnimation(120);
}
// Set the user's trance state to true.
user._trance = true;
}
</Custom Passive Condition>
<Custom Regenerate Effect>
// Set the TP drain amount.
var tp = 10;
// Reduce the user's TP.
user.gainTp(-tp);
// If the user's TP is 0...
if (user.tp === 0) {
// ...then turn off trance.
user._trance = false;
}
<Custom Regenerate Effect>
Code:
<Custom Apply Effect>
// Check if user is an actor.
if (user.isActor()) {
// Archive the previous settings.
user._prevCharName = user._prevCharName || user._characterName;
user._prevCharIndex = user._prevCharIndex || user._characterIndex;
user._prevFaceName = user._prevFaceName || user._faceName;
user._prevFaceIndex = user._prevFaceIndex || user._faceIndex;
user._prevBattlerName = user._prevBattlerName || user._battlerName;
// Check if the actor ID is 1.
if (user.actorId() === [COLOR=rgb(255,0,0)]1[/COLOR]) {
// The filename of the character graphic without the file extension.
var charName = '[COLOR=rgb(255,0,0)]HaroldSSJ[/COLOR]';
// The index of the character graphic used.
var charIndex = [COLOR=rgb(255,0,0)]0[/COLOR];
// The filename of the face graphic without the file extension.
var faceName = '[COLOR=rgb(255,0,0)]HaroldSSJ[/COLOR]';
// The index of of the face graphic used.
var faceIndex = [COLOR=rgb(255,0,0)]0[/COLOR];
// The filename of the battler graphic without the file extension.
var battlerName = '[COLOR=rgb(255,0,0)]Harold_SSJ1[/COLOR]';
// Check if the actor ID is 2.
} else if (user.actorId() === [COLOR=rgb(255,0,0)]2[/COLOR]) {
// The filename of the character graphic without the file extension.
var charName = '[COLOR=rgb(255,0,0)]ThereseSSJ[/COLOR]';
// The index of the character graphic used.
var charIndex = [COLOR=rgb(255,0,0)]0[/COLOR];
// The filename of the face graphic without the file extension.
var faceName = '[COLOR=rgb(255,0,0)]ThereseSSJ[/COLOR]';
// The index of of the face graphic used.
var faceIndex = [COLOR=rgb(255,0,0)]0[/COLOR];
// The filename of the battler graphic without the file extension.
var battlerName = '[COLOR=rgb(255,0,0)]Therese_SSJ1[/COLOR]';
// Check if the actor ID is 3.
} else if (user.actorId() === [COLOR=rgb(255,0,0)]3[/COLOR]) {
// The filename of the character graphic without the file extension.
var charName = '[COLOR=rgb(255,0,0)]MarshaSSJ[/COLOR]';
// The index of the character graphic used.
var charIndex = [COLOR=rgb(255,0,0)]0[/COLOR];
// The filename of the face graphic without the file extension.
var faceName = '[COLOR=rgb(255,0,0)]MarshaSSJ[/COLOR]';
// The index of of the face graphic used.
var faceIndex = [COLOR=rgb(255,0,0)]0[/COLOR];
// The filename of the battler graphic without the file extension.
var battlerName = '[COLOR=rgb(255,0,0)]Marsha_SSJ1[/COLOR]';
// Check if the actor ID is 4.
} else if (user.actorId() === [COLOR=rgb(255,0,0)]4[/COLOR]) {
// The filename of the character graphic without the file extension.
var charName = '[COLOR=rgb(255,0,0)]LuciusSSJ[/COLOR]';
// The index of the character graphic used.
var charIndex = [COLOR=rgb(255,0,0)]0[/COLOR];
// The filename of the face graphic without the file extension.
var faceName = '[COLOR=rgb(255,0,0)]LuciusSSJ[/COLOR]';
// The index of of the face graphic used.
var faceIndex = [COLOR=rgb(255,0,0)]0[/COLOR];
// The filename of the battler graphic without the file extension.
var battlerName = '[COLOR=rgb(255,0,0)]Lucius_SSJ1[/COLOR]';
// If none of the above actor ID's match, use this setting.
} else {
// The filename of the character graphic without the file extension.
var charName = '[COLOR=rgb(255,0,0)]HaroldSSJ[/COLOR]';
// The index of the character graphic used.
var charIndex = [COLOR=rgb(255,0,0)]0[/COLOR];
// The filename of the face graphic without the file extension.
var faceName = '[COLOR=rgb(255,0,0)]HaroldSSJ[/COLOR]';
// The index of of the face graphic used.
var faceIndex = [COLOR=rgb(255,0,0)]0[/COLOR];
// The filename of the battler graphic without the file extension.
var battlerName = '[COLOR=rgb(255,0,0)]Harold_SSJ1[/COLOR]';
}
// Changes the character image to the setting applied from above.
user.setCharacterImage(charName, charIndex);
// Changes the face image to the setting applied from above.
user.setFaceImage(faceName, faceIndex);
// Changes the battler image from the setting applied from above.
user.setBattlerImage(battlerName);
// Refreshes the user's appearance.
user.refresh();
}
</Custom Apply Effect>
<Custom Remove Effect>
// Retrieve archived settings.
var charName = user._prevCharName;
var charIndex = user._prevCharIndex;
var faceName = user._prevFaceName;
var faceIndex = user._prevFaceIndex;
var battlerName = user._prevBattlerName;
// Changes the character image to the archived setting.
user.setCharacterImage(charName, charIndex);
// Changes the face image to the archived setting.
user.setFaceImage(faceName, faceIndex);
// Changes the battler image from the archived setting.
user.setBattlerImage(battlerName);
// Clear archived data.
user._priorityCharacterName = undefined;
user._priorityCharacterIndex = undefined;
user._prevFaceName = undefined;
user._prevFaceIndex = undefined;
user._priorityFaceName = undefined;
user._priorityFaceIndex = undefined;
user._prevFaceName = undefined;
user._prevFaceIndex = undefined;
user._priorityBattlerName = undefined;
user._prevBattlerName = undefined;
// Refreshes the user's appearance.
user.refresh();
</Custom Remove Effect>
Just copy and paste all of the above into the state notetag 😀
I'm not sure how much this counts as a bug as it may be a formatting error on my end.
When the font size of the game is reduced to 22 on 1280x720, the Equip Requirements message indicating what requirements to fulfill is thrown off center.
Just in case it's not clear, I've placed a screenshot to show exactly what I mean.
This is also the code I've used:
<Custom Equip Requirement Text>
text = 'Can only be worn by females.\nNo for reals.';
</Custom Equip Requirement Text>
Plugin Name: YEP_CoreEngine(?), YEP_X_EquipRequirements
Bug Explanation: The requirements to use an equipment is off-center.
Error Report: None
Exact Steps on How to Replicate Bug:
1.Start the Game
2.Enter Menu and go to the Equipments
3.Check either Harold or Therese's body armor's requirements.
Sample Project : https://www.mediafire.com/?1cazsmmexjwi6u8
The requirements itself doesn't work as the sample I made is only to show how the requirement text doesn't center itself.

When the font size of the game is reduced to 22 on 1280x720, the Equip Requirements message indicating what requirements to fulfill is thrown off center.
Just in case it's not clear, I've placed a screenshot to show exactly what I mean.
This is also the code I've used:
<Custom Equip Requirement Text>
text = 'Can only be worn by females.\nNo for reals.';
</Custom Equip Requirement Text>
Plugin Name: YEP_CoreEngine(?), YEP_X_EquipRequirements
Bug Explanation: The requirements to use an equipment is off-center.
Error Report: None
Exact Steps on How to Replicate Bug:
1.Start the Game
2.Enter Menu and go to the Equipments
3.Check either Harold or Therese's body armor's requirements.
Sample Project : https://www.mediafire.com/?1cazsmmexjwi6u8
The requirements itself doesn't work as the sample I made is only to show how the requirement text doesn't center itself.

This is not a bug. If you reduce the font size, then you'll have to expect the formatting to be off if you don't change the other aspects of your game either. Go to the Core Engine plugin and alter the Line Height to your font size + 8 (which is 30). Everything else is up to you.
Tips & Tricks - Auto-Potion (Final Fantasy Tactics) - RPG Maker MV
In Final Fantasy Tactics, Auto-Potion is a reactive effect that makes characters utilize the lowest level health Potion they have available whenever they have taken direct damage. This way, they can consistently mitigate damage. Here's how to recreate that effect in RPG Maker MV!
You can grab the copy/paste code here:
Yanfly.moe: http://yanfly.moe/2016/08/26/tips-tricks-auto-potion-final-fantasy-tactics-rpg-maker-mv/
Enjoy!
In Final Fantasy Tactics, Auto-Potion is a reactive effect that makes characters utilize the lowest level health Potion they have available whenever they have taken direct damage. This way, they can consistently mitigate damage. Here's how to recreate that effect in RPG Maker MV!
You can grab the copy/paste code here:
Yanfly.moe: http://yanfly.moe/2016/08/26/tips-tricks-auto-potion-final-fantasy-tactics-rpg-maker-mv/
Enjoy!
@Yanfly auto-potion is what i wanted the most, thx <3
Hi Yanfly,
Does the Common Event Menu Picture comment tag except a variable as the picture argument? So I could use \v[38] which contains say the number 101, it would then find picture 101 and display it?
Does the Common Event Menu Picture comment tag except a variable as the picture argument? So I could use \v[38] which contains say the number 101, it would then find picture 101 and display it?
BUMP! 🙁
I have a little question about the item synthesis plugin.
I notice that in game, the smith keeps track of how many items you've synthesized. He will say you have done 2/100 for example.
How is it possible to call that number in order to use it ?
The idea would be to be able to reward the player when he reaches certain percentages of the synthesized item. ("You've synthesized over 20 weapons ! Wow, let me give you this !")
I notice that in game, the smith keeps track of how many items you've synthesized. He will say you have done 2/100 for example.
How is it possible to call that number in order to use it ?
The idea would be to be able to reward the player when he reaches certain percentages of the synthesized item. ("You've synthesized over 20 weapons ! Wow, let me give you this !")
$gameSystem.synthedItems().length
$gameSystem.synthedWeapons().length
$gameSystem.synthedArmors().length
Each for items, weapons, and armors respectively. 🙂
thank you for all the great plugins and being helpful, no im not gonna ask something just wanted to say this xD
This is great ! Thanks a lot about this.
By the way, did you have a chance (or rather time) to look at the bug with vehicles and restricted areas that I mentioned a few days ago ? (I'm not in a hurry, I just wanted to make sure it was not an error on my part)
Dear Yanfly,
Ok, I know I'm being a pain but I have one more question about item synthesis.
I find it strange not to know what your are synthesizing (and I'm not very good with chosing mask names) so I've decided to show all the informations (I've put "false' in the section "mask unknown" of the plugin).
My problem now is that it is impossible to know if an item has already been synthesized once or not. Sure you can see how much you have in your inventory but if you, for example, sell the item, then there is nothing to tell you "you've synthed that before". It can be a problem if you want to complete 100% of the recipe. (Players must remember what they've crafted and it's not that easy when there are many items to craft).
Many of my test players (all of them actually) thought that it was bad not to know what you would get from crafting. Maybe I should try to get around it with the <Mask Name: x> notetag, but maybe you will have a solution for me ?
Sorry again to ask so much lately.
Ok, I know I'm being a pain but I have one more question about item synthesis.
I find it strange not to know what your are synthesizing (and I'm not very good with chosing mask names) so I've decided to show all the informations (I've put "false' in the section "mask unknown" of the plugin).
My problem now is that it is impossible to know if an item has already been synthesized once or not. Sure you can see how much you have in your inventory but if you, for example, sell the item, then there is nothing to tell you "you've synthed that before". It can be a problem if you want to complete 100% of the recipe. (Players must remember what they've crafted and it's not that easy when there are many items to craft).
Many of my test players (all of them actually) thought that it was bad not to know what you would get from crafting. Maybe I should try to get around it with the <Mask Name: x> notetag, but maybe you will have a solution for me ?
Sorry again to ask so much lately.
Hi, Yanfly.
i've discovered a bug with a plugin combo, and a plug in setting.
Script Name:
YEP_X_Subclass v.1.10 and YEP_SkillLearnSystem v.1.10
List of Scripts Used (with version):
Yep_ClassChangeCore v.1.11, YEP_X_Subclass v.1.10, YEP_SkillLearnSystem v.1.10
Bug Description:
Game Freezes when trying to learn a skill.
this happens only with the subclass plugin active, and the integration setting in the skill learn plugin set to true.
in my main game i got an error instead of the freezing, but in my dummy game it just froze.
Error Message:
Type Error
Cannot read property of '_actor' of undefined.
Additional Information
Link: https://dl.dropboxusercontent.com/u/60621831/Project1.7z
i've discovered a bug with a plugin combo, and a plug in setting.
Script Name:
YEP_X_Subclass v.1.10 and YEP_SkillLearnSystem v.1.10
List of Scripts Used (with version):
Yep_ClassChangeCore v.1.11, YEP_X_Subclass v.1.10, YEP_SkillLearnSystem v.1.10
Bug Description:
Game Freezes when trying to learn a skill.
this happens only with the subclass plugin active, and the integration setting in the skill learn plugin set to true.
in my main game i got an error instead of the freezing, but in my dummy game it just froze.
Error Message:
Type Error
Cannot read property of '_actor' of undefined.
Additional Information
Link: https://dl.dropboxusercontent.com/u/60621831/Project1.7z
Xenthar, you have to put a link to a sample project in order for Yanfly to look at it.
By the way, you mention YEP_SkillLearnSystem v.1.10 twice in a row in your list of scripts, which can be confusing, as it's not clear : did you just make a repeat or did you mistake the second one ? I would imagine your second YEP_SkillLearnSystem v.1.10 is a mistake and you wanted to put your subclass plugin instead but who knows ?
(see first page for more information on how to report bugs)
Original thread: https://forums.rpgmakerweb.com/threads/yep-yanfly-engine-plugins.48860/