hey, I make a game and I need to check if a choosen actor is in the party, I try $game_actor.actor?[5] == false, $game_actor[5].actor? == false, I am confused, can someone help me?
[VXAce] Can You help me with a condition?
RGSSx Script SupportAround Line 400 in Game_Interpreter, we will see that
Therefore, you can use
$game_party.members.include?($game_actors[5]) == false
Ruby:
when 4
actor = $game_actors[@params[1]]
if actor
case @params[2]
when 0
result = ($game_party.members.include?(actor))
Therefore, you can use
$game_party.members.include?($game_actors[5]) == false
You can also do !$game_party.members.include?($game_actors[5]) for a slightly shorter condition.
I've moved this thread to RGSSx Script Support. Thank you.
(This thread was originally posted in RGSS3 Scripts, which is for sharing scripts that you have written.)
Thank You all for help, the problem is solved thanks to You!
Original thread: https://forums.rpgmakerweb.com/threads/vxace-can-you-help-me-with-a-condition.150344/