RPG Maker Forums

So I've seen a few people ask about this in the forums but no one seems to ask the question quite the way I needed.


I know that you have to make some function to read notes. As such I used the following template

alias.DataManager_isDatabaseLoaded = DataManager.isDatabaseLoaded;
DataManager.isDatabaseLoaded = function() {
if (!alias.DataManager_isDatabaseLoaded.call(this)) {
return false
}
if (!alias._loadedDatabase) {
this.loadSkillNoteTags($dataSkills);
alias._loadedDatabase = true;
}
return true;
};

DataManager.loadSkillNoteTags(datatype){
for (var n = 1; n < datatype.length; n++) {
var object = datatype[n];
var dataNotes = object.note.split(/[\r\n]+/);
object.propertyONE = {};
object.propertyTWO = {};
for (var i = 0; i < dataNotes.length; i++) {
var line = dataNotes;
if (line.match(/Command1:[ ](.*)>/i)) {
var Value = String(RegExp.$1).toUpperCase().trim();
obj.propertyONE[Value] = 'Call A';
} else if (line.match(/Command2:[ ](.*)>/i)) {
var Value = parseInt(RegExp.$1, 10);
}
}
};




So as of right now this should do nothing more than load the note tags and search for a specific <Command1: someTexthere> & turn that text into all caps or <Command2: someNumberhere> and turn the numerical String value into a Number value.


So my questions are


1. At what point or how do I call a function to react to the commands?


2. At what point are the note tags read?


I read that map notes are read upon entering the map. If that is so then would skill & item note tags only be read upon using the skill or item? Would armor and weapon ones ONLY be read upon equipping the item? That's the kind of thing I'm wondering.


Also, no I don't have any specific code yet which is why this is all very template like. I'm looking into creating a new plugin and I really want to use note tags to make it cleaner than my last one.

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

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.

Forum statistics

Threads
106,038
Messages
1,018,466
Members
137,821
Latest member
Capterson
Top