How to check if battle members include specific actor

Oriceles

Veteran
Veteran
Joined
Apr 4, 2012
Messages
384
Reaction score
71
First Language
English
Primarily Uses
N/A
Hi everyone, I want to remake my guild system on MV by using Custom Page Conditions, but for that I need to know which script call check if "battle members" include an specific actor?. Battle members is different from party check. The RGSS3 equivalent of this call is:

Code:
unless $game_party.battle_members.include?($game_actors[X])
Thanks in advance
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
if actor is your actor object, you can use actor.isBattleMember()


If you only have the actor id, you can use $gameActors.actor(id).isBattleMember()


The suggestion above will work, but it's already encompassed in the isBattleMember() function that's already provided.
 
Last edited by a moderator:

Oriceles

Veteran
Veteran
Joined
Apr 4, 2012
Messages
384
Reaction score
71
First Language
English
Primarily Uses
N/A
Thanks Shaz, it worked fine!
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,048
Messages
1,018,545
Members
137,834
Latest member
EverNoir
Top