- Joined
- Jul 19, 2018
- Messages
- 6
- Reaction score
- 5
- First Language
- Russian
- Primarily Uses
- RMMV
EDIT 2: Take a look at posts #6, #7 and #8 for the answer.
EDIT: Managed to get something to work (I think?) in a script call. However, whenever I try to include it in the plugin, I keep getting Cannot read property 'name' of undefined because of the $dataMap.events[this._eventId].name.match(/s{2}/) I added. Otherwise, it works fine, but it still doesn't do what I want it to do.
Here's the script call:
And here's how I included it in the plugin:
——————————————————————————————————————
I have looked around for such a plugin for about two days. I might have simply not entered the correct key words for the search engine to come up with what I'm looking for, or that one plugin simply doesn't exist.
Basic idea: Similar to what Shaz provided in this thread here for VX Ace: https://forums.rpgmakerweb.com/inde...orarily-disable-all-event-interactions.86663/ but made for MV and allows usage of several switches for different situations instead of only one switch.
How I think it would work: Switch IDs would be defined in the plugin manager, and event interaction would be completely blocked if said events do not have a specific string of characters written in a comment, the name, or the note. Also defined in the plugin manager.
I'm aware this could be done with conditional branches, however it adds clutter that could easily pile up when you already have a bunch of other conditional branches in various events.
Already in-dev projects would benefit immensely from this as the need to add a conditional branch to every event evaporates immediately.
Things I would use this for include a freecam ability that lets you transfer between maps as the transfer events have a defined string of characters in them, but block any other even interaction such as talking to people since they don't have that one important string of characters.
Another ability lets you enter a dream sort of world. It blocks transfer events, but lets you "talk" to people to intercept their thoughts, etc.
EDIT: Managed to get something to work (I think?) in a script call. However, whenever I try to include it in the plugin, I keep getting Cannot read property 'name' of undefined because of the $dataMap.events[this._eventId].name.match(/s{2}/) I added. Otherwise, it works fine, but it still doesn't do what I want it to do.
Here's the script call:
Code:
if ($dataMap.events[this._eventId].name.match(/s{2}/))
$gameMessage.add("Hello World")
else
$gameMessage.add("Guess this doesn't work?")
Code:
Game_Player.prototype.startMapEvent = function(x, y, triggers, normal) {
if (!$gameMap.isEventRunning()) {
$gameMap.eventsXy(x, y).forEach(function(event) {
if (event.isTriggerIn(triggers) && event.isNormalPriority() === normal && $gameSwitches.value(1) == false) {
event.start();
}
else if ($gameSwitches.value(1) == true && $dataMap.events[this._eventId].name.match(/s{2}/)) {
event.start();
}
});
}
};
I have looked around for such a plugin for about two days. I might have simply not entered the correct key words for the search engine to come up with what I'm looking for, or that one plugin simply doesn't exist.
Basic idea: Similar to what Shaz provided in this thread here for VX Ace: https://forums.rpgmakerweb.com/inde...orarily-disable-all-event-interactions.86663/ but made for MV and allows usage of several switches for different situations instead of only one switch.
How I think it would work: Switch IDs would be defined in the plugin manager, and event interaction would be completely blocked if said events do not have a specific string of characters written in a comment, the name, or the note. Also defined in the plugin manager.
I'm aware this could be done with conditional branches, however it adds clutter that could easily pile up when you already have a bunch of other conditional branches in various events.
Already in-dev projects would benefit immensely from this as the need to add a conditional branch to every event evaporates immediately.
Things I would use this for include a freecam ability that lets you transfer between maps as the transfer events have a defined string of characters in them, but block any other even interaction such as talking to people since they don't have that one important string of characters.
Another ability lets you enter a dream sort of world. It blocks transfer events, but lets you "talk" to people to intercept their thoughts, etc.
Last edited:



