Is there a way to make it so that depending on what armour/accessory you equip, a different party member is being added? For example, equipping Stone Necklace adds Johnny to the party, taking it off removes him from the party ect.
Equipping certain accessories adds party members?
RPG Maker MV Supportlook for a plugin that executes common events on equip and unequip.
I THINK I found an easier way. I just made a common even with conditional branch. If player wears Necklace: add John, Else: Remove John.
So far it seems to be working fine, unless there is something I didn't think of and the problems will occur later 😛 And of course it means adding that common even on every map.
So far it seems to be working fine, unless there is something I didn't think of and the problems will occur later 😛 And of course it means adding that common even on every map.
Typically I go the route you did, but just for the sake of options here's a plugin. https://forums.rpgmakerweb.com/index.php?threads/equipment-common-events.57234/
If its a "Common Event" you dont need to add it per map because Common Events arent even on the map in the first place... Common events if setup properly would run on all maps.
Another thing is that your party wont adjust while you're still in the menu after equip/unequip as by default Common Events or even Map events dont run inside the menu.
that requires you to have the common event run permanently as a parallel process, and that adds lag.
one or two such cases should be no problem, but the more parallel processes you have active, the higher is the risk of slowing down your game.
Make sure you add a Wait 10 frames (or some number) at the very top of your common event, as this isn't something you need to be testing 60 times a second. This will help avoid the lag Andar mentioned.
Ahh, I didn't think about the lag it could create. I would need like 50-70 common events like this alone, so I dont know if it's not too much...
I got the plugin ImaginaryVillain linked, and it also works fine (or at least the fixed version of it). But a lot of people in the comments seems to be having problems with it, so im a bit scared its gonna break 😛
Would the plugin also lag the game though? Since it's still based on common events (running in the background, i assume) .
I got the plugin ImaginaryVillain linked, and it also works fine (or at least the fixed version of it). But a lot of people in the comments seems to be having problems with it, so im a bit scared its gonna break 😛
Would the plugin also lag the game though? Since it's still based on common events (running in the background, i assume) .
I didn't look terribly hard into that plugin, so here's another option. https://forums.rpgmakerweb.com/inde...-collection-newest-way_menubackgrounds.78979/ there's a list, look for WAY_CustomOnEquipEval.
Personally though, I like to have a singular event I place on every map that holds the parallels that I need to run all the time. Usually it handles controller stuff, but since it's already there I like to give it other tasks. It keeps the map from having too many parallel events. Others I just spawn in so I can despawn them later to prevent lag. Also if the event doesn't need to be instantly responsive, you can just set it to lowest frequency to further reduce the strain on resources.
Personally though, I like to have a singular event I place on every map that holds the parallels that I need to run all the time. Usually it handles controller stuff, but since it's already there I like to give it other tasks. It keeps the map from having too many parallel events. Others I just spawn in so I can despawn them later to prevent lag. Also if the event doesn't need to be instantly responsive, you can just set it to lowest frequency to further reduce the strain on resources.
Oh, of course! So if i have:
If player wears Necklace: add John, Else: Remove John.
Times 50 or so, with different actors and armours, but under one Common Event, it wouldn’t slow doen the game, right?
Unless i misunderstood
If player wears Necklace: add John, Else: Remove John.
Times 50 or so, with different actors and armours, but under one Common Event, it wouldn’t slow doen the game, right?
Unless i misunderstood
The plugin you downloaded will not cause lag at all.
Your common event (or an event on each map) is checking continually to see if something has been equipped or removed. This is what causes lag. You cannot change equipment 60 times a second, but an event set to parallel process with no Wait commands is going to check 60 times a second to see if you have.
You know exactly when this needs to be triggered - when someone equips something or unequips something. So it's completely redundant having it check continually when you're on the map. The "status" is only going to change when a specific action happens.
The plugin checks, when that specific action happens, to see if any common event needs to be run. And it runs it as many times as needed, and no more. The common event is not running at all when you're on the map walking around. In this case, the common event is not set to parallel process, because it's going to be called at a specific time, when and only when it needs to be run.
It is by far the more efficient method.
If you try it and have issues, post in the thread, or start a new thread in Plugin support (with a link back to the plugin) saying what's happening.
Your common event (or an event on each map) is checking continually to see if something has been equipped or removed. This is what causes lag. You cannot change equipment 60 times a second, but an event set to parallel process with no Wait commands is going to check 60 times a second to see if you have.
You know exactly when this needs to be triggered - when someone equips something or unequips something. So it's completely redundant having it check continually when you're on the map. The "status" is only going to change when a specific action happens.
The plugin checks, when that specific action happens, to see if any common event needs to be run. And it runs it as many times as needed, and no more. The common event is not running at all when you're on the map walking around. In this case, the common event is not set to parallel process, because it's going to be called at a specific time, when and only when it needs to be run.
It is by far the more efficient method.
If you try it and have issues, post in the thread, or start a new thread in Plugin support (with a link back to the plugin) saying what's happening.
Original thread: https://forums.rpgmakerweb.com/threads/equipping-certain-accessories-adds-party-members.114898/