Nerdpago

Maker
Member
Joined
Jul 27, 2017
Messages
12
Reaction score
2
First Language
Portugues
Primarily Uses
RMMV
Hello everyone!

So, using chrono mode, when you start a battle, you followers assume a especific formation based on the player position and direction.
But after that, you cant make nothing else (like routes)
i think this is the line code for:

//==============================
// * Set Initial Actors Pos
//==============================
Game_Chrono.prototype.setInitialActorsPositionChrono = function() {
for (var i = 0; i < $gameMap.players().length; i++) {
var character = $gameMap.players();
var ftarget = this.setFirstTarget(character);
if (character.battler().isDead()) {character.battler().setHp(1)};
character.battler()._chrono.index = i;
character._chrono.premapMoveSpeed = character._moveSpeed;
character._chrono.target = ftarget;
character._chrono.premapD = character._direction;
character._chrono.premapX = character._x;
character._chrono.premapY = character._y;
character._stepAnime = true;
if (i > 0) {this.setInitialFollowerPositionChrono(i,character)};
if (character._chrono.posX >= 0) {
character._chrono.nextX = character._chrono.posX
character._chrono.posX = -1;
};;
if (character._chrono.posY >= 0) {
character._chrono.nextY = character._chrono.posY
character._chrono.posY = -1;
};;
character._chrono.orgX = character._x;
character._chrono.orgY = character._y;
character.turnTowardCharacter(character._chrono.target);
};
};

//==============================
// * Set Initial Follower Pos
//==============================
Game_Chrono.prototype.setInitialFollowerPositionChrono = function(index,character) {
if ($gamePlayer.direction() === 2 || $gamePlayer.direction() === 8) {
character._chrono.nextY = $gamePlayer.direction() === 2 ? $gamePlayer._y + 1 : $gamePlayer._y - 1;
if (index === 1) {
character._chrono.nextX = $gamePlayer.direction() === 2 ? $gamePlayer._x - 2 : $gamePlayer._x + 2;
} else if (index === 2) {
character._chrono.nextX = $gamePlayer.direction() === 2 ? $gamePlayer._x + 2 : $gamePlayer._x - 2;
} else if (index === 3) {
character._chrono.nextY = $gamePlayer.direction() === 2 ? $gamePlayer._y - 2 : $gamePlayer._y + 2;
character._chrono.nextX = $gamePlayer._x;
} else {
character._chrono.nextY = $gamePlayer.direction() === 2 ? $gamePlayer._y - index : $gamePlayer._y + index;
character._chrono.nextX = $gamePlayer._x;
};
} else {
character._chrono.nextX = $gamePlayer.direction() === 4 ? $gamePlayer._x - 1 : $gamePlayer._x + 1;
if (index === 1) {
character._chrono.nextY = $gamePlayer.direction() === 4 ? $gamePlayer._y + 2 : $gamePlayer._y - 2;
} else if (index === 2) {
character._chrono.nextY = $gamePlayer.direction() === 4 ? $gamePlayer._y - 2 : $gamePlayer._y + 2;
} else if (index === 3) {
character._chrono.nextX = $gamePlayer.direction() === 4 ? $gamePlayer._x + 2 : $gamePlayer._x - 2;
character._chrono.nextY = $gamePlayer._y;
} else {
character._chrono.nextX = $gamePlayer.direction() === 4 ? $gamePlayer._x + index : $gamePlayer._x - index;
character._chrono.nextY = $gamePlayer._y;
};
};
};

---------------------------------

what i want to know is : can i put this code in a common event inside rpg maker ?
then i could call this common event every time i want and change followers sprites more freely before the battle starts
like: call this common event, then switch follower images (i can even make a custom interaction like the followers draw their weapons and then assume the battle pose) and finally then the battle starts.
and sorry if i wrotte something wrong, im don't speak english very well.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,463
Reaction score
5,589
First Language
Dutch
Primarily Uses
RMXP

I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Nerdpago

Maker
Member
Joined
Jul 27, 2017
Messages
12
Reaction score
2
First Language
Portugues
Primarily Uses
RMMV
Updating: i want more freedom to set things up when the followers go to their positions before the battle begins
 

Latest Threads

Latest Posts

Latest Profile Posts

I am SO HYPED to share this trailer with everyone when its done. I almost want to tear up i had no idea how far i came along with Fallen Feather in these last 3 years.
how it looks from the top
Hike was successful guys! I made it to the top!
Add Film-like Visual Effects During Test-Play, Deploy Games with Electron | RPG Maker News #69

brain broken as soon as i figure out whats wrong with my game im taking a long nap

Forum statistics

Threads
112,184
Messages
1,066,440
Members
145,784
Latest member
lafa
Top