20 page event, wondering if there is a way to increase event pages. Already researched a bit, details below.

20 page event, each event page corresponds to a random encounter npc. Each npc has a dialogue with conditional branches and choices including battle states etc. The issue is each npc/event page is supposed to have their own corresponding self switched event page "Petrification version" (The Player can have an ability which turns npcs to stone ala medusa) unfortunately MZ has a 20 page cap.

Can I edit the JSON reliably or will it break things? also, I want to save all the hierarchy I've already set up but maybe halfling the amount of NPCs in the encounter event and filling the rest of the pages with the petrification versions for just more random encounter events... Sigh, its a shame because I have lots of other unique states like the Petrification that I want to implement but the page limitation is severely stunting.

I am aware of a few paid plugins which may achieve something like this with event calls but I'd prefer to not pay for/use a plugin which can change the whole backend ops of the project.

Thank you for your time and consideration.
There's no real reason this all needs to be crammed into one event.

You could have a second event with the pages for the petrified versions (or split the NPCs between two events, 10 and 10).

You could have a second parallel event that checks whether the NPC event has been petrified and changes its image accordingly.

There are probably other simple workarounds that could be implemented using the basic engine functions, that's just what came immediately to my head.
Not that I know of, but I would suggest a different approach to handling random NPCs.

There are a number of copy/clone event plugins that copy an event from a master map.

you make one randomizer event with a single page that checks which other NPCs to use and then copies those specific NPC Events from the master map.

That allows you to have the full event pages for a single NPC while still allowing any number of different NPC templates (more than 20)
There's no real reason this all needs to be crammed into one event.

You could have a second event with the pages for the petrified versions (or split the NPCs between two events, 10 and 10).

You could have a second parallel event that checks whether the NPC event has been petrified and changes its image accordingly.

There are probably other simple workarounds that could be implemented using the basic engine functions, that's just what came immediately to my head.

Not that I know of, but I would suggest a different approach to handling random NPCs.

There are a number of copy/clone event plugins that copy an event from a master map.

you make one randomizer event with a single page that checks which other NPCs to use and then copies those specific NPC Events from the master map.

That allows you to have the full event pages for a single NPC while still allowing any number of different NPC templates (more than 20)
I'll take all these points into consideration and factor them into my toiling. Perhaps a better question is this. Say I have the player character use an item or skill which corresponds to "Petrifying Gaze" can I have the skill or item call a "check for player facing event and replace picture with x" sort of thing? Am I understanding correctly that this is sort of what @ATT_Turan was talking about?
I didn't realize from your original question that you didn't already have an implementation of your Petrifying skill.
ave the skill or item call a "check for player facing event and replace picture with x"
yes, although doing it with events is a bit complex.

basically control variable to get player coordinates, then conditional branch to change coordinates based on facing.
then get location info to get the ID of the evet on that position.
Poryg has ExtraEventPages and called by mapNoteTag, no idea how MZ
hands events, if its similair to MV, it might work, or easy to adapt?
I didn't realize from your original question that you didn't already have an implementation of your Petrifying skill.

yes, although doing it with events is a bit complex.

basically control variable to get player coordinates, then conditional branch to change coordinates based on facing.
then get location info to get the ID of the evet on that position.

Poryg has ExtraEventPages and called by mapNoteTag, no idea how MZ
hands events, if its similair to MV, it might work, or easy to adapt?
Thank you all for the help. I'll digest all this.
Very much looking forward to sharing my game with you all soon.
So which approach will you use?
So which approach will you use?
I'm Going to do a multi step approach, Firstly I am just going to keep my current 3 events with 40 npcs each(Imagine morrowind style npcs in their function, dialogue trees etc...). The sunk cost is just too great there, and the lack of petrification ability on them shouldn't ruin immersion since the petrifying power is op and I am going to soft limit its use.

Moving forward with this game, its new npcs, and expansion pack I am probably to go create smaller events with less npcs to allow for more action pages along with a combination variable based conditional branch changes. IF its sounds nebulous its because I am very much riding by the seat of my pants. But I really think you all will be pleased or at least intrigued by what I am cooking. Different style visually, large sprites. Immersive sim inspired. I'm really plugging along.
I didn't realize from your original question that you didn't already have an implementation of your Petrifying skill.
The petrifying skill is basically implemented as its a simple state change based on an if then item based conditional branch. The skills and equipment in my game are mostly "Item" Based and are not tied to any actual equipment or skills. Though skills in their standard variety do appear I have gotten rid of the weapons and equipment screen entirely with many actions occurring during dialogue with combat being contextual is as far as attacks are concerned much like the game world of horror.
Looks like you're on a good roll!
The petrifying skill is basically implemented as...
None of that means much of anything in terms of implementation.

You were asking me in post #4 how you would interact with an event to petrify it - if you still need help with that, you'd need to show what you currently have for the event/skill/etc.
None of that means much of anything in terms of implementation.

You were asking me in post #4 how you would interact with an event to petrify it - if you still need help with that, you'd need to show what you currently have for the event/skill/etc.
What I'm trying to say is that the petrification skill will be baked into each NPC Event as a page, so the "Skill" is really just a (Item)conditional branch check called from a "choices" input with the item check being for the "Petrification Skill". I've attached some pics of a test NPC Event. I just whipped it up but it should correspond to how the skill would function if it was attached to the multiple character NPC event.

I realize my phrasing is awkward, and reflects a limited understanding of MZ commands and coding in general, but I think I have a functional simple workaround for the time being, However the fix I was hoping for was something like a script call to change the event on the tile but as usual I was probably overthinking things.

For the most part I've pivoted away from allowing Item based dialogue skills to be used with the random encounter NPCs and am instead limiting it hand placed NPCs. Have to keep on trucking along!

Thank you as always for your time and consideration.
One of the things that reads confusingly is your repeated use - both in this post and #11 - of the word "item". Nothing that you showed in your screenshots seems to have anything to do with items, so I'm not sure what it's supposed to mean.

Regardless, if you just walk up to the event and the choice to make them petrified is on that event, that's a piece of cake. Obviously, using one global switch is not the way to go because it has no way of knowing which of your NPCs it applies to.

So possibilities are:
- a self switch
- a global variable that stores which NPCs are petrified, either as an array or a single value using bitwise math
- - a whole ton of global variables, one for each NPC. This is inefficient compared to the above options, but you can just do it with event commands and...come on. You have some thousands of variables available, there's no way that's pushing you toward using them up.

But, ultimately, I'd go back to my original response from last week - I don't see why stuff for multiple NPCs needs to be crammed into one event to begin with.
One of the things that reads confusingly is your repeated use - both in this post and #11 - of the word "item". Nothing that you showed in your screenshots seems to have anything to do with items, so I'm not sure what it's supposed to mean.

Regardless, if you just walk up to the event and the choice to make them petrified is on that event, that's a piece of cake. Obviously, using one global switch is not the way to go because it has no way of knowing which of your NPCs it applies to.

So possibilities are:
- a self switch
- a global variable that stores which NPCs are petrified, either as an array or a single value using bitwise math
- - a whole ton of global variables, one for each NPC. This is inefficient compared to the above options, but you can just do it with event commands and...come on. You have some thousands of variables available, there's no way that's pushing you toward using them up.

But, ultimately, I'd go back to my original response from last week - I don't see why stuff for multiple NPCs needs to be crammed into one event to begin with.
My mistake, the demo pictures were not clear. Moving forward Each NPC Is going to have its own event like you suggested and I'll take everyone's suggestions here to heart as well.

Thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/20-page-event-wondering-if-there-is-a-way-to-increase-event-pages-already-researched-a-bit-details-below.172801/