Enemy uses skills from class-specific skill list

hyuugacln

Veteran
Veteran
Joined
Sep 22, 2016
Messages
98
Reaction score
81
First Language
German
Primarily Uses
RMMV
Hi folks! I have an oddly specific but easy-to-solve problem.


I am working a Pokemon-styled game where you can capture enemy monsters and use them as actors. I am using DeamX' script "Capture Enemies" to do that. Also, I am using Yanflys "Enemy Levels" plugin. Most of the mechanics do work surprisingly well. The moment an enemy with the ID n is captured, it becomes the copy of the actor with the ID n, which has the class with the ID n.


E.g. If there was an enemy of the type Pikachu with the enemy-id 7, a copy of actor-id 7 (this actor also is a Pikachu) is created and added to your party. (The Game uses copied actors because it enables the player to have more than 1 Pikachu in the party. Illustrated in this screenshot.) This actor has the class-id 7. This class contains Pikachus movelist and the levels on which those skills are learned, just like a vanilla RMMV actor. 

So here is what's driving me nuts: The moment Pikachu becomes an actor in your party of the Pikachu-class, it learns the skills on the level it should. But before that, as an enemy, Pikachu uses the attacks in the "enemy"-tab-list, not on the "class"-tab-list. A wild Pikachu on lvl 1 can use EVERY attack it will ever learn, if I add them to the enemy-moveset. If I don't, a wild lvl 100 Pikachu will not use any of the skills it should have learned.

In short: The enemy-movelist ist not leveled, it chooses the used skill by random, not by the enemys level. 

And this would be the script I need: In battle, the enemies IGNORE the movesets in the enemy-tab. Instead, they take the movelist of the "actor" tab and choose a skill randomly from that. 

I made another screenshot to illustrade the problem a little better.

I have the feeling this script could be written in seconds, but maybe I am completely wrong about this.
Even though I know a little about scripting, I lack an idea for this one.


 
 
Last edited by a moderator:

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top