Script for locking party character (MV)

ChefBorkBork

Warper
Member
Joined
Sep 10, 2020
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hello,

So I've been working on a game using the MV engine and have encountered a small snag I'm having trouble working around.

There is a certain part in the game where a temporary character is added that I want to freely add and remove from the core party as needed. Normally for other sections of the game I've had the formation button disabled and a hub area is instead used where separate events are used for swapping out characters. However as I don't want to go through that area to allow access to the temporary member, I've decided to allow formation access during that section of the game only. The problem I encounter is this then gives the player the ability to swap their position with another party member, potentially causing the situation of a party member being able to see and talk to themself in the hub area which is obviously an issue. I'm looking for some kind of script I can run that locks the first slot in place so players won't have the ability to swap the main character around in the party with other people.

I've done a little digging on this already for this subject but most threads are 4+ years old and in reference to VX/VXA rather than MV, so I'm unsure how accurate the info is for this newer version. I've seen some sample scripts used that apparently achieve what I'm looking for but when I try these out myself it either comes with an error that isn't explained how to fix, or just doesn't run at all. I've also seen the Yanfly plugin mentioned alot in regards to this topic, but I'm not interested in all the other things the plugin comes with at the moment and I want to try and avoid using plugins as much as possible (Mainly a personal reason of wanting to see how well I can make this using in engine stuff.)

If anyone has any kind of script made for MV that can solve this I would massively appreciate seeing it, thanks in advance.
 

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

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top