- Joined
- Jul 4, 2016
- Messages
- 3
- Reaction score
- 1
- Primarily Uses
Hi guys, so I have been using RPG Maker since VX, used Ace but never really got into it too much, but now with MV and with JavaScript as the scripting language I have gotten back into the RPG Maker series.
So, I have started creating a plugin to make certain Region IDs act as "walls" (I know there are some things like that around already, but I'm doing it more for the practice), and to do that I have given each map a tag ("unw") that gives the ID of what region should act as "unwalkable" (example: <unw:3>), then I'm running the command:
$dataMap['meta'].unw to get the id of each tag, however, what happens is, when I run this command and start the game, the script seems to happen before the map loads returnign the message:
"Cannot read property 'meta' of null", interrupting the rest of the script and preventing it from happening.
So I have been searching with no results for a way of running the "$dataMap['meta'].unw" after the map is loaded, any suggestions?
So, I have started creating a plugin to make certain Region IDs act as "walls" (I know there are some things like that around already, but I'm doing it more for the practice), and to do that I have given each map a tag ("unw") that gives the ID of what region should act as "unwalkable" (example: <unw:3>), then I'm running the command:
$dataMap['meta'].unw to get the id of each tag, however, what happens is, when I run this command and start the game, the script seems to happen before the map loads returnign the message:
"Cannot read property 'meta' of null", interrupting the rest of the script and preventing it from happening.
So I have been searching with no results for a way of running the "$dataMap['meta'].unw" after the map is loaded, any suggestions?

