Pet/Minion summoning plugin?

Hello, i was searching for a plugin that would allow a pet or minion summoning in the form of skills, like spells, to create a Summoner Mage in my game. I found this script for Ace earlier and was hoping that someone knew if another like it for MV existed. 






What I'm looking for is a way to add summoning in the form of a spell, like any other spell in MV, it would have to be compatible with Yanfly's party system plugin that way I could have the original amount of party members I wanted and the ability to have a summoner mage in the party.

It would essentially add an additional actor that can be controlled by the player as an additional, temporary, member of the party. It would disappear if it ran out of HP, the battle ended, or a new minion was summoned.
I'm almost certain this is actually possible with Yanfly's battle core, battle system, buff core, and auto passive states, also just a heads up this is the wrong section for an MV request
I'm almost certain this is actually possible with Yanfly's battle core, battle system, buff core, and auto passive states, also just a heads up this is the wrong section for an MV request

Thanks and sorry, I could have sworn I clicked on MV, I have no idea how I missed that...
In anycase, I'm working on a plugin that does what you're looking for! it'll act as an extension to Yanfly's party system
In anycase, I'm working on a plugin that does what you're looking for! it'll act as an extension to Yanfly's party system

That's awesome, can't wait to see the finished product. I'm fiddling with just some eventing to see what I can do for now..but it seems like it would end up quite a complicated mess.
I got a method together that all works, but it's a bit messy. (it's a plugin, a code for 1 new state, and one for the death state, and a code for the skill itself) ideally in a finished product I'd be able to confine the users involvement to a minimum while still allowing options, but if you'd like I can post it all for you to use. You just need Yanfly's buffs and states and the Yanfly Party System
I got a method together that all works, but it's a bit messy. (it's a plugin, a code for 1 new state, and one for the death state, and a code for the skill itself) ideally in a finished product I'd be able to confine the users involvement to a minimum while still allowing options, but if you'd like I can post it all for you to use. You just need Yanfly's buffs and states and the Yanfly Party System

Yeah sure, I could give it a test run for ya.
mmkay, the plugin is here: https://www.dropbox.com/s/15xb3vo0g6p92rt/Fugama_X_Summoning_and_Pets.js?dl=0 


Download that, and make sure when you list it it's under yanfly's party system.


and the code for everything else is here, read the notes to find what codes go where ^_^ Also, make sure you set the summon state to remove at the end of battle.

Code:
//Add this to death state
<custom apply effect>
if (target._isSummon){
	$gameParty._isUnsummon = true;
	$gameParty.initializeBattleMembers();
	}
</custom Apply effect>





//Summon State
<custom apply effect>
target.removeState(1);
target.changeLevel(origin._level, false);
target.gainHp(9999);
target.gainMp(9999);
target._isSummon = true;
</custom apply effect>

<custom turn end effect>
if (origin.isStateAffected(1)) {
	$gameParty._isUnsummon = true;
	$gameParty.initializeBattleMembers();
	}
</custom turn end effect>

<custom remove effect>
$gameParty._isUnsummon = true;
$gameParty.initializeBattleMembers();
</custom remove effect>


//summon skill

<custom execution>
var summonId = ID OF ACTOR YOU WANT TO SUMMON; 
var summonState = ID OF SUMMON STATE;
if ($gameParty._hasSummon){
	$gameParty._isUnsummon = true;
	$gameParty.initializeBattleMembers();
}
$gameParty._defaultMax = $gameParty._BattleMaxSize;
var newMax = $gameParty._defaultMax + 1;
$gameParty._isSummoning = true;
$gameParty._hasSummon = true;
$gameParty._summonId = summonId;
if ($gameActors.actor(summonId).isDead()){
$gameActors.actor(summonId).removeState(1)	
}
$gameParty.changeBattleMax(newMax);
$gameActors.actor(summonId).addState(summonState);
</custom execution>
mmkay, the plugin is here: https://www.dropbox.com/s/15xb3vo0g6p92rt/Fugama_X_Summoning_and_Pets.js?dl=0 


Download that, and make sure when you list it it's under yanfly's party system.


and the code for everything else is here, read the notes to find what codes go where ^_^ Also, make sure you set the summon state to remove at the end of battle.



//Add this to death state
<custom apply effect>
if (target._isSummon){
$gameParty._isUnsummon = true;
$gameParty.initializeBattleMembers();
}
</custom Apply effect>





//Summon State
<custom apply effect>
target.removeState(1);
target.changeLevel(origin._level, false);
target.gainHp(9999);
target.gainMp(9999);
target._isSummon = true;
</custom apply effect>

