Get Attacker Level During Battle

I've got a custom skill that hits based on the attacker's level. I need to access the attacker's level from inside the Game_Enemy class. Is that data available from in there?

Code:
class Game_Enemy < Game_Battler  def my_skill    if rand(100) < { **Attacker Lvl** }      damage = @hp      damage    end  endend
Enemies by default don't have levels.

If you use something like this http://www.himeworks.com/2013/11/16/enemy-levels/

you can just say

Code:
if rand(100) < self.level
Enemies by default don't have levels.

If you use something like this http://www.himeworks.com/2013/11/16/enemy-levels/

you can just say

if rand(100) < self.level

Hey now, that's interesting, It's amazing how many scripts you have wrote, then hid lol.

Can you assign stat growths to the enemy levels or are enemy levels just for show?
use enemy classes for that


http://www.himeworks.com/2013/11/16/enemy-class/


I don't really hide them, but I guess I don't really make it obvious to find my scripts either since they are not organized very well.
use enemy classes for that

http://www.himeworks.com/2013/11/16/enemy-class/

I don't really hide them, but I guess I don't really make it obvious to find my scripts either since they are not organized very well.
Oh bloody hell, I wasn't gonna do that with the current game I'm making, but I can't resist it now. I'm gonna combine a awesome indepth RPG, with a full blown monster capture/training mechanic(where the monster you recruit will have the same lv/stats of the enemy in the battle you recruited it from). However since I'm intergrating it into a normal full blown RPG, instead of basing the entire game around it, I'm not gonna have a breeding system(it would make the game too busy), so I'm gonna make them just catchable. certain enemy type might beable to class change into better versions of said type of monther though(like a slime turning into a heal slime or metal slime for example).

I hate you lol, now I need to make a sprite for every enemy in the game, thank you very much(I'm no spriter), I needed even more work load.

Lol yea, It's ironic you make development tool type scripts for organizing things, yet your script lists/website its self Isn't organized well.

Edit: Your enemy classes download link brings you to a error page sigh.
Might be dropbox acting weird.


It worked for me just now.
Might be dropbox acting weird.

It worked for me just now.
Ok yea now it worked, and yea the error page called it a dropbox error.
I actually meant the player's level. So it's a skill the player uses and its accuracy is based on his own level.

On the skill's damage formula I had "b.my_skill". I just now changed it to pass in the attacker's level as such:  "b.my_skill(a.level)" and now my function looks like this:

class Game_Enemy < Game_Battler def my_skill(pLevel)    if rand(100) < pLevel      damage = @hp      damage    end endendWorks perfectly. Thanks, guys.

Original thread: https://forums.rpgmakerweb.com/threads/get-attacker-level-during-battle.24976/