Dynamic Npcs and events.

I use a common event to make an RNG option which makes speaking to npcs fun, since they might say different things.
Is there any way to have a similar thing happen in the overworld. Like have it so when you enter a map which ever RNG state its in will determine what events are active. By which I mean, having different npc events appear based on the RNG, not just changing what the event might do. Sorry if this doesn't make sense. I know what I'm asking for but it's hard to explain. I feel like its probably possible but I didn't know what to search to check.
Apologies if this has been answered a bunch.
not that I know of - which is why I'm trying to commission a plugin that includes dynamic text options as its main feature. Unfortunately the planning goes very slowly due to RL issues, and it's planned for MZ instead of MV.

Without that you'll have to go the event route, which is tedious to create.
Basically make events where different pages are different NPCs (including different sprites and content), and conditioned each page on a different value of the same variable.
Then all you need is one event to randomize that variable on entering the map.

Unfortunately the plannign for such a thing means a lot of work, and it can only be done for random NPC passerby's.
I use a common event to make an RNG option which makes speaking to npcs fun, since they might say different things.
Is there any way to have a similar thing happen in the overworld. Like have it so when you enter a map which ever RNG state its in will determine what events are active. By which I mean, having different npc events appear based on the RNG, not just changing what the event might do. Sorry if this doesn't make sense. I know what I'm asking for but it's hard to explain. I feel like its probably possible but I didn't know what to search to check.
Apologies if this has been answered a bunch.
like Andar said above it will be lots of work without plugins...

but the simplest one maybe using one autorun event that execute when entering map... that autorun will set some variable to random number... then erase itself (so it will execute again when reenter the map)

then create all your event with multiple pages... and each page have condition variable x = y...
so the event will use different page each time the variable changes... just use different image and you got "different" npc...

you can also make things more random by using more than one variable... for example variable x is used to randomize the event at the top left part of the map while variable y is used to randomize the event at the center of the map and so on...

there's a downside for this method though... it might get confusing if you want npc to have "multiple page".
ex: your event by randomizing variable... could become a pirate(1), merchant(2), beggar(3).

it will appear normally... but then when party have "Governor Flag/Insignia" the pirate will use civilan oufit(to not get caught as pirate by official), merchant will use more expensive outfit (to impress the governor) while the beggar will hide in the corner to avoid being seen. it can be done by adding page with same variable condition + extra condition to the event. and make sure place it at the right of the page with the same variable condition (since the event check is from right to left)
it could get a little bit confusing if you have lots of possible variation of event...

hope this help.

I've moved this thread to Plugin Requests. Thank you.

not that I know of - which is why I'm trying to commission a plugin that includes dynamic text options as its main feature. Unfortunately the planning goes very slowly due to RL issues, and it's planned for MZ instead of MV.

Without that you'll have to go the event route, which is tedious to create.
Basically make events where different pages are different NPCs (including different sprites and content), and conditioned each page on a different value of the same variable.
Then all you need is one event to randomize that variable on entering the map.

Unfortunately the plannign for such a thing means a lot of work, and it can only be done for random NPC passerby's.
I'm glad you could understand my question.
If I follow you I think I understand. The only thing I don't know is how the sprites would change since the event wouldn't activate until the player interacts, so wouldn't the sprite change upon interaction.
And dang, well that will be super helpful for creators once it comes out so good on you. A question that's a bit off topic. If you've played with MZ any so far, how different is it to MV? I wouldn't mind upgrading if the jump isn't too bad. Though I'd hate to have to remake all the sprite assets I've made so far.
like Andar said above it will be lots of work without plugins...

but the simplest one maybe using one autorun event that execute when entering map... that autorun will set some variable to random number... then erase itself (so it will execute again when reenter the map)

then create all your event with multiple pages... and each page have condition variable x = y...
so the event will use different page each time the variable changes... just use different image and you got "different" npc...

you can also make things more random by using more than one variable... for example variable x is used to randomize the event at the top left part of the map while variable y is used to randomize the event at the center of the map and so on...

there's a downside for this method though... it might get confusing if you want npc to have "multiple page".
ex: your event by randomizing variable... could become a pirate(1), merchant(2), beggar(3).

it will appear normally... but then when party have "Governor Flag/Insignia" the pirate will use civilan oufit(to not get caught as pirate by official), merchant will use more expensive outfit (to impress the governor) while the beggar will hide in the corner to avoid being seen. it can be done by adding page with same variable condition + extra condition to the event. and make sure place it at the right of the page with the same variable condition (since the event check is from right to left)
it could get a little bit confusing if you have lots of possible variation of event...

