MV Skill that stays on the Field and deal dot

Hello again ♥♥♥
I am once again here trying to make a weird looking Skill 😊
What I am trying to do, is to create a Skill that call/summon a device/orb/something that stays on the battlefield (along with party), and deals damage to enemies/enemy overtime for a set amount of turns. Amazing would be if the damage could be inehert the caster stats, eheh

Now, I am having a really hard time with this.
I firstly thought it would be "easy" to Summon another Enemy, with the aspect of the device/orb, and grant him solely skills that damage his party (the enemies, of course) ma that doesn't seems right at all. I cannot find a nice way to do it, and it would be absurd to see some enemies "heal" or support the device/orb. Not to mention having it as an attack target. Na-ha! :kaolivid:

Then I tried to make it appear as a picture (setting a Skill to call a Common Event that shows it) but if I try to create an animation loop, the battle goes brrr :kaomad2: and actions stops. No more turn, no more nothing. Also, I really wasn't sure to how to proceed from there anyway for making it deals a proper damage.

I even thought to create a State, and having its animation "full screen" showing the device/orb at a certain distance from the enemy party, and making it deals damage over time like "Poison"... But that seems like even a worst idea (it doesn't make any senso to have a STATE like that! Not to mention all other problems it causes) 😩

Sooooooo I am here declaring myself in a high danger of a headhache 😔 Would you help a stressed potato? 😅

Oh yeah. I am using like like fifthy billions Yanfly's plugins so I could go with anything from him, but I'm really open to anything. Everything I'm working on is based on CTB Battle System and the Row formation! ~
I know I could "enlarge" my Party members number and add it as an AI controlled actor, but it would be extremely frustrating to have it in Allies list like an actual character, since that's very distant from my perception of the skill usage (Also, I'm not imagining it as targettable, capable of healing or having stats on its own at all)
Well, if you set it as an immortal battler, it doesn't need stats, except for the stats the skill needs, which could theoretically be copied from the caster, and agility so it can have turns to use its skill to make DoT damage. As for not making it targetable, that's the sticky one. Each battler has a friendsUnit and opponentsUnit that basically is how the game decides who it can target with what. Since in battle there is only the troop and the party, whichever one you add it to, it will be targetable. There are some workarounds if you can code.

If you set it as a picture, you could set up troop events so that each turn, you simply deal damage to the enemy troop based on the skill and caster stats in question. If you want animation though.... that's a different problem. Animations (at least in MZ, which is my reference) are done on sprites. IIRC, pictures either aren't sprites, or are a certain kind of sprite that can't have animations played on it by default. (Could be completely wrong. I haven't messed with graphics much.) But you should be able to manually trigger animations on the enemy battlers for when the "skill" goes off.
@Drakkonis thanks for your reply! ♥♥♥
I thought about it a lot, and I think the bast way possible to create this "Summon" should be by calling in a new Actor. The only main problem that remains is: is there a command / script / a way to change the MAX battle members mid-game? If I just change it from 5 (there are always 5 battler in my game) to 6, I will always have the sixth slot in the "Party Formation" voice in the Menu! If I could change the max battler right before a battle (creating an empty slot ready to be filled mid-battle with a Summon-Skill) and then change it back to MAX 5 again right after the fight I shoudn't have any problem!

Is there a Script that can change the MAX number of battler dinamically? Using it like I said, I shouldn't even have the need to change it directly during battle... I guess.

I'm using YEP_PartySystem, but can't find a Script call for that. I found these around, but nothing 😩

