and how?
All could find everywhere were giant confusing loops to scan though very specific stuff.
Does rpg maker mv really not have a simple function for checking basic stuff like that?
😮
Check if the current event has a note tag, check if the current map has a note tag?
If its not a part of the engine (crazyyy!),is there a plugin that makes those checks easier?
This is really NOT an easy engine for scripting. Godot and even Unity have way better documented API and well defined helper methods and functions. I feel crippled without basic access to that stuff
Hmm, well, you could use RegExp and $dataMap (data of the current map) to check for a particular note tag. Or you could use the 'meta' object in $dataMap (note tags are automatically parsed and put into 'meta' when the map is loaded).
For the event it is the "meta" object in events in $dataMap.
ok then, how (in script) do you check if the current map contains a note tag called <testme>? for example..
Please, give me some example code/method
Right now both replies are telling me to write my own and I have been trying and failing to do that for the last hour
so what is it? Is there really no
if $dataMap.events.meta.hasNoteTag('testme'){//do stuff}
method?
Something reusable and general purpose that returns true or false- something to use in conditional branches in the editor?
Getting to the data is like pulling teeth
can I just do
if $dataMap.meta =='testme'{
console.log('voala')
}
OSSRA, thank you, I will give that a try. Whydoesnt someone make a general purpose plugin for that? It will make the editor much more accessible and flexible
It will explode, because there is nothing as "in" in javascript.
Using $dataMap.meta.testme as mentioned above is enough. It won't explode as long as $gameMap is defined.
There is an 'in' operator, though. o:
EDIT: As long as what you are attempting to do comes after 'meta' is populated on map load, you should be fine.
Not saying it's wrong.. its just seeing it as THE example everywhere paints the first impression of the engine as a pain in the arse to script- if data access is like pulling teeth, then it wont be fun to play with the data
xD
It will be great if we could get a proper API doc. I know there is one on google docs and I saw it - it is very incomplete and scattered. It did not help me in this instance
Thank you for the help guys. I am going to play with what i learned tomorrow. Its getting really late here now =_=
ikr xD 3:02 am 😀
Actually, pulling data out of the engine is pretty easy once you get the hang of it. Console is your best friend in this task.
well Idk about that, but we will see.
The engine IS a pain in the ass for scripting. Especially compared to godot.
Godot has a better code editor, debugger, api, better everything.
The only reason I am trying to use this engine is the damned license on the awesome tilesets wont allow me to use the tilesets in godot
This forum has awesome community made tilesets, but unfortunately they are all tied with a license to be used only in rpg maker
I bought rpg maker, because i do like it as an engine- but really wish I could use the tilesets somewhere else where I can do more interesting things with them easier
For now I guess it wont hurt to learn the poorly documented rmmv api and try to do things with it. Thanks to you guys I am still here and learning