Multi Actor Skills ? (RPGMV)

Sayaka

Warper
Member
Joined
May 24, 2019
Messages
3
Reaction score
0
First Language
French
Primarily Uses
RMMV
I'm trying to do a skill that requires to have a specific Hero in the active Party.
Let me explain.

I have a hero A and a hero B.
I want to make a skill only available for A if B is in the Party, and this skill available to B only if A is in the Party.

I checked on the net, i found Victor Engine : Cooperation Skills, but unlucky, this isnt compatible with Yanfly Engine, and i need to use it... :sob:

So... I'm stuck. And that's why i call for help.
Can anyone here help me for realise this skill usage condition, or maybe use a scrip that could work ?

Thanks in advance.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,533
First Language
English
Primarily Uses
RMMV

I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
For one, you can have a parallel common event which checks if both are in the party and adds/removes the skill from them...

Another would be, I think Yanfly has a custom requirements/conditions plugin, maybe you can use that to set having the other actor as a requirement.. Not sure though.
 

Sayaka

Warper
Member
Joined
May 24, 2019
Messages
3
Reaction score
0
First Language
French
Primarily Uses
RMMV
Thx for your answer.

So i checked, and yes, Yanfly could have something for me.
On a plugin named "Skill Core", he gives and example to what you can do in notetags skills, in Javascript :

<Custom Requirement>
if ($gameParty.gold() > 1000) {
value = true;
} else {
value = false;
}
</Custom Requirement>

In this example, i guess the skill who have this in notetag is only available if the player have 1000 gold or more.

Well, i just need to change this condition, and check if one of my Hero's ID is in the party... but i don't know how to do that in Javascript.

I checked with $gameParty.members().contains($gameActors.actor(x)) but it doesn't work, because if the Hero is in the Reserve it will count...
(Because i use Party System from Yanfly for have 25 Heroes in my party, but only 5 Active)
I need to check if a Hero is in the ACTIVE Party.

Someone knows ?
 
Last edited:

Sayaka

Warper
Member
Joined
May 24, 2019
Messages
3
Reaction score
0
First Language
French
Primarily Uses
RMMV
So, i found it.

This is the script in my skill notetags :

<Custom Requirement>

if ($gameParty.battleMembers().contains($gameActors.actor(14))&&$gameParty.battleMembers().contains($gameActors.actor(15))) {

value = true;

} else {

value = false;

}

</Custom Requirement>

Its actually working with Yanfly's Skill Core.
Topic solved.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top