Moghunter LMBS and Consecutive Battle compatibility

Status
Not open for further replies.

JUICY_PINEFIELDS

はい!
Member
Joined
Jan 7, 2019
Messages
6
Reaction score
2
First Language
English
Primarily Uses
RMMV
Hi! I'm still fairly new to Javascript, so sorry if this question seems poorly worded or in the wrong subforum because I don't know if it counts as plugin support or learning JS.

I've been messing with Moghunters LMBS, and I wanted to use their Consecutive Battle script as well.
There is a compatibility issue though, I want to say it's got something to do with the Consecutive Battles way of creating enemies.
Here is a video to show what I mean. They don't show up, but you can still hit them.
Here's the scripts:

I think it's the line where it creates the enemies for the second wave, this one:
Code:
Spriteset_Battle.prototype.createEnemiesConBat = function() {
    var enemies = $gameTroop.members();
    var sprites = [];
    for (var i = 0; i < enemies.length; i++) {
        sprites[i] = new Sprite_Enemy(enemies[i]);
    }
    sprites.sort(this.compareEnemySprite.bind(this));
    for (var j = 0; j < sprites.length; j++) {
        this._conBatField.addChild(sprites[j]);
    }
    this._enemySprites = sprites;
};
that doesn't work with the way LMBS works since LMBS creates their own enemy sprites.
I want to make it create the sprites used in LMBS, tried copy and pasting most of the lines relating to sprites in it but failed (probably because it's not the smartest thing to do).

If I wanted to create a new LmbsSpriteBattler instead of Sprite_Enemy, how would I do that? It's in another script and I'm not sure how to make it use the same functions and variables from another script.
I don't even know if it's the right solution, but if anyone could help guide me it would be much appreciated.
Thanks in advance!
 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,017,004
Members
137,562
Latest member
tamedeathman
Top