- Joined
- Mar 29, 2016
- Messages
- 102
- Reaction score
- 117
- First Language
- English
- Primarily Uses
- RMMV
Hello everyone. Just downloaded @Yanfly's Actor Transformations Lunatic Code, but I'm having trouble setting it up. I'm sorry to ask this, and I hope I'm posting this question in the correct place, (perhaps it's something very easy and obvious for those familiar with Coding and Lunatic Mode), but it's the first time EVER I have to use or set-up code or lunatic mode.
Already watched the video several times, but I wish it included the following info for noobs, and a SEPT BY STEP explanation on how to set it up correctly, showing in de video how she went to each folder or place in the computer to find the following:
All these red values are refering to the current actor, or the actor in which I want to transform? In other words: must I replace the values in red with the current actor (normal State) which is about to transform, OR the values of the transformed actor (transformed State)?
I don't know if I'm asking this correctly, I have problems with these bits of the code, and I appreciate very much if someone would be so kind as to explain this to me in the easiest way possible:
<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() === 1) {
// The filename of the character graphic without the file extension. <= Where do I find this?
var charName = 'HaroldSSJ';
// The index of the character graphic used. <= Where do I find this?
var charIndex = 0;
// The filename of the face graphic without the file extension. <= Where do I find this?
var faceName = 'HaroldSSJ';
// The index of of the face graphic used. <= Where do I find this?
var faceIndex = 0;
// The filename of the battler graphic without the file extension. <= Where do I find this?
var battlerName = 'Harold_SSJ1';
// Check if the actor ID is 2.
and this:
<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>
THANKS IN ADVANCE! ^___^
Already watched the video several times, but I wish it included the following info for noobs, and a SEPT BY STEP explanation on how to set it up correctly, showing in de video how she went to each folder or place in the computer to find the following:
- ¿Where do I find The filename of the character graphic?
¿Where do I find The index of the character graphic used?
¿Where do I find The filename of the face graphic?
¿Where do I find The index of of the face graphic used?
¿Where do I find The filename of the battler graphic?
All these red values are refering to the current actor, or the actor in which I want to transform? In other words: must I replace the values in red with the current actor (normal State) which is about to transform, OR the values of the transformed actor (transformed State)?
I don't know if I'm asking this correctly, I have problems with these bits of the code, and I appreciate very much if someone would be so kind as to explain this to me in the easiest way possible:
<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() === 1) {
// The filename of the character graphic without the file extension. <= Where do I find this?
var charName = 'HaroldSSJ';
// The index of the character graphic used. <= Where do I find this?
var charIndex = 0;
// The filename of the face graphic without the file extension. <= Where do I find this?
var faceName = 'HaroldSSJ';
// The index of of the face graphic used. <= Where do I find this?
var faceIndex = 0;
// The filename of the battler graphic without the file extension. <= Where do I find this?
var battlerName = 'Harold_SSJ1';
// Check if the actor ID is 2.
Code:
}
// Changes the character image to the setting applied from above.
user.setCharacterImage([COLOR=rgb(0,0,255)]charName, charIndex[/COLOR]); [FONT='comic sans ms'][COLOR=rgb(128,0,128)]<= Do I have to replace/change something here?[/COLOR][/FONT]
// Changes the face image to the setting applied from above.
user.setFaceImage([COLOR=rgb(0,0,255)]faceName, faceIndex[/COLOR]); [FONT='comic sans ms'][COLOR=rgb(128,0,128)]<= Do I have to replace/change something here?[/COLOR][/FONT]
// Changes the battler image from the setting applied from above.
user.setBattlerImage([COLOR=rgb(0,0,255)]battlerName[/COLOR]); [FONT='comic sans ms'][COLOR=rgb(128,0,128)]<= Do I have to replace/change something here?[/COLOR][/FONT]
// Refreshes the user's appearance.
user.refresh(); [FONT='comic sans ms'][COLOR=rgb(128,0,128)]<= Do I have to put something inside this brackets?[/COLOR][/FONT]
}
</Custom Apply Effect>
and this:
<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>
THANKS IN ADVANCE! ^___^

.