Skip to main content

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

Hello!

I'm not familiar with the ARPG plugin... since you say if affects enemy stats, I'm assuming it uses the engine's Game_Enemy class, or at least extends it. With that in mind, if you have access to the script variable that holds the enemy data, you could probably call the "getLevel" function. For example, lets say there is some script call in ARPG that returns you the enemy object assigned to an event in the overworld... something like "arpg.getThisEnemy()"... then you would be able to just append the getLevel function after it: arpg.getThisEnemy().getLevel(). That would return you the current enemy level value.

Hope this helps solving your problem!

Let me know how it goes!

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