Szibes

Veteran
Veteran
Joined
Mar 5, 2021
Messages
35
Reaction score
8
First Language
Polish
Primarily Uses
RMVXA
There are separate script calls for checking states of player and enemies:

$game_party.members.any? { |m| m.state?(x) } #For player
$game_troop.members.any? { |m| m.state?(x) } #For enemies

Is there one for checking BOTH groups at the same time?

The systems I use these for work just fine. The only reason I want this in one line is just for convenience, and I've looked, and it doesn't seem that a method like this exists, so I'll take "There isn't" for answer.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
4,968
Reaction score
4,548
First Language
English
Primarily Uses
RMMZ
$game_party.members.concat($game_troop.members).any? { |m| m.state?(x) }
 

Szibes

Veteran
Veteran
Joined
Mar 5, 2021
Messages
35
Reaction score
8
First Language
Polish
Primarily Uses
RMVXA
It works. Thank you.
 

Latest Threads

Latest Posts

Latest Profile Posts

Going to try my luck with Rust programming language. C++ is just way too gosh darn frustrating.
Phew. Finally fixed all of the tileset and event issues in this demo. And now, it's time to release another, finished game. Stay tuned!
you know, since learning C [;)] I've grown to love VC and OpenGL :D
Welp. Just updated the biplane sprite-sheet with the missing "North" and "South" positions. Really digging the old 1920's aircraft designs as of late. Shame they're not in "vogue" anymore. They had style. I wasn't planning on making an Air Mail-centric game but now it is getting awful tempting.
animation-example.gif
ScreenShot_5_15_2022_4_23_30.png

found out the names of all the window's used in Yanfly's Victory Aftermath plugin and came up with some designs for them.

Forum statistics

Threads
121,879
Messages
1,144,868
Members
160,135
Latest member
bet365samcom
Top