Gameparty scripts needed

thalesgal

Veteran
Veteran
Joined
Dec 23, 2016
Messages
195
Reaction score
45
First Language
Portuguese
Primarily Uses
RMMV
Hello guys!
I need some scripts to check some things of the party MEMBER 2. (Taking into account that the leader is member 1)

Here is what I need:


if member party.jpg

in other words, instead of always putting the actor ID, I would like to put "member 2" in the conditional branch
That´s it!

Thank very much in advance.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
Code:
$gameParty.members()[1].isStateAffected(1)
$gameParty.members().length >= 2
$gameParty.members()[1].luk >= 4
$gameParty.members()[1].mp >= 20
$gameParty.members()[1].mp -= 20;
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,087
Reaction score
1,508
First Language
EN
Primarily Uses
RMMZ
You may want to use gainMp for the last one, just to make sure it refreshes properly:
Code:
$gameParty.members()[1].gainMp(-20);
 

thalesgal

Veteran
Veteran
Joined
Dec 23, 2016
Messages
195
Reaction score
45
First Language
Portuguese
Primarily Uses
RMMV
@Poryg thank you sooo much!!! This was very important to me. It works nicely.

@caethyril thank you!! I put your code and it worked perfectly!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top