Code:
Game_Party.prototype.maxBattleMembers = function() {
  return $gameVariables.value(6);
Code:
$gameParty.maxBattleMembers() = 6;
@Drakkonis thanks for your reply! ♥♥♥
I thought about it a lot, and I think the bast way possible to create this "Summon" should be by calling in a new Actor. The only main problem that remains is: is there a command / script / a way to change the MAX battle members mid-game? If I just change it from 5 (there are always 5 battler in my game) to 6, I will always have the sixth slot in the "Party Formation" voice in the Menu! If I could change the max battler right before a battle (creating an empty slot ready to be filled mid-battle with a Summon-Skill) and then change it back to MAX 5 again right after the fight I shoudn't have any problem!

Is there a Script that can change the MAX number of battler dinamically? Using it like I said, I shouldn't even have the need to change it directly during battle... I guess.

I'm using YEP_PartySystem, but can't find a Script call for that. I found these around, but nothing 😩

Code:
Game_Party.prototype.maxBattleMembers = function() {
  return $gameVariables.value(6);
Code:
$gameParty.maxBattleMembers() = 6;
I don't know offhand of a script that already does that. Theoretically, it could be done easily enough, but I'm not sure what would happen if you did that at the start of battle if there are more than 5 people in your party. I would imagine that if you did it too early, it would add the 6th party member to the fight. If it was done AFTER the battle group is already set up, it might work, simply holding an open slot in the battlemembers. Then your skill could add/remove the temporary actor at will.

Unfortunately I couldn't even begin to attempt to make something like this. First off, I use MZ, so whatever I DID make likely wouldn't work for you. Second off, I've tried working on a plugin to dynamically add enemies to an existing fight... but haven't figured out how to make the sprite show up yet. It works just fine, data and mechanic-wise... but you can't see it, nor any animations that are supposed to play on it. Only clue I have is that it might be a preloading issue. Since I haven't solved THAT yet, I KNOW any attempt I made on this would have the same problem.
@Drakkonis Oh, I see! Adding Enemies would be something I too could potentially be interested in, at a certain point. Maybe I'll be trapped in some problems like yours in the near future, for MV!
Good luck ♥♥♥ Hope you'll be able to fix and make it work like you want to! 👋
And thank you SO much for your tips 😍
I think I could get to grips with it if I find the right Script to do just that [change the max battler number mid-game] but I'm actually not even near to the Js knowledge able to pruduce such Script.

ANYWAY ♥ Good luck with MZ and your project 😊😍

EDIT: I found this Dynamically changing the maximum number of followers and battlers and @Aloe Guvner gave the PERFECT solution for what I was searching for!!! 🙏😅 Thank you so much
!!! Your plugin saved me 3 years later ♥♥♥

EDIT 2: I want to leave here some info about HOW I fixed my final situation, in case some other person want to try and create something similar ♥♥♥
I used the plugin suggested in the first EDIT, that link the number of MAX battler to a variable.
I am not using random encounters, my enemies are always on the field as event, so I just make that their event starts (being it on contact or any other way around) by changing the variable to 6. This way, the Team will appear in battle as 5 anyway, with an EMPTY spot. This way is extremely easy to create a Skill, tie it to a Common Event, and make it so it add a Party member (just with engine commands). The aspect and abilities of the added party member in general are all to set, and depends on your personal idea of the "device" you want to Summon/call.
I put the Actor called by the skill on "Auto battle", so that it seems you always have just 5 characters operative. If you want to make it untargettable, you just have to set the first SP parameter to 0% in the traits. ♥ Since I wanted it be NOT ONLY untargettable, but auto-deletable after a set turn, I make it so that it gain a State the moment it join the party. The State has the already mentioned "untargettable" in the traits, and I added the "DOOM" State effect from Yanfly's Tips&Tricks tutorial: DOOM
That wasn't enough for me, since I wanted the "device/spell" being direcly linked to the presence of the actor that summoned it. I didn't want it to survive its creator, so I created a Page in the Battle Event that as conditions it says: If actor (summoner actor) HP <= 0% :
-Add State: DEVICE/ORB/SUMMON, + "Knockout"
-Remove Party member: DEVICE/ORB/SUMMON
This way, the device acts on its own, is untargettable, but the "master" of the Skill get killed, the device turns off. Of course, this is totally optional.
ALSO, since I wanted the device to be summonable justt ONCE, and the actor being unable tu use the Summon/Call Skill again when the Device is already active, I added this Script in the Skill notes:

Code:
<Custom Show Eval>
if ($gameParty.members().contains($gameActors.actor(6))) {
  visible = false;
} else {
  visible = true;
}
</Custom Show Eval>

Plugins used for this are all from Yanfly (Battle Engine Core, Buffs & States Core, and Skill Core ) + the one from Aloe mentioned in the first EDIT! ♥♥♥ Hope this can help someone who's wishing to make the same thing as me 😅

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-stays-on-the-field-and-deal-dot.135127/