Yanfly Actor Transformations Lunatic Coding Help

Omegadragon8

Veteran
Veteran
Joined
Jul 21, 2015
Messages
99
Reaction score
40
First Language
English
Primarily Uses
Hello :)  I am posting this question on Lionheart_84's behalf. Recently Yanfly released an awesome new tips and tricks video about using states to Transform Actor's into upgraded forms (ala Super Saiyan). In Yanfly's lunatic coding, it alters the actors battler and portrait to represent the change. Lionheart_84 and I would like to know if it would be possible to alter the lunatic coding so that the actor's class would also change while they were under the status effect.

Here is the original Tips & Tricks Video for reference, on Yanfly.moe (note this will lead away form the forum) http://yanfly.moe/2016/07/06/tips-tricks-actor-transformations-rpg-maker-mv/
The link also includes the lunatic code.

And, just in case I have misinterpreted Lionheart_84's question, here is Lionheart_84's post. (tenth post from the top) 





Thank you for taking your time to check this out for us :D  
 
Last edited by a moderator:

RogdagoR

Veteran
Veteran
Joined
Oct 1, 2015
Messages
134
Reaction score
32
First Language
Italian
I think you can do something like DreamX suggested in this topic, not sure how to mix everything, but maybe it will help
 

Omegadragon8

Veteran
Veteran
Joined
Jul 21, 2015
Messages
99
Reaction score
40
First Language
English
Primarily Uses
I think you can do something like DreamX suggested in this topic, not sure how to mix everything, but maybe it will help


Thanks for the response! Unfortunately that is not what Lionheart_84 was attempting, he is trying to force a class change through a status effect similar to how Yanfly has changed character appearance through a status effect. Then when the status ends he wants the class to return to normal.
 

Andronius

Apprentice
Veteran
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 (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:

  • ¿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=#0000FF]charName, charIndex[/COLOR]); [FONT='comic sans ms'][B][COLOR=#800080]<= Do I have to replace/change something here?[/COLOR][/B][/FONT]
  // Changes the face image to the setting applied from above.
  user.setFaceImage([COLOR=#0000FF]faceName, faceIndex[/COLOR]); [FONT='comic sans ms'][B][COLOR=#800080]<= Do I have to replace/change something here?[/COLOR][/B][/FONT]
  // Changes the battler image from the setting applied from above.
  user.setBattlerImage([COLOR=#0000FF]battlerName[/COLOR]); [FONT='comic sans ms'][B][COLOR=#800080]<= Do I have to replace/change something here?[/COLOR][/B][/FONT]
  // Refreshes the user's appearance.
  user.refresh(); [FONT='comic sans ms'][B][COLOR=#800080]<= Do I have to put something inside this brackets?[/COLOR][/B][/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! ^___^  
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,845
Messages
1,016,961
Members
137,561
Latest member
JaCrispy85
Top