MV Change Event Graphic to "collect"(more in Post)

Sorry for the title, I didn't know how to make my Request short.
I try to discribe what I want in a simple way and hopefully someone has an idea or is in the mood to make a PlugIn (if I need it)

In short I wanna make a game, where you are on a farm and get friends to help you there.
The friends are not supposed to be fix characters you can meet and invite to your farm, but random monsters you find in the world. (I have 80 monsters, maybe 160 if I have the strengh to pixel them all)

So its alot of possible characters to invite to your farm + I want the player to be able to have multiple monsters of the same kind if they want. (I could have solved it with switches, if you could have only one of a kind, but since I personal don't like it in a game with alot of monsters to not have multiply of the same monsters... yeah)

I want to give the monsters you invite simple personalities (I can solve that with selfswitches and common events)
but I don't know how to solve the graphic thing.
My idea would be:
- I prepare events with no graphic on my farm (but with selfswitches for personality etc)
- I would need a PlugIn/ScriptCall that changes the graphic of the empty event to a monster I would like to invite to my farm
- the Event with the changed graphic can now move around the farm and is able to be talked to (with commonevent so it depends on the personality) sounds to me like a selfswitch that is also active to make that move around and talked to thing possible

The invite could be, that I meet a random monster in the world and when talked to I can make a scriptcall that says that the empty event on the farm gets the graphic of THIS monster.

The "help on the farm" thing is something I will solve later, right now its more like a "I wanna collect monsters in the wild (not in battle) and show the collected Monsters on my Farm as walk around events.

----
Sorry that is really much and Iam super bad at explaining something in english. But I hope its kinda clear what Iam looking for.
This board is for either finding existing plugins, or having someone write a plugin for free. Paid requests belong on the Classified boards (for which you might not yet have access).

In case no-one knows of a plugin: you can use Set Movement Route -> Change Image to change a character's image, no script calls necessary. By default events reset their image when you leave their map or when their page changes. You could work around that by reapplying the change whenever the player enters the map, e.g. a Parallel event like this:

◆Comment:Update all relevant event images appropriately. ◆If:#0001 > 0 ◆If:#0001 = 1 ◆Set Movement Route:EV007 : :◇Image:Monster(1) ◆ :Else ◆Set Movement Route:EV007 : :◇Image:Monster(2) ◆ :End ◆ :End ◆Comment:Run once per map visit. ◆Erase Event
Parallel, instead of Autorun, means it will start without waiting for the transferring event to complete.
This board is for either finding existing plugins, or having someone write a plugin for free. Paid requests belong on the Classified boards (for which you might not yet have access).

In case no-one knows of a plugin: you can use Set Movement Route -> Change Image to change a character's image, no script calls necessary. By default events reset their image when you leave their map or when their page changes. You could work around that by reapplying the change whenever the player enters the map, e.g. a Parallel event like this:

◆Comment:Update all relevant event images appropriately. ◆If:#0001 > 0 ◆If:#0001 = 1 ◆Set Movement Route:EV007 : :◇Image:Monster(1) ◆ :Else ◆Set Movement Route:EV007 : :◇Image:Monster(2) ◆ :End ◆ :End ◆Comment:Run once per map visit. ◆Erase Event

Parallel, instead of Autorun, means it will start without waiting for the transferring event to complete.
I edit my post and delete the paid request thing, thanks for letting me know
But when I use the set movement route call, that would require that I already know to which monster the event has to change.

But I want that its kinda random, u know?
You meet a random wild monster in the world, you convince it to join you and now it appears on the farm as this monster. So it has to copy the graphic of the monster you met.

I guesse I could prepare every monster as an actor and somehow change the graphic of the event on the farm to the actor. But I don't know how to tell an event of the farm to change to this specific monster, without making 80+ coditional branches for each event, and 100+ switches or something like that, to make them change.

Iam unsure if I explained good enough.
If it were me, I'd probably use an event spawner plugin to spawn the monsters. Galv has such a plugin (https://galvs-scripts.com/2016/05/14/mv-event-spawner/) and Yanfly may have one too.

With Galv's plugin, you'd have a "spawn map" with each monster being its own event, with its own graphic and "personality" (e.g., dialogue, movement, etc) or you can use common events for the dialogues if you have just a few types of personalities. When you meet a particular monster in the wild, perhaps you could turn on a switch. When you go back to your farm map, if that switch is turned on, spawn that monster's event. You can use script calls to automate this, or you could write 80 conditional branches to check each switch.

If you think this might do what you want, I recommend experimenting with Galv's plugin and trying it out with just 2 or 3 monsters first. Then if you need help with the script calls to automatically check the switches and spawn the associated events, you can ask here.
@ChershireHatter
There is an alternative way to handle such a list of actors. I used that once in an Adventurer's Guild.

Each actor/mercenary in the game had a specific event in the guild building with its own picture.
Those events had multiple pages but were always constructed in the same way:
If the actor was in the party then the event was an empty seat or bed or whatever, and if interacted the actor asked if he should stay in the guild and leave the party.
If the actor was not yet found (any condition like switch or key item or whatever) the event was inaccessable
And if the actor was found but not in the party then the event would portait the actor and ask what he should do for the player - joining the party, discussing quests or whatever.

The disadvantage of this alternative is that you'll need a big map to have everyone placed as a possible event there...
@SeaPhoenix your solution sounds interessting... Also could make a variable to track how often I got the same monster in 1 Run and that the switch and spawn will be acitvated depending on the variable that count it.
Also needs alot of Switches and Variables to be set, but could work, thank you!
I will look at Galvs Script again!

@Andar I had that exact thing in a previous test game I did. It worked great, but only if I knew how many characters and which exact characters will be on the warm. (and not that 1 Event could be 80 different monsters)
But thank you for your help!
(and not that 1 Event could be 80 different monsters)
in that case I suggest a slightly different approach.

use a clone/copy event plugin, have a master-map with all those 200+ different actor events - and copy the specific event to the farm map with the plugin once you know which one is selected.
It may be a stupid question, but is there a way to come around asking for every single Switch (it would be 80 switches) in a conditional branch?
Like it would be

If Switch01 is on
then Spawn Event01 (eg scriptcall "Galv.SPAWN.event(id,r,s)")
Turn Switch 01 off
-1 for variable "monster01" (which should count how many times I invited a monster of the same kind while not being on the farm)
-> and if variable "monster01" isn't 0 it should loop that again
And that for 80 or more monsters.
I will for sure do it, if its not possible otherwise, but Iam pretty sure there is a more simple way with a script call?
why would you need to check switches at all?

and to answer your question the key to that is to use script functions (which you would have to do with a copy plugin anyway) and organise your numbers correctly to not need such branches.
If you're using a variable to keep track of how many times you've met a particular monster (assuming this is how many times that monster would appear on your farm map), you don't need a switch.

The easiest way to do this is to make sure the variables and event ids for the monsters are sequential, e.g., variable 1 corresponds to event id 1 on the spawn map if you're using Galv's plugin.

Here's an example of how you can check all the variables in a loop; you can put this in a script call in your parallel event on the farm map. If it's too long to fit in the script call, you can delete the lines starting with //; those are just comments to help you understand what's going on.
JavaScript:
// Assuming variables start from id 1 to id 80, and so do the event ids
for (var j = 1; j <= 80; j++) {
    var numMonsters = $gameVariables.value(j);
    if (numMonsters > 0) {
        for (var k = 1; k <= numMonsters; k++) {
            // The code below will spawn monster j if numMonsters is 1 or higher.
            // Replace r in the code below with your region.
            // s should be true if you want the event to be saved, or false otherwise
            Galv.SPAWN.event(j,r,s);
        }
        // The code below resets the variable to 0 so that it won't spawn monsters again unless
        // you meet the monster again in the wild and increment the variable.
        $gameVariables.setValue(j, 0);    
    }
}
If you're using a variable to keep track of how many times you've met a particular monster (assuming this is how many times that monster would appear on your farm map), you don't need a switch.

The easiest way to do this is to make sure the variables and event ids for the monsters are sequential, e.g., variable 1 corresponds to event id 1 on the spawn map if you're using Galv's plugin.

Here's an example of how you can check all the variables in a loop; you can put this in a script call in your parallel event on the farm map. If it's too long to fit in the script call, you can delete the lines starting with //; those are just comments to help you understand what's going on.
JavaScript:
// Assuming variables start from id 1 to id 80, and so do the event ids
for (var j = 1; j <= 80; j++) {
    var numMonsters = $gameVariables.value(j);
    if (numMonsters > 0) {
        for (var k = 1; k <= numMonsters; k++) {
            // The code below will spawn monster j if numMonsters is 1 or higher.
            // Replace r in the code below with your region.
            // s should be true if you want the event to be saved, or false otherwise
            Galv.SPAWN.event(j,r,s);
        }
        // The code below resets the variable to 0 so that it won't spawn monsters again unless
        // you meet the monster again in the wild and increment the variable.
        $gameVariables.setValue(j, 0);
    }
}
That sounds like something I need! (iam not a programmer, but I think I understand whats going on)
So this would spawn Monster1 (ID1 in Spawn map) when Variable1 has a value.
So it would spawn 4x Monster 1, if Variable 1 = 4?

Sounds awesome and I wanted to keep them sequential to make everything easier 🙂
Thank you! I will try this out today!

__
Update: Its seems to work!
Thank you! Have to work with it a little more to be sure, but atm it works just perfect!
I can't thank you enough!
Glad it worked, and you're welcome!

Original thread: https://forums.rpgmakerweb.com/threads/change-event-graphic-to-collect-more-in-post.162485/