Having Trouble with Transformations Help?

DISASTERFOX

Villager
Member
Joined
Jun 30, 2017
Messages
9
Reaction score
0
First Language
English
Primarily Uses
N/A
I am using RPG maker MV and the plugins that yanfly suggested and I am trying to make transformations like super sayians if I can learn this I can even do dragon transformations like breath of fire so I am trying to master this first. but anyway here is what it has

<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.
var charName = 'HaroldSSJ';
// The index of the character graphic used.
var charIndex = 0;
// The filename of the face graphic without the file extension.
var faceName = 'HaroldSSJ';
// The index of of the face graphic used.
var faceIndex = 0;
// The filename of the battler graphic without the file extension.
var battlerName = 'Harold_SSJ1';

}
// 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>


I put this in my states like it said changed the items in red to the names I used but I still not getting him to change into super saiyan. I don't know what the charIndex is I can only think it's the character number that is being used. which he is the 4th member of the team. so I changed the user actor ID to 4 but everything else I changed to the the 5th actor which I was using as the transformation state it's ID is 0005 I guess just 5 I am so lost do anyone know how to do this step by step?
 

Naveed

Veteran
Veteran
Joined
Nov 2, 2013
Messages
314
Reaction score
146
First Language
English
Primarily Uses
RMMV
The charIndex is the index of the character's graphic inside the filename. For example, look at the Actor_1 character graphic. The graphic is split into 8 different characters. The graphic for each character is its index, so the charIndex value should be the index of that character's image inside the image filename you specified. The index counts from left to right and starts from zero, so count your index like this:

0 1 2 3
4 5 6 7

Its the same for faceIndex.

The actor id should be that character's id as specified in the 'Actors' tab of the database, not the order he is added to the party.
 

DISASTERFOX

Villager
Member
Joined
Jun 30, 2017
Messages
9
Reaction score
0
First Language
English
Primarily Uses
N/A
The charIndex is the index of the character's graphic inside the filename. For example, look at the Actor_1 character graphic. The graphic is split into 8 different characters. The graphic for each character is its index, so the charIndex value should be the index of that character's image inside the image filename you specified. The index counts from left to right and starts from zero, so count your index like this:

0 1 2 3
4 5 6 7

Its the same for faceIndex.

The actor id should be that character's id as specified in the 'Actors' tab of the database, not the order he is added to the party.

Ok I had to make a new image for the super saiyan form and it has just one graphic so I assume it's 0 for the charIndex and gave the file name I use to name the saved file so that's in it's spot so I have the actor index is 1 because in the database when i click it he is 0001 so I guess he is 1 for that and hope it was right and have the images in the spot but I click the game and tried it again and still nothing. do I need to add stuff in skills or anything else? I shouldn't need the common events or anything. still having a bit of trouble.
 

Naveed

Veteran
Veteran
Joined
Nov 2, 2013
Messages
314
Reaction score
146
First Language
English
Primarily Uses
RMMV
Could you post a screenshot of the skill and the state you are using for the effect?
 

Naveed

Veteran
Veteran
Joined
Nov 2, 2013
Messages
314
Reaction score
146
First Language
English
Primarily Uses
RMMV
Ah you forgot to add the state by the skill. In the super saiyan skill, in the 'effects' tab, you need to give a 'add state' effect and apply the super saiyan 1 state.
 

DISASTERFOX

Villager
Member
Joined
Jun 30, 2017
Messages
9
Reaction score
0
First Language
English
Primarily Uses
N/A
Ah you forgot to add the state by the skill. In the super saiyan skill, in the 'effects' tab, you need to give a 'add state' effect and apply the super saiyan 1 state.
just added the state and tried the game again and got this upon activationRPG maker looking for awnsers 7.PNG
 

Naveed

Veteran
Veteran
Joined
Nov 2, 2013
Messages
314
Reaction score
146
First Language
English
Primarily Uses
RMMV
Copy and paste the entire notebox of the super saiyan 1 state so that I can see it. You probably forgot a bracket or something.
 

DISASTERFOX

Villager
Member
Joined
Jun 30, 2017
Messages
9
Reaction score
0
First Language
English
Primarily Uses
N/A
Copy and paste the entire notebox of the super saiyan 1 state so that I can see it. You probably forgot a bracket or something.
<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.

var charName = 'HaroldSSJ';

// The index of the character graphic used.

var charIndex = 0;

// The filename of the face graphic without the file extension.

var faceName = 'HaroldSSJ';

// The index of of the face graphic used.

var faceIndex = 0;

// The filename of the battler graphic without the file extension.

var battlerName = 'Harold_SSJ1';
 

Naveed

Veteran
Veteran
Joined
Nov 2, 2013
Messages
314
Reaction score
146
First Language
English
Primarily Uses
RMMV
If that is the full notebox, then the notetag is incomplete, which is why you're getting that error.

Use this notetag instead:

<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.
var charName = 'HaroldSSJ';
// The index of the character graphic used.
var charIndex = 0;
// The filename of the face graphic without the file extension.
var faceName = 'HaroldSSJ';
// The index of of the face graphic used.
var faceIndex = 0;
// The filename of the battler graphic without the file extension.
var battlerName = 'Harold_SSJ1';
}
// 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>
 

DISASTERFOX

Villager
Member
Joined
Jun 30, 2017
Messages
9
Reaction score
0
First Language
English
Primarily Uses
N/A
If that is the full notebox, then the notetag is incomplete, which is why you're getting that error.

Use this notetag instead:

<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.
var charName = 'HaroldSSJ';
// The index of the character graphic used.
var charIndex = 0;
// The filename of the face graphic without the file extension.
var faceName = 'HaroldSSJ';
// The index of of the face graphic used.
var faceIndex = 0;
// The filename of the battler graphic without the file extension.
var battlerName = 'Harold_SSJ1';
}
// 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>


Excellent! It works so from what you taught me with the charIndex this should work with new forms like dragons and the like?
 

Naveed

Veteran
Veteran
Joined
Nov 2, 2013
Messages
314
Reaction score
146
First Language
English
Primarily Uses
RMMV
Yes it will. Just add the dragon character image and use that in the code.
 

DISASTERFOX

Villager
Member
Joined
Jun 30, 2017
Messages
9
Reaction score
0
First Language
English
Primarily Uses
N/A
Yes it will. Just add the dragon character image and use that in the code.
ok thank you so much! now I forgot to add the remove code so do this looks right to you?

<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>
 

Naveed

Veteran
Veteran
Joined
Nov 2, 2013
Messages
314
Reaction score
146
First Language
English
Primarily Uses
RMMV
Yeah that's perfectly fine.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,236
Members
137,608
Latest member
Arm9
Top