A downloadable tool

Download NowName your own price

[RPG Maker MZ Plugin] LockLeader - Lock and Manage Your Party Leader

Hello, RPG Maker MZ users! Today, I’m excited to introduce LockLeader, a plugin designed to lock the position of your party’s leader (the first slot character) in the menu screen while offering flexible options to manage or change the leader based on your story progression. Whether you’re a beginner or a seasoned developer, this plugin comes with intuitive GUI-based commands to make it easy to use.

Key Features

  • Leader Position Lock: The party’s leader (first character) is fixed in place, while other members can be rearranged freely.
  • Dynamic Leader Switching: Change the leader to a new character or unlock the fixed position as your story unfolds.
  • Switch and Variable Integration: Link leader changes to specific switches or track the lock status with variables.
  • Auto-Reordering on Death: If the leader dies, the party automatically reorganizes and assigns a new leader.
  • Enhanced Menu UI: A "Leader" label appears next to the fixed leader for clear, at-a-glance identification.

How to Use

  1.  Download the plugin file (LockLeader.js) from the link below and place it in your project’s js/plugins/ folder.
  2. Activation: Open the Plugin Manager in RPG Maker MZ, add LockLeader, and turn it on.
  3. Customization: Adjust the plugin parameters to set the initial leader ID, switches, variables, and more to suit your needs.

Plugin Commands

  • unlockLeader: Unlocks the leader’s fixed position.
  • setNewLeader [actorId]: Assigns a new leader (e.g., setNewLeader 2).
  • toggleLockState: Toggles the lock status between ON and OFF.
  • triggerLeaderChange: Manually triggers an event when the leader changes.
  • setAllowChange [true/false]: Enables or disables leader changes.
  • setTriggerSwitch [switchId]: Specifies a switch to activate when the leader changes.
  • setTriggerEnabled [true/false]: Turns the change trigger on or off.

Tips for Use

  • Perfect for games where the leader changes as the story progresses—start with Character A as the leader, then switch to Character B mid-game for dramatic effect!
  • Combine switches and variables to create custom events tied to leader changes.
  • Want to tweak the "Leader" text placement? Dive into the code and adjust it to match your UI vision.

Note

Changing the main character is only possible when AllowChangeSwitch is ON, so check the settings according to the game flow.

The initial setting value (e.g. FixedLeaderID) must match the character ID in the database to avoid errors.

Source: https://otterscribe.tistory.com/22 [OtterScribe's Game Journey: Tistory]

Published 28 days ago
StatusReleased
CategoryTool
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorOtterScribe
Tagsplugin, RPG Maker, RPG Maker MZ

Download

Download NowName your own price

Click download now to get access to the following files:

LockLeader.zip 3.6 kB

Leave a comment

Log in with itch.io to leave a comment.