Hey there! Thanks for the plugin, it works great! I'm using the official ARPG plugin and this affects the stats of the enemies just as i needed it to. But unfortunately, since I'm not using the normal battle system, I can't make use of the "show level" feature. Do you think there's any workaround to show the level in the overworld? Something like a script call that writes it into a variable? Thank you again!
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.
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
← Return to tool
Comments
Log in with itch.io to leave a comment.
Hey there! Thanks for the plugin, it works great! I'm using the official ARPG plugin and this affects the stats of the enemies just as i needed it to. But unfortunately, since I'm not using the normal battle system, I can't make use of the "show level" feature.
Do you think there's any workaround to show the level in the overworld? Something like a script call that writes it into a variable? Thank you again!
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):
And then, at 8305, I found the code that gets those stats:
So, by following your advice, I added my own!
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:
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
Thanks!!! :D