hope this help.
Right right, so if I do this option, I'll have to probably use it only really for one page interactions. But I really do like that idea you said. Using conditions or item variables to work around one page constrictions could work. Thank you this seems like a good option. I want to test it out, but I'll be honest I'm not sure how to set the y/x variable thing up. Could you explain what you mean by that if thats okay.
The only thing I don't know is how the sprites would change since the event wouldn't activate until the player interacts
That is simply a wrong assumption.
the sprite used depends on the page active, and any page change will automatically and immediatly change the sprite - no interaction needed at all.

both the poster after me and my description are about the same: you condition the page to a variable, and it will change automatically if that variable changes. and then you'll make an autorun that randomizes the variable on entering the map, causing the change in the sprites before the player does the first step.

If some of the changed events are within sight of the player on entering the map, you can do a fadeout before the transfer and fade-in only after the control variable command has randomized the event pages.
That is simply a wrong assumption.
the sprite used depends on the page active, and any page change will automatically and immediatly change the sprite - no interaction needed at all.

both the poster after me and my description are about the same: you condition the page to a variable, and it will change automatically if that variable changes. and then you'll make an autorun that randomizes the variable on entering the map, causing the change in the sprites before the player does the first step.

If some of the changed events are within sight of the player on entering the map, you can do a fadeout before the transfer and fade-in only after the control variable command has randomized the event pages.
Ah I've never tried something like that so I assumed otherwise as you say. Thank you for explaining it like that, I think I get it now. I'm gonna test it out once I'm done with work.
Right right, so if I do this option, I'll have to probably use it only really for one page interactions. But I really do like that idea you said. Using conditions or item variables to work around one page constrictions could work. Thank you this seems like a good option. I want to test it out, but I'll be honest I'm not sure how to set the y/x variable thing up. Could you explain what you mean by that if thats okay.
let's do some mock example... variable used for randomizing the npc is variable 1.

in the 'npc' event...
first page is the 'merchant' (image) make that page have condition: variable 1 = 1
second page is the 'pirate' make that page have condition: variable 1 = 2
third page is the 'beggar' make that page have condition: variable 1 = 3

and so on...
that event will change to either merchant, pirate, or beggar depending on how you randomize the variable 1 value in your autorun event...

the autorun event is basically have event command control variable -> random number.
then after randoming the number erase itself using erase event command.
@vivec360 FYI, I made a plugin that uses a text file to generate a random line of text...It would work really well with what you're doing. Could have a text file for names, a text file for conversation starters, etc.
let's do some mock example... variable used for randomizing the npc is variable 1.

in the 'npc' event...
first page is the 'merchant' (image) make that page have condition: variable 1 = 1
second page is the 'pirate' make that page have condition: variable 1 = 2
third page is the 'beggar' make that page have condition: variable 1 = 3

and so on...
that event will change to either merchant, pirate, or beggar depending on how you randomize the variable 1 value in your autorun event...

the autorun event is basically have event command control variable -> random number.
then after randoming the number erase itself using erase event command.
Oh, I already do similar just minus the sprite changes, right right. I assumed it was something else, phew. thanks for clearing it up!
@vivec360 FYI, I made a plugin that uses a text file to generate a random line of text...It would work really well with what you're doing. Could have a text file for names, a text file for conversation starters, etc.
That sounds very useful for generic npcs. I'll check it out if you can link it
@vivec360 I did create this before I really got into plugin creation. So there may be bugs, and right now it works on scripts instead of plugin commands. If needed/requested I would probably update it.

https://forums.rpgmakerweb.com/index.php?threads/simple-name-generator-plugin-1-0-mv.111588/
let's do some mock example... variable used for randomizing the npc is variable 1.

in the 'npc' event...
first page is the 'merchant' (image) make that page have condition: variable 1 = 1
second page is the 'pirate' make that page have condition: variable 1 = 2
third page is the 'beggar' make that page have condition: variable 1 = 3

and so on...
that event will change to either merchant, pirate, or beggar depending on how you randomize the variable 1 value in your autorun event...

the autorun event is basically have event command control variable -> random number.
then after randoming the number erase itself using erase event command.
I've found the time finally to test it out, this works great, Thank you very much!

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.

Original thread: https://forums.rpgmakerweb.com/threads/dynamic-npcs-and-events.128568/