Event Note Tag

Gyldstrand

Veteran
Veteran
Joined
Oct 16, 2014
Messages
76
Reaction score
4
I have a note tag in an event's Note box. I can get the value of this note but how do I get the eventId of the event(s) with this note?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,425
Reaction score
7,710
First Language
German
Primarily Uses
RMMV
In that case you need to make an array for storing the numbers, and check every event in the map if it has the value and if yes, copy it's ID into the array.
 

Gyldstrand

Veteran
Veteran
Joined
Oct 16, 2014
Messages
76
Reaction score
4
" check every event in the map if it has the value and if yes, copy it's ID into the array. " 

How do I do that part ?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,425
Reaction score
7,710
First Language
German
Primarily Uses
RMMV
you need a loop counting through all events, and using if to check which ones fit.


How good is your programming experience/knowledge?


I didn't give more details because that is one of the basic techniques needed in programming, and if you need more details we would need more info about what you're trying to do and how your script is supposed to work.
 

Gyldstrand

Veteran
Veteran
Joined
Oct 16, 2014
Messages
76
Reaction score
4
I have just started learning. I understand the loops and I know how to get the information separately but I am having trouble writing the statement. I want to search the map events for the event ID with the specified Notetag.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
$gameMap.events().filter(function(evt) return ...).map(function(evt) return evt.id())


where ... is the condition that says whether the event's note tag matches the string you're after.


I haven't tested this or looked at a guide - you may need to confirm the syntax/function names.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
I could tell you that if you provided info about what note tag you're looking for, and what you're doing with it once you get the list ;)


Since you're posting in the Learning Javascript forum, I assumed you already had something set up for both of those things and you just wanted to know how to get the list of event ids.
 
Last edited by a moderator:

Gyldstrand

Veteran
Veteran
Joined
Oct 16, 2014
Messages
76
Reaction score
4
I am trying to get my events note tagged with <Actor:#> to get the note tags from the corresponding actor in the database.

I was thinking I needed the event IDs on the current map but I don't know. Was trying that filter method also but I couldn't get the callback down.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
for what purpose?
 

Gyldstrand

Veteran
Veteran
Joined
Oct 16, 2014
Messages
76
Reaction score
4
So I can assign parameters from QuasiParamPlus to my Player and all the enemies I create. I will be doing an ABS style plugin and I feel like it will be much easier for damage calculations among other things.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,017
Messages
1,018,356
Members
137,802
Latest member
rencarbali
Top