Code:
YEP_CoreEngine.js:1094 TypeError: Cannot read property 'trim' of undefined
at Game_Interpreter.pluginCommand (Tsukitsune_animatedOverlayAddon.js:288)
at Game_Interpreter.pluginCommand (Olivia_HorrorEffects.js:1385)
at Game_Interpreter.pluginCommand (MM_MapSystem.js:107)
at Game_Interpreter.command356 (rpg_objects.js:10508)
at Game_Interpreter.executeCommand (rpg_objects.js:8930)
at Game_Interpreter.update (rpg_objects.js:8838)
at Game_Map.updateInterpreter (rpg_objects.js:6115)
at Game_Map.update (rpg_objects.js:6022)
at Scene_Map.updateMain (rpg_scenes.js:608)
at Scene_Map.updateMainMultiply (rpg_scenes.js:600)
SceneManager.catchException @ YEP_CoreEngine.js:1094
I the aforementioned error when I call the following Common Event.
Code:
◆Comment:These are constant values, no other picture can use them.
: :Picture 51 is the Background
: :Picture 52 is the Foreground
◆Play SE:Book2 (90, 100, 0)
◆Show Picture:#51, mapbase, Upper Left (0,0), (100%,100%), 255, Normal
◆Plugin Command:GET CURRENT FLOOR
◆Label:maploop
◆If:Script:$gameVariables.value(20) === $dataMap.mapOverlay
◆Plugin Command:DISPLAY MAP ICON
◆
:End
◆If:Button [Cancel] is pressed down
◆Play SE:Book2 (90, 100, 0)
◆Erase Picture:#51
◆Erase Picture:#52
◆Exit Event Processing
◆
:End
◆If:Button [Left] is pressed down
◆Plugin Command:PREVIOUS MAP
◆
:End
◆If:Button [Right] is pressed down
◆Plugin Command:NEXT MAP
◆
:End
◆Jump to Label:MapLoop
Here is the plugin where the plugin commands are stored.
The thing is i'm not calling str.trim. So I don't understand what I'm doing wrong. Am I missing something.
Goal: Common event display 2 picture, background never changes, but the foreground image does depending on the current maps notetags. You can also loop through all the foreground images by pressing left and right. An icon will show the players current position on the current map, but not be displayed if they are viewing another map.
edit: Okay so appears to have something to do with Tsukitsune's Animated Overlay plugin.