For the game I'm making, the party can have a maximum of four active members with reserve members who don't partake in battles. I want players to be able to change the party to an extent, but I don't want them to be able to change who the party leader is. Is there a way I can do this without using a script?
One idea I had was restricting formation access unless at a certain points like I did with my save access, but I forgot how I restricted the save access...
What should I do?
no. bare minimum; you're looking at a minor modification to the default Scene_Menu and possibly the default MenuStatus script(s).
to my understanding, the only default acess to party organization is the formation command in the main menu. this is where your edits will need to be made.
also, page three of the event commands include options for enabling/disabling both save and formation access.
There's a Change Formation Access command under System Settings on tab 3 of event commands. However, that would prevent the player swapping ANY of their party members around.
You CANNOT restrict the first person only without using scripts.
You can either have a parallel process event that runs for the entire game that checks who is in position 1, and if it's not the actor you're after, swap that actor with whoever IS in position 1 (all of that uses scripts). But that's not a very good way to do it - better to modify the scripts so it checks and prevents at the time the player attempts to swap, rather than every single frame of the game.
Moving to RGSSx Script Support
You want to lock the actor's ID, not their name.
How do I find the actor's ID?
The actor's tab in the database shows the id for each of your actors.
By default, the RTP actor Eric's id is 001 in the database, but in the script, you'd just say 1 instead of 001.
#--------------------------------------------------------------------------# * Formation [OK]#--------------------------------------------------------------------------def on_formation_ok if @status_window.index > 0 if @status_window.pending_index >= 0 $game_party.swap_order(@status_window.index, @status_window.pending_index) @status_window.pending_index = -1 @status_window.redraw_item(@status_window.index) else @status_window.pending_index = @status_window.index end @status_window.activate else @status_window.activate endendfind the default in Scene_Menu, replace it with this.
this does nothing but lock the party leader from being accessed during the use of the formation command in the main menu.
it will not visually disable the actor. it will not play a buzzer sound effect. it only stops you from actually accessing the leader.
the ONLY mod here is the addition of a contional branch. that's it...
edit:
i created a mini script for this, complete with visual updates and sound effects.
if you don't find a solution, let me know and i'll drop a link to the official thread after i've uploaded it.
Thanks for everyone who helped! I managed to get it to do what I wanted eventually, could an admin please close this thread?
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.