Drago the Shinigami

The KING of the Shinigami!
Member
Joined
Sep 28, 2016
Messages
25
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hi! What I'm trying to do is have it so the player cannot change the formation of the main character, but can still change the formation of all the rest. Does anyone know how to do this? A plugin, perhaps?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,763
Reaction score
8,978
First Language
German
Primarily Uses
RMMV
yes, and because it requires a plugin or script this is the wrong place


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

Drago the Shinigami

The KING of the Shinigami!
Member
Joined
Sep 28, 2016
Messages
25
Reaction score
1
First Language
English
Primarily Uses
RMMV
Sorry, I did not know. I am actually kind of new here...
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,693
Reaction score
3,023
First Language
Tagalog
Primarily Uses
RMVXA
Try to browse at Yanfly's plugins, I think he has an actor lock script
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,647
Reaction score
15,742
First Language
English
Primarily Uses
RMMV
Save the following as a new js file (call it whatever you want) in your js/plugins folder and add it to your plugin manager:

Code:
Game_Actor.prototype.isFormationChangeOk = function() {
  return !actor.actor().meta.lockFormation;
}

then put <lockFormation> in the note tag of any actor you want to lock into place.


If you try it and it doesn't work or you get an error message, please open the developer tools (F8) and post the console log.  I haven't tested this, but I'm hoping I've got the syntax correct.
 

Latest Threads

Latest Profile Posts

Streaming some game development! Feel free to drop by!
SF_Enemy1_4 added!
index.php

Who wants to see me mock my brother's story? Brother story: thus he summoned a mighty twenty foot lizard. My Comment: Godzilla is attacking the city! As bad as these 4 are at shopping I wouldn't be surprised if Jun didn't proudly return with a chamber pot on her head. "Look at this helmet I got for 1,000 gold!"
Apparently I'm a grandpa now.

20220128_181216.jpg20220128_181227.jpg
Sales Goal of Learn RPG Maker MV at 64% now! :kaopride:

Forum statistics

Threads
118,809
Messages
1,118,874
Members
155,988
Latest member
Lilrick0712
Top