Instant action skill crashes RPG maker.

I am very new to RPG maker, like I got this software via the free deal on steam. I'm trying to make a game for fun and wanted the instant action plug-in. When I try to use an instant action skill it crashes and I don't know why. All I did was copy and paste the script and nothing else. Can someone help figure out why.



The line related to the error is

if $imported["YEA-BattleEngine"]
does this happen if you use a new game, or with a saved game, or on battletest?

how did you configure the instant action script?

the error basically says that the engine is missing data for the script to work correctly. And now you need to find out where you have forgotten to enter that data.
Hey,

Maybe you accidentally cut off the top part of the script? The error mentions line 213, the line you mentioned should be in line 270 or 282 respectively (assuming this is about this script).
So my first suggestion would be to try to replace the script with a new copy to make sure this step is fine.

As for the error itself, it impies that the variable $imported is set to nil (usually used to express that the variable is "empty").
This would happen if the variable was never initialized (despite the instant action script doing that at the very beginning) or explicitly set to nil (rather unlikely to happen by accident).
Hey,

Maybe you accidentally cut off the top part of the script? The error mentions line 213, the line you mentioned should be in line 270 or 282 respectively (assuming this is about this script).
So my first suggestion would be to try to replace the script with a new copy to make sure this step is fine.

As for the error itself, it impies that the variable $imported is set to nil (usually used to express that the variable is "empty").
This would happen if the variable was never initialized (despite the instant action script doing that at the very beginning) or explicitly set to nil (rather unlikely to happen by accident).
That is exactly the reason the crashes occurred. I only copied the coding parts and nothing above. It's fixed now; thank you.

Original thread: https://forums.rpgmakerweb.com/threads/instant-action-skill-crashes-rpg-maker.176023/