RMMV QMovmevent ignoreCharacter fix | use variables instead of numbers

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
360
Reaction score
51
First Language
Spanish
Primarily Uses
RMMV
I'm looking for a fix similar to this one, but for event's comments tag.
Basically, QMovement is using <ignoreCharas:CHARAIDS> comment tag to determine which event should be ignored(have no collision) by the given event.

From what I understand its code looks like this:

Code:
var ignore = /<ignoreCharas:(.*?)>/i.exec(notes);
    this._ignoreCharacters = [];
    if (ignore) {
      this._ignoreCharacters = ignore[1].split(',').map(function(s) {
        return QPlus.charaIdToId(s);

Shaz's solution to a similar problem with QPathfind was this:
Code:
Game_Interpreter.prototype.qPathfindCommand = function(args) {
  // qPathfind CHARAID X Y
  // qPathfind CHARAID chase CHARAID2
  // qPathfind CHARAID clear
  args = args.replace(/\\V\[(\d+)\]/gi, function() {
    return $gameVariables.value(parseInt(arguments[1]));
  }.bind(this));
  var chara;

I've tried my best trying to adapt this code for the QMovement plugin but nothing worked.
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
360
Reaction score
51
First Language
Spanish
Primarily Uses
RMMV
Any thoughts?
 

Latest Threads

Latest Posts

Latest Profile Posts

Did you know that 90% of people in the world use the number in their sentence as they see fit?
It's been a long time since I was here but I have a lot of updates... btw I am teaching again about game programming and game design in some schools here in Brazil hahahaha It's good to see kids and teens learning this kind of thing!
welp, I literally can't continue working on ALEX now that my MZ trial is up (unless I somehow place in the jam which I don't remotely deserve to for my unfinished crap) so I am back on my bullshit
some test stuff. Empty for now. My other project (this project) needs more attention. The lagging really kicks up when I try to capture gameplay. ✨

Forum statistics

Threads
113,890
Messages
1,078,228
Members
147,979
Latest member
gpc_826
Top