Hi guys ! I'm not this new on this forum but that's the first time I post something. I'm really in need and I think y'all are my last card.
So :
I'm looking for a plugin or a way to create a skill that requires 2 players to be used and couldn't be used at least if both of the characters have enough PM / PT.
If someone here can light my fire, I would be grateful towards him /her.
(Sorry for my bad English, I'm French, so it mights seem a bit broken)
That will require a plug-in as far as I know, as the default system cannot handle that. Moving to Plug-in Requests.
I don't know how to move it, do I need to create another one or is there an option to do that ? Thanks
No need, I already moved it. Now we just have to wait and see what plug-ins are out there. I unfortunately don't use MV right now (still finishing my ACE game), so can't tell you.
Right, thanks a lot guys ! I hope I'll find a way which could be useful for others too !
If I understand correctly, you want the skill to be usable only if both actors have enough mp/tp to use it? If so, you will need Yanfly's Skill Core to do this.
With the plugin installed, use this notetag on the skill's notebox.
<Custom Requirement>
var actor1 = $gameActors.actor(actorId1);
var actor2 = $gameActors.actor(actorId2);
// No need to edit after this point.
var condition1 = actor1.mp >= item.mpCost && actor1.tp >= item.tpCost;
var condition2 = actor2.mp >= item.mpCost && actor2.tp >= item.tpCost;
if (condition1 && condition2) {
value = true;
} else {
value = false;
}
</Custom Requirement>
Replace actorId1 and actorId2 with the IDs of the two characters.
I'll try and tell you if it worked ! Thanks so, you really are skilled with prog', sincerly !
It seems it didn't work, it only drains the user's MP / PT :/
Any suggestions or way to fix it ?
I got it, it worked in a half way, :
Indeed, I can only use the skill when the partner is there but when he is, it only drains the user's MP / TP.
What I need is the skill taking from both of the user and his partner's MP and PT, and (if I may go further) take the partner's turn (what I think isn't possible, but I don't mind).
Oh, I wasn't aware you wanted it to also cost the partner's mp and tp.
In that case, simply add this notetag to the skill as well:
<Custom Execution>
var actor1 = $gameActors.actor(actorId1);
var actor2 = $gameActors.actor(actorId2);
// No need to edit after this point.
if (actor1.actorId() === user.actorId()) {
actor2.gainMp(-1*item.mpCost);
actor2.gainTp(-1*item.tpCost);
} else {
actor1.gainMp(-1*item.mpCost);
actor1.gainTp(-1*item.tpCost);
}
</Custom Execution>
Oh dude, I love you ! You answered a problem I was on around 2 whole weeks, I don't know how to thank you !
I put the solved quote next to the thread name, so if someone can close it tho 🙂
Have a good day everyone