MV Call Common Event from message

Hello! I'm trying to make the screen shake or flash during messages, I saw something like this:

Captura.PNG


Making the screen shake and flash a common event (In this case the event ID was 5)

But this doesn't work, do I need a certain plugin to do common events from the show message command?
yes, you'll need one of the advanced messaging plugins to add those codes to the messages.

I don't know which plugin gives that code however.
Moved to: Plugin Requests
In case you're interested, I have an RMMV plugin that lets you define custom text codes:
You can define a custom code with the plugin's parameters, in the Plugin Manager. In this case you'd want a "Process" type code so that the effect starts mid-message. For the effects (flash, shake, call common event, etc) check the plugin's help section. Relevant thread:
Note that if you are using a particularly old version of the editor (pre-1.5.0) then the parameters will be difficult to edit. In that case, check out this post:
Oh, I see! v1.5.0 introduced a revamped Plugin Manager with a bunch of new options, see the screenshot in this thread for an example:
My plugin makes use of lists of structs, so it's very inaccessible to people using older versions of the editor. 😅

Not to worry, though! You just want a "call common event" thing, right? Try copy+pasting this in to the Process Escape Codes text box:
Spoiler: Common event example
JavaScript:
["{\"Code\":\"ce\",\"Arguments\":\"[\\\"Integer\\\"]\",\"Delimiters\":\"[]\",\"Replacer\":\"\\\"var ev = $dataCommonEvents[parseInt(arguments[1], 10)];\\\\nif (ev) {\\\\n  var pt = SceneManager._scene instanceof Scene_Map ?\\\\n           $gameMap._interpreter : $gameTroop._interpreter;\\\\n  var id = pt.isOnCurrentMap() ? pt.eventId() : 0;\\\\n  pt.setupChild(ev.list, id);\\\\n}\\\"\"}"]
This defines a single "process" code for calling a common event mid-text: \CE[n], where n is the ID of the common event to run. Example use in Show Text:
Code:
Welcome! \ce[1]\|Whoa, what was that?
This might not work as expected if used in a Parallel-trigger event, but otherwise should be OK. (I wouldn't recommend using Show Text in parallel anyway.) 😮‍💨

Original thread: https://forums.rpgmakerweb.com/threads/call-common-event-from-message.131942/