Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

oh my GOD YES FINALLY
Sorry I have been fighting with this all morning, I am very much a beginner when it comes to javascript, but it actually finally worked! I'll explain in case anyone else needs it:

Unfortunately I couldn't find any script call, BUT, there is a plugin command, Get Battler Status, that gets data like HP or MP from the battler.  So I went into the plugin file (ARPG_Core.js) and found the source of the command, at line 1093, which comes with a long list of stats to choose from (HP, MP, ATK, DEF, and so on):

@command GetBattlerStatus
@text GetBattlerStatus
@desc Get the status of the specified battler.

And then, at 8305, I found the code that gets those stats:

    get hp() {             
        return this.battler().hp;         
        }

So, by following your advice, I added my own!

     get lvl() {
            return this.battler().getLevel();
        }

And then I added "@option lvl" under all the other stats in that list. So now I can use the plugin command to get the level of the enemies!

Also as a little fun fact, I added another one that draws the enemy name:

     get nme() {             
            return this.battler().name();         
        }

Which is when I realized, your plugin writes the level into the name itself ("Lv7 Monster"). So that's an option too!

Alright, thank you so so much for the help, I'll go back to fighting this cursed plugin now

Glad I could help! =D