Get the <down:19> valu of maptag.

I curentry to to use script call for an event. In the scriptcall, one of the parameter will be the value inside maptag <down:19>. Just the 19 of course.


Apparently that require some code and I think it's a good start for learning coding with javascript and rpgmaker also.


Can anyone can help me with this? I read documentation and that did't help me that much because I need an exmple for understand.


Thanks.
$dataMap.meta.down will give you the value from that note tag.  If you don't have a <down:#> note tag in the map properties, I think it will return undefined.  Not entirely sure on that, but it would be easy to test it.
Did't work for unknow reason. But I guess it's because be default that return a string and i need a integer.


Note:


It's work now. Only thing I cange is to updat rpg maker from 1.2 to 1.4.2. Any link?
1.4.2?  Is that the latest version?  I haven't seen an update for that.


But no, that should have worked in any version of MV - the metadata was there right from the start.  


It might not have worked if you were already playing a game, saved, added the note tag and/or the script call, then resumed your saved game - you would have had to leave the map and come back again for it to work.


If you want to guarantee an integer, just use Number($dataMap.meta.down)
You right, i press wrong number, version 1.3.4.


Anyway it's work so im happy, but many other trouble awaiting me haha

Original thread: https://forums.rpgmakerweb.com/threads/get-the-down-19-valu-of-maptag.73776/