<custom turn end effect>
if (origin.isStateAffected(1)) {
$gameParty._isUnsummon = true;
$gameParty.initializeBattleMembers();
}
</custom turn end effect>

<custom remove effect>
$gameParty._isUnsummon = true;
$gameParty.initializeBattleMembers();
</custom remove effect>


//summon skill

<custom execution>
var summonId = ID OF ACTOR YOU WANT TO SUMMON;
var summonState = ID OF SUMMON STATE;
if ($gameParty._hasSummon){
$gameParty._isUnsummon = true;
$gameParty.initializeBattleMembers();
}
$gameParty._defaultMax = $gameParty._BattleMaxSize;
var newMax = $gameParty._defaultMax + 1;
$gameParty._isSummoning = true;
$gameParty._hasSummon = true;
$gameParty._summonId = summonId;
if ($gameActors.actor(summonId).isDead()){
$gameActors.actor(summonId).removeState(1)
}
$gameParty.changeBattleMax(newMax);
$gameActors.actor(summonId).addState(summonState);
</custom execution>



Sorry, I'm not really uh script literate.. ;_;


The most I understand of this is the ID of actor you want to summon, heh :L 


I think I've been spoiled on Yanfly's videos >.> 
Sorry, I'm not really uh script literate.. ;_;


The most I understand of this is the ID of actor you want to summon, heh :L 


I think I've been spoiled on Yanfly's videos >.> 

Essentially, any lines that start with "//" are just notes. so the block of code that starts with "//summon state" and ends at "//summon skill" just make a new state, name it whatever, and paste that code in the notebox for it. If you put those in the right noteboxes and  correct that actor bit you understood along with putting the state ID of that state you just made in the bit under that you'll be golden
Essentially, any lines that start with "//" are just notes. so the block of code that starts with "//summon state" and ends at "//summon skill" just make a new state, name it whatever, and paste that code in the notebox for it. If you put those in the right noteboxes and  correct that actor bit you understood along with putting the state ID of that state you just made in the bit under that you'll be golden

I feel like I'm so close, but am just a dumbass and missing something obvious..


I made a state called Summon Minion and added this to the notebox


//Summon State
<custom apply effect>
target
.removeState(1);
target
.changeLevel(origin._level, false);
target
.gainHp(9999);
target
.gainMp(9999);
target
._isSummon = true;
</custom apply effect>

<custom turn end effect>
if (origin.isStateAffected(1)) {
$gameParty
._isUnsummon = true;
$gameParty
.initializeBattleMembers();
}
</custom turn end effect>

<custom remove effect>
$gameParty
._isUnsummon = true;
$gameParty
.initializeBattleMembers();
</custom remove effect>


and I placed the 


//summon skill

<custom execution>
var summonId = ID OF ACTOR YOU WANT TO SUMMON;
var summonState = ID OF SUMMON STATE;
if ($gameParty._hasSummon){
$gameParty
._isUnsummon = true;
$gameParty
.initializeBattleMembers();
}
$gameParty
._defaultMax = $gameParty._BattleMaxSize;
var newMax = $gameParty._defaultMax + 1;
$gameParty
._isSummoning = true;
$gameParty
._hasSummon = true;
$gameParty
._summonId = summonId;
if ($gameActors.actor(summonId).isDead()){
$gameActors
.actor(summonId).removeState(1)
}
$gameParty
.changeBattleMax(newMax);
$gameActors
.actor(summonId).addState(summonState);
</custom execution>


code into a new skill called the same thing and changed the actor id and state id to the minion actor and the state that I made previously. Now the character plays an animation, but doesn't summon anything. I changed the party to have an empty slot too, if that is something needed.


So what thing am I too blind to see to get this correct?
Did you install the plugin here,  https://www.dropbox.com/s/15xb3vo0g6p92rt/Fugama_X_Summoning_and_Pets.js?dl=0


and if so is it listed under Yanfly's party system in your plugin manager?   
Did you install the plugin here,  https://www.dropbox.com/s/15xb3vo0g6p92rt/Fugama_X_Summoning_and_Pets.js?dl=0


and if so is it listed under Yanfly's party system in your plugin manager?   

Yes, I put it into the correct folder and installed it as such, putting it under party system. I tried just under it and directly under party system and both still produce an animation without an actual summoning.
okay so if you hit f8 during playtest it'll bring up a window, in that window type 


"$gameParty.initializeBattleMembers" and tell me what comes up (a screenshot would be preferred)
okay so if you hit f8 during playtest it'll bring up a window, in that window type 


"$gameParty.initializeBattleMembers" and tell me what comes up (a screenshot would be preferred)

k.png

Original thread: https://forums.rpgmakerweb.com/threads/pet-minion-summoning-plugin.